Can't cross compile GCC 5.1.0 on Ubuntu 14.04.1 (LTS) using mingw-w64
Maxwell Dreytser
admin@mdtech.us
Sun Apr 26 12:55:00 GMT 2015
On 4/26/2015 5:17 AM, Andrew Haley wrote:
> On 26/04/15 01:51, Maxwell Dreytser wrote:
>
>> I am attempting to compile GCC 5.1.0 on Linux for Windows use.
>>
>> Downloaded from:
>> http://mirrors-usa.go-parts.com/gcc/releases/gcc-5.1.0/gcc-5.1.0.tar.gz
>>
>> As you will see below, the error is: /bin/bash: ../libtool: No such file
>> or directory
>>
>> configure parameters: --prefix=/gcc-output --target=x86_64-w64-mingw32
>> --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu
>> --disable-nls --disable-shared --enable-static --with-gcc --with-gnu-as
>> --with-gnu-ld --enable-sjlj-exceptions --disable-debug
>> --enable-threads=win32 --disable-win32-registry
>> --with-host-libstdcxx='-lstdc++' --disable-libstdcxx-debug --without-x
>> --enable-hash-synchronization --with-build-sysroot=/ --with-sysroot=/
>> --enable-languages=all --enable-bootstrap
> Plese tell us the *whole configure line*. Looks to me like you might
> have configured in srcdir. That's not supported.
>
> --with-sysroot=/ doesn't look right. It should point to the root
> filesystem image of your target.
>
> Andrew.
>
That is incorrect. I have configured in a separate build dir so this is
the whole configure line: ../gcc-5.1.0 --prefix=/gcc-output
--target=x86_64-w64-mingw32 --host=x86_64-unknown-linux-gnu
--build=x86_64-unknown-linux-gnu --disable-nls --disable-shared
--enable-static --with-gcc --with-gnu-as --with-gnu-ld
--enable-sjlj-exceptions --disable-debug --enable-threads=win32
--disable-win32-registry --with-host-libstdcxx='-lstdc++'
--disable-libstdcxx-debug --without-x --enable-hash-synchronization
--with-build-sysroot=/ --with-sysroot=/ --enable-languages=all
--enable-bootstrap
I agree though that --with-sysroot looks strange. I'll try again without
it.
More information about the Gcc-help
mailing list