I now tried it again – with a patch-wise clean bootstrap and w/o 
--enable-offload-targets=...
(i.e. on x86_64-gnu-linux with--enable-languages=c,c++,fortran,lto,objc, which enables bootstrap + m32 mulilib support).

I think I saw the same error previously but when trying to see the error again,
"make -j..." pointed me to the other error. However, this seems to be main 
issue.

Note the "-latomic" that fails. Namely, during stage1 build, the configure log
for the -m32 of libgomp, i.e.

./x86_64-pc-linux-gnu/32/libgomp/config.log

shows the following fail:


configure:3882: checking whether the C compiler works
configure:3904: /home/tob/projects/build-gcc-trunk-commit/./gcc/xgcc 
-B/home/tob/projects/build-gcc-trunk-commit/./gcc/ 
-B/home/tob/projects/gcc-trunk-commit/x86_64-pc-linux-gnu/bin/ 
-B/home/tob/projects/gcc-tru
nk-commit/x86_64-pc-linux-gnu/lib/../lib 
-B/home/tob/projects/gcc-trunk-commit/x86_64-pc-linux-gnu/lib/ -isystem 
/home/tob/projects/gcc-trunk-commit/x86_64-pc-linux-gnu/include -isystem 
/home/tob/projects/gcc-tr
unk-commit/x86_64-pc-linux-gnu/sys-include -fno-checking  -m32 -g -O2 -pthread   
conftest.c  >&5
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: 
skipping incompatible 
/home/tob/projects/build-gcc-trunk-commit/./gcc/libatomic.a when searching for 
-latomic
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: 
cannot find -latomic: No such file or directory
collect2: error: ld returned 1 exit status
configure:3908: $? = 1
configure:3946: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Offloading and Multi Processing Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU Offloading and Multi Processing Runtime Library 
1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL"http://www.gnu.org/software/libgomp/";
| #define PACKAGE "libgomp"
| #define VERSION "1.0"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3951: error: in 
`/home/tob/projects/build-gcc-trunk-commit/x86_64-pc-linux-gnu/32/libgomp':
configure:3953: error: C compiler cannot create executables
See `config.log' for more details

Thanks,

Tobias

Reply via email to