Re: libgcc crossback fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



it builds fail for multilibs since it uses CC=cc which is ridiculous tbh. Why cc not x86_64-generic-linux-gnu-gcc? cc does not even exist  $ /home/cqwrteur/toolchains_build/gcc/libgcc/configure --with-multisubdir=32 --with-multisrctop= --enable-multilib --srcdir=/home/cqwrteur/toolchains_build/gcc/libgcc --cache-file=./config.cache --with-cross-host=x86_64-w64-mingw32 --with-gxx-libcxx-include-dir=/home/cqwrteur/toolchains/x86_64-w64-mingw32/x86_64-generic-linux-gnu/x86_64-generic-linux-gnu/include/c++/v1 --prefix=/home/cqwrteur/toolchains/x86_64-w64-mingw32/x86_64-generic-linux-gnu --disable-nls --disable-werror --enable-multilib --with-multilib-list=m32,mx32,m64 --disable-bootstrap --disable-libstdcxx-verbose --with-libstdcxx-eh-pool-obj-count=0 --disable-sjlj-exceptions --enable-libstdcxx-threads --enable-libstdcxx-backtrace --enable-languages=c,c++,lto --program-transform-name=s&^&x86_64-generic-linux-gnu-& --disable-option-checking --disable-year2038 --with-target-subdir=x86_64-generic-linux-gnu --build=x86_64-generic-linux-gnu --host=x86_64-generic-linux-gnu --target=x86_64-generic-linux-gnu build_alias=x86_64-generic-linux-gnu host_alias=x86_64-generic-linux-gnu target_alias=x86_64-generic-linux-gnu CC=cc     CFLAGS=-g -O2 LDFLAGS= CPPFLAGS= CC=cc  -m32 CXX=x86_64-generic-linux-gnu-c++  -m32 F77= -m32 GFORTRAN=gfortran  -m32 GOC=gccgo  -m32 GDC=gdc  -m32 -srcdir=/home/cqwrteur/toolchains_build/gcc/libgcc


________________________________
From: pifminns deettnta <tstndeemkssz@xxxxxxxxxxx>
Sent: Monday, August 5, 2024 02:40
To: gcc-help@xxxxxxx <gcc-help@xxxxxxx>
Subject: Re: libgcc crossback fails

Config.log is generated ridiculously.
________________________________
From: pifminns deettnta <tstndeemkssz@xxxxxxxxxxx>
Sent: Monday, August 5, 2024 02:30
To: gcc-help@xxxxxxx <gcc-help@xxxxxxx>
Subject: Fw: libgcc crossback fails

________________________________
From: pifminns deettnta <tstndeemkssz@xxxxxxxxxxx>
Sent: Monday, August 5, 2024 02:30
To: libtool@xxxxxxx <libtool@xxxxxxx>
Subject: Re: libgcc crossback fails

