trouble with building MinGW-w64 windows-hosted toolchain using Linux

i.nixman@autistici.org i.nixman@autistici.org
Fri May 15 08:40:58 GMT 2020


Hi Jim,

On 2020-05-14 21:09, Jim Wilson wrote:
> On Thu, May 14, 2020 at 5:26 AM <i.nixman@autistici.org> wrote:
>>            if (ecx & bit_AVX512VNNI)
>>                      ^~~~~~~~~~~~~~
>>                      bit_AVX512VBMI
> 
> These bit_* macros are in cpuid.h.  Maybe you have more than one copy
> of this file, and are accidentally using an older version than the one
> in the gcc source tree?

even if this is the case, I have not copied any files to the gcc source 
tree.

> I see that you have lots of -I and -isystem
> options which normally should not be needed.

but as you can see I did not specify -I and -isystem arguments in the 
gcc/configure options.

> In general, you can find some useful info about cross building
> toolchains in the crosstool-ng project.
> https://crosstool-ng.github.io/

thank you! will read.

> Note that gmp, mpfr, mpc, and isil can just be dropped into the gcc
> source tree, alongside the other libraries like libgcc and libstdc++,
> and the gcc Makefile will build them for you as part of the gcc build.
> That should also work for zlib but I haven't tried that in a while.
> For libiconv, it is simpler to just use --disable-nls, but it looks
> like the toplevel makefile has support for that too, so adding that
> into the gcc source tree looks like it would work too.

ok, I will check this case!

thank you!


More information about the Gcc-help mailing list