easybuilders / easybuild-easyconfigs

A collection of easyconfig files that describe which software to build using which build options with EasyBuild.
https://easybuild.io
GNU General Public License v2.0
379 stars 701 forks source link

Ubuntu20.04 build GCCcore-12.3.0 error #21777

Open chenshixinnb opened 2 hours ago

chenshixinnb commented 2 hours ago

hello,i build GCC-core-12.3 in Ubuntu20.04 error

tail /tmp/eb-sbxqj8r6/easybuild-GCCcore-12.3.0-20241101.140840.bgBpd.log

libtool: link: (cd ".libs" && rm -f "libcc1plugin.so.0" && ln -s "libcc1plugin.so.0.0.0" "libcc1plugin.so.0")
libtool: link: (cd ".libs" && rm -f "libcc1plugin.so" && ln -s "libcc1plugin.so.0.0.0" "libcc1plugin.so")
libtool: link: ( cd ".libs" && rm -f "libcc1plugin.la" && ln -s "../libcc1plugin.la" "libcc1plugin.la" )
mv -f .deps/libcp1plugin.Tpo .deps/libcp1plugin.Plo
/bin/bash ./libtool --tag=CXX   --mode=link g++ -W -Wall  -fvisibility=hidden -fcf-protection  -g -O2 -module -export-symbols ../.././libcc1/libcp1plugin.sym  -Xcompiler '-static-libstdc++' -Xcompiler '-static-libgcc' -o libcp1plugin.la -rpath /data/Soft/software/GCCcore/12.3.0/lib/gcc/nvptx-none/12.3.0/plugin libcp1plugin.lo context.lo callbacks.lo connection.lo marshall.lo   -Wc,../libiberty/pic/libiberty.a 
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /lib/x86_64-linux-gnu/crti.o /data/Soft/software/GCCcore/12.3.0/lib/gcc/x86_64-pc-linux-gnu/12.3.0/crtbeginS.o  .libs/libcp1plugin.o .libs/context.o .libs/callbacks.o .libs/connection.o .libs/marshall.o   -Wl,-rpath -Wl,/data/Soft/software/GCCcore/12.3.0/lib/../lib64 -Wl,-rpath -Wl,/data/Soft/software/GCCcore/12.3.0/lib/../lib64 -L/data/Soft/software/binutils/2.40/lib/../lib64 -L/data/Soft/software/GCCcore/12.3.0/lib/gcc/x86_64-pc-linux-gnu/12.3.0 -L/data/Soft/software/GCCcore/12.3.0/lib/gcc/x86_64-pc-linux-gnu/12.3.0/../../../../lib64 -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64 -L/data/Soft/software/binutils/2.40/lib -L/data/Soft/software/GCCcore/12.3.0/lib/gcc/x86_64-pc-linux-gnu/12.3.0/../../.. /data/Soft/software/GCCcore/12.3.0/lib/../lib64/libstdc++.so -lm -lc -lgcc_s /data/Soft/software/GCCcore/12.3.0/lib/gcc/x86_64-pc-linux-gnu/12.3.0/crtendS.o /lib/x86_64-linux-gnu/crtn.o  -static-libstdc++ -static-libgcc ../libiberty/pic/libiberty.a   -Wl,-soname -Wl,libcp1plugin.so.0 -Wl,-retain-symbols-file -Wl,../.././libcc1/libcp1plugin.sym -o .libs/libcp1plugin.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libcp1plugin.so.0" && ln -s "libcp1plugin.so.0.0.0" "libcp1plugin.so.0")
libtool: link: (cd ".libs" && rm -f "libcp1plugin.so" && ln -s "libcp1plugin.so.0.0.0" "libcp1plugin.so")
libtool: link: ( cd ".libs" && rm -f "libcp1plugin.la" && ln -s "../libcp1plugin.la" "libcp1plugin.la" )
make[3]: Leaving directory '/data/Soft/build/GCCcore/12.3.0/system-system/gcc-12.3.0/build-nvptx-gcc/libcc1'
make[2]: Leaving directory '/data/Soft/build/GCCcore/12.3.0/system-system/gcc-12.3.0/build-nvptx-gcc/libcc1'
make[1]: Leaving directory '/data/Soft/build/GCCcore/12.3.0/system-system/gcc-12.3.0/build-nvptx-gcc'
make: *** [Makefile:1019: all] Error 2
 (at easybuild/tools/run.py:695 in parse_cmd_output)
== 2024-11-01 14:47:44,134 build_log.py:267 INFO ... (took 3 mins 13 secs)
== 2024-11-01 14:47:44,135 filetools.py:2025 INFO Removing lock /data/Soft/software/.locks/_data_Soft_software_GCCcore_12.3.0.lock...
== 2024-11-01 14:47:44,135 filetools.py:385 INFO Path /data/Soft/software/.locks/_data_Soft_software_GCCcore_12.3.0.lock successfully removed.
== 2024-11-01 14:47:44,135 filetools.py:2029 INFO Lock removed: /data/Soft/software/.locks/_data_Soft_software_GCCcore_12.3.0.lock
== 2024-11-01 14:47:44,135 easyblock.py:4297 WARNING build failed (first 300 chars): cmd " make  -j 144 " exited with exit code 2 and output:
make[1]: Entering directory '/data/Soft/build/GCCcore/12.3.0/system-system/gcc-12.3.0/build-nvptx-gcc'
mkdir -p -- ./intl
mkdir -p -- ./libiberty
mkdir -p -- ./fixincludes
mkdir -p -- ./zlib
mkdir -p -- ./gmp
mkdir -p -- ./libcody
Configuring 
== 2024-11-01 14:47:44,135 easyblock.py:326 INFO Closing log for application name GCCcore version 12.3.0
chenshixinnb commented 2 hours ago

If you need to provide more information or error log, please let me know, thank you.

chenshixinnb commented 2 hours ago

head /data/Soft/build/GCCcore/12.3.0/system-system/gcc-12.3.0/build-nvptx-gcc/config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

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

  $ .././configure --prefix=/data/Soft/software/GCCcore/12.3.0 --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --enable-languages=c,c++,fortran --enable-newlib-i
o-long-long --with-build-time-tools=/data/Soft/software/GCCcore/12.3.0/nvptx-none/bin --target=nvptx-none --enable-as-accelerator-for=x86_64-pc-linux-gnu --disable-sjlj
-exceptions

####### Platform. 

hostname = amax
uname -m = x86_64
uname -r = 5.15.0-124-generic
uname -s = Linux
uname -v = #134~20.04.1-Ubuntu SMP Tue Oct 1 15:27:33 UTC 2024

/usr/bin/uname -p = x86_64
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /data/Soft/software/GCCcore/12.3.0/bin
PATH: /data/Soft/software/binutils/2.40/bin
PATH: /data/Soft/software/M4/1.4.19/bin
PATH: /home/amax/.local/bin
PATH: /usr/local/cuda-12.4/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
chenshixinnb commented 2 hours ago

The local gcc version is 9.4.0 gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.2' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-9QDOt0/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)