easybuilders / easybuild

EasyBuild - building software with ease
http://easybuild.io
GNU General Public License v2.0
471 stars 144 forks source link

Every build fails "could not find a working compiler" #903

Open mindtheegab opened 1 month ago

mindtheegab commented 1 month ago

i already installed gcc multilib but still same error. tried different modules.

ubuntu 22.04.03

easybuild installed via pip

== 2024-09-18 13:54:25,196 configuremake.py:252 INFO /home/itsupport/.local/easybuild/sources/generic/eb_v4.9.3/ConfigureMake/config.guess returned a system type 'x86_64-pc-linux-gnu' == 2024-09-18 13:54:25,196 configuremake.py:256 INFO Providing 'x86_64-pc-linux-gnu' as value to --build option of configure script == 2024-09-18 13:54:25,196 configuremake.py:260 INFO Providing 'x86_64-pc-linux-gnu' as value to --host option of configure script == 2024-09-18 13:54:25,196 run.py:247 INFO running cmd: ./configure --prefix=/home/itsupport/.local/easybuild/build/GCCcore/10.2.0/system-system/gcc-10.2.0/stage2_stuff --with-pic --disable-shared --enable-cxx --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu == 2024-09-18 13:54:26,495 build_log.py:171 ERROR EasyBuild crashed with an error (at easybuild/base/exceptions.py:126 in __init__): cmd " ./configure --prefix=/home/itsupport/.local/easybuild/build/GCCcore/10.2.0/system-system/gcc-10.2.0/stage2_stuff --with-pic --disable-shared --enable-cxx --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu" exited with exit code 1 and output: checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking ABI=64 checking compiler gcc -O2 -pedantic -fomit-frame-pointer -m64 ... no checking ABI=x32 checking compiler gcc -O2 -pedantic -fomit-frame-pointer -mx32 ... no checking ABI=32 checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no configure: error: could not find a working compiler, see config.log for details (at easybuild/tools/run.py:682 in parse_cmd_output) == 2024-09-18 13:54:26,496 build_log.py:267 INFO ... (took 4 mins 1 secs) == 2024-09-18 13:54:26,497 filetools.py:2023 INFO Removing lock /home/itsupport/.local/easybuild/software/.locks/_home_itsupport_.local_easybuild_software_GCCcore_10.2.0.lock... == 2024-09-18 13:54:26,497 filetools.py:383 INFO Path /home/itsupport/.local/easybuild/software/.locks/_home_itsupport_.local_easybuild_software_GCCcore_10.2.0.lock successfully removed. == 2024-09-18 13:54:26,497 filetools.py:2027 INFO Lock removed: /home/itsupport/.local/easybuild/software/.locks/_home_itsupport_.local_easybuild_software_GCCcore_10.2.0.lock == 2024-09-18 13:54:26,497 easyblock.py:4297 WARNING build failed (first 300 chars): cmd " ./configure --prefix=/home/itsupport/.local/easybuild/build/GCCcore/10.2.0/system-system/gcc-10.2.0/stage2_stuff --with-pic --disable-shared --enable-cxx --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu" exited with exit code 1 and output: checking build system type... x86_64-pc-linux-g == 2024-09-18 13:54:26,497 easyblock.py:326 INFO Closing log for application name GCCcore version 10.2.0

used this command to install

eb --software-name=ack --toolchain=GCCcore,10.2.0 --robot

boegel commented 1 month ago

@mindtheegab You'll need to look into the config.log file in the build directory to see why it thinks the compiler is broken...

mindtheegab commented 1 month ago

well thats the thing i have no config.log in the build directory only these files

should it be under .local/easybuild/build/ack ?

boegel commented 1 month ago

@mindtheegab If you run with eb --trace, the full path to the build directory will be printed