configure: error: in `/home/cqwrteur/toolchains_build/toolchainbuildscripts/gccbuild/x86_64-w64-mingw32/.gnuartifacts/x86_64-generic-linux-gnu/x86_64-w64-mingw32/x86_64-generic-linux-gnu/gcc/x86_64-generic-linux-gnu/32/libgcc':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
make[1]: *** [Makefile:15931: configure-target-libgcc] Error 1
make[1]: Leaving directory '/home/cqwrteur/toolchains_build/toolchainbuildscripts/gccbuild/x86_64-w64-mingw32/.gnuartifacts/x86_64-generic-linux-gnu/x86_64-w64-mingw32/x86_64-generic-linux-gnu/gcc'
make: *** [Makefile:1087: all] Error 2
gcc (x86_64-w64-mingw32/x86_64-generic-linux-gnu) build failed

It was created by configure, which was
generated by GNU Autoconf 2.69.  Invocation command line was

 $ /home/cqwrteur/toolchains_build/gcc/configure --with-gxx-libcxx-include-dir=/home/cqwrteur/toolchains/x86_64-w64-mingw32/x86_64-generic-linux-gnu/x86_64-generic-linux-gnu/include/c++/v1 --prefix=/home/cqwrteur/toolchains/x86_64-w64-mingw32/x86_64-generic-linux-gnu --build=x86_64-generic-linux-gnu --host=x86_64-w64-mingw32 --target=x86_64-generic-linux-gnu --disable-nls --disable-werror --enable-languages=c,c++ --enable-multilib --with-multilib-list=m32,mx32,m64 --disable-bootstrap --disable-libstdcxx-verbose --with-libstdcxx-eh-pool-obj-count=0 --disable-sjlj-exceptions --enable-libstdcxx-threads --enable-libstdcxx-backtrace


________________________________
From: pifminns deettnta
Sent: Monday, August 5, 2024 01:59
To: libtool@xxxxxxx <libtool@xxxxxxx>
Subject: libgcc crossback fails

I build gcc with build==target!=target

For example

Build=x86_64-linux-gnu
Host=x86_64-w64-mingw32
Target=x86_64-linux-gnu



This is what I get from the crossback which is incorrect.  CC=cc makes no sense since cc does not even need to exist. And the sanity check should not for it either. I don't understand why it needs to run test m32 and mx32 for building cross back compiler

checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/home/cqwrteur/toolchains_build/toolchainbuildscripts/gccbuild/x86_64-w64-mingw32/.gnuartifacts/x86_64-generic-linux-gnu/x86_64-w64-mingw32/x86_64-generic-linux-gnu/gcc/x86_64-generic-linux-gnu/32/libgcc':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details


/home/cqwrteur/toolchains_build/gcc/libgcc/configure --srcdir=/home/cqwrteur/toolchains_build/gcc/libgcc --cache-file=./config.cache --with-cross-host=x86_64-w64-mingw32 --with-gxx-libcxx-include-dir=/home/cqwrteur/toolchains/x86_64-w64-mingw32/x86_64-generic-linux-gnu/x86_64-generic-linux-gnu/include/c++/v1 --prefix=/home/cqwrteur/toolchains/x86_64-w64-mingw32/x86_64-generic-linux-gnu --disable-nls --disable-werror --enable-multilib --with-multilib-list=m32,mx32,m64 --disable-bootstrap --disable-libstdcxx-verbose --with-libstdcxx-eh-pool-obj-count=0 --disable-sjlj-exceptions --enable-libstdcxx-threads --enable-libstdcxx-backtrace --enable-languages=c,c++,lto --program-transform-name=s&^&x86_64-generic-linux-gnu-& --disable-option-checking --disable-year2038 --with-target-subdir=x86_64-generic-linux-gnu --build=x86_64-generic-linux-gnu --host=x86_64-generic-linux-gnu --target=x86_64-generic-linux-gnu build_alias=x86_64-generic-linux-gnu host_alias=x86_64-generic-linux-gnu target_alias=x86_64-generic-linux-gnu CC=cc     CFLAGS=-g -O2 LDFLAGS= CPPFLAGS= --no-create --no-recursion


This is what i get from the canadian build (build!=host==target)

/home/cqwrteur/toolchains_build/gcc/libgcc/configure --srcdir=/home/cqwrteur/toolchains_build/gcc/libgcc --cache-file=./config.cache --with-cross-host=x86_64-w64-mingw32 --with-gxx-libcxx-include-dir=/home/cqwrteur/toolchains/x86_64-w64-mingw32/x86_64-generic-linux-gnu/x86_64-generic-linux-gnu/include/c++/v1 --prefix=/home/cqwrteur/toolchains/x86_64-w64-mingw32/x86_64-generic-linux-gnu --disable-nls --disable-werror --enable-multilib --with-multilib-list=m32,mx32,m64 --disable-bootstrap --disable-libstdcxx-verbose --with-libstdcxx-eh-pool-obj-count=0 --disable-sjlj-exceptions --enable-libstdcxx-threads --enable-libstdcxx-backtrace --enable-languages=c,c++,lto --program-transform-name=s





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux