Hi,

2011/10/14 Alexandre Gouraud <[email protected]>:
> Hello,
>
> I am trying to build the cross win32 win64 compiler, and have two questions:
>
> 1°/ In the howto "howto: Creating a cross Win32 and Win64 compiler" it is
> written that at some point, the PATH must be extended so that the new tools
> are used:
>
>                          export PATH=$PATH:/myprefix/bin
>
> But shouldn't this extension be the other way around:
>
>                         export PATH=/myprefix/bin:$PATH
>
> so that if I use an old version of the cross compiler to build a new version
> of it, the new version is found first in the PATH.

Well, in case for cross-compilers this doesn't matter, as
cross-compilers are prefixed with their target-triplet.  Means to call
cross-compiler from 32-bit -> 64-bit means, that toolchain is prefix
by x86_64-w64-mingw32-<tools-name>

If you are building native toolchain and then want to utilize new one,
it matters.  So you should add new toolchain path in front of old PATH
settings.

> 2°/ I am stuck in the compilation process of mingw-w66-crt (see below the
> log). My first guess is that #include search dir is not set up correctly in
> x86_64-w64-mingw32.exe. If I run the failing command with -M option, I can
> see in the dependency files that all the headers are comming from
> c:\s2e\s2e-toolchain\mingw64\mingw\include instead of
> c:\s2e\s2e-toolchain\home\aceg......\target\mingw\include excepted for the
> propkey.h and propkeydef.h files. Then if this is the right diagnosis, my
> question is how do I set up the configure script of gcc so that the search
> dirs do not include any other directory than those provided with --prefix
> and --with-sysroot ?

You need to specify on configure for crt the option
--host=x86_64-w64-mingw32.  This indicates to autotools, that you want
to build for this host.  Otherwise it assumes you want to build
native,  which would then mean you are building for 32-bit in your
case.

Of course you need to specify same prefix and sysroot.  You just
missed to specify --host argument on configure.

> Thanks in advance,

Regards,
Kai

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to