I understand!
I need to edit the buildcross32.sh like this:

> # platform information
> export HOST=i686-linux-gnu
> export TARGET=i686-w64-mingw32
> export BUILD=i686-linux-gnu

%)

wait for result...

2011/6/16 niXman <[email protected]>

>  (in addition to plain linux gcc+binutils as provided by
>> your distribution):
>>  - bison
>>  - flex
>>  - zip
>>  - unzip
>>  - make
>
> They are already installed.
>
> What's the filename of the archive you tried to use?
>
>  I don't  understand this question...
>
> buildcross*.sh - run one of these first, then you'll have a linux
>> 64-bit to Windows "*" toolchain.
>> buildmingw*.sh - first add "<root_of_package>/cross*/cross*/bin" to
>> your PATH. Then run this script.
>
> i.e. if I want to build a 32-bit mingw32, do I need to run buildcross32.sh
> and buildmingw32.sh ?
>
> So, if all goes well, you can just do (from the root directory where
>> you extracted the source package):
>>
>> ./buildcross64.sh
>> export PATH=`pwd`/cross64/cross64/bin:$PATH
>> ./buildmingw64.sh
>
> I understand.
>
> At this moment I run buildcross32.sh and build terminates in the configure
> GMP with this message in the cross32/logs/gmp_configure.log:
>
>> ...
>
> ...
>
> checking size of void *... 4
>
> checking size of unsigned short... 2
>
> checking size of unsigned... 4
>
> checking size of unsigned long... 4
>
> checking size of mp_limb_t... 4
>
> configure: error: Oops, mp_limb_t is 32 bits, but the assembler code
>
>  in this configuration expects 64 bits.
>
> You appear to have set $CFLAGS, perhaps you also need to tell GMP the
>
>  intended ABI, see "ABI and ISA" in the manual.
>
>
>
>
> I use this compiler:
>
>> nixman@nixman ~/mingw-build/cross32/logs $ g++ -v
>
> Using built-in specs.
>
> COLLECT_GCC=g++
>
>
>> COLLECT_LTO_WRAPPER=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/lto-wrapper
>
> Target: i686-linux-gnu
>
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
>> 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs
>> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
>> --program-suffix=-4.5 --enable-shared --enable-multiarch
>> --with-multiarch-defaults=i386-linux-gnu --enable-linker-build-id
>> --with-system-zlib --libexecdir=/usr/lib/i386-linux-gnu
>> --without-included-gettext --enable-threads=posix
>> --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/i386-linux-gnu
>> --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
>> --enable-libstdcxx-time=yes --enable-plugin --enable-gold
>> --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc
>> --enable-targets=all --disable-werror --with-arch-32=i686
>> --with-tune=generic --enable-checking=release --build=i686-linux-gnu
>> --host=i686-linux-gnu --target=i686-linux-gnu
>
>  Thread model: posix
>
> gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
>
>
>
>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to