Building GCC 10.3 on a Ubuntu 22.04 system would require some difficult patching, it's just too old for the OS and binutils used so don't even try.
________________________________________ From: [email protected] <[email protected]> on behalf of Borut Rozman <[email protected]> Sent: Wednesday, October 25, 2023 10:32 To: [email protected] Subject: Re: [easybuild] Bowtie2 2.3.5.1 with gcc 11.3.0 Hi Loris, No I didn't, I used parameters --optarch=GENERIC --robot but it failed. For instance, at this moment I am trying to build GCC/10.3.0 and I get this error : == 2023-10-25 08:20:03,546 build_log.py:171 ERROR EasyBuild crashed with an error (at easybuild/base/exceptions.py:126 in __init__): cmd " ./configure --prefix=/apps/tmp/GCCcore/10.3.0/system-system/gcc- 10.3.0/stage2_stuff --with-pic --disable-shared --enable-cxx --enable- fat --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:681 in parse_cmd_output) == 2023-10-25 08:20:03,546 build_log.py:267 INFO ... (took 6 mins 34 secs) == 2023-10-25 08:20:03,548 filetools.py:2012 INFO Removing lock /apps/software/.locks/_apps_software_GCCcore_10.3.0.lock... == 2023-10-25 08:20:03,548 filetools.py:383 INFO Path /apps/software/.locks/_apps_software_GCCcore_10.3.0.lock successfully removed. == 2023-10-25 08:20:03,548 filetools.py:2016 INFO Lock removed: /apps/software/.locks/_apps_software_GCCcore_10.3.0.lock == 2023-10-25 08:20:03,548 easyblock.py:4277 WARNING build failed (first 300 chars): cmd " ./configure -- prefix=/apps/tmp/GCCcore/10.3.0/system-system/gcc-10.3.0/stage2_stuff - -with-pic --disable-shared --enable-cxx --enable-fat --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 Here it says: configure: error: could not find a working compiler, see config.log for details what am I missing? Borut On Wed, 2023-10-25 at 10:23 +0200, Loris Bennett wrote: > Hi Borut, > configure: error: could not find a working compiler, see config.log > for details > Borut Rozman <[email protected]> writes: > > > Hi Loris, > > > > Looks like something was wrong before as today I could build it > > with no > > problems, I had to first build GCC 8.3 and then build Bowtie2 v > > 2.3.5.1, for some reason directly building it did not work. > > Did you perhaps forget the option '--robot'? This should cause all > missing dependencies, such as the appropriate version of the compile, > to > be built automatically. > > Cheers, > > Loris > > > Sorry for the confusion, > > Borut > > > > > > On Wed, 2023-10-25 at 07:48 +0200, Loris Bennett wrote: > > > Hi Borut, > > > > > > Borut Rozman <[email protected]> writes: > > > > > > > Hi everyone, > > > > > > > > Has anyone managed to build Bowtie2 2.3.5.1 with gcc 11.3.0 ? > > > > Since > > > > I > > > > run on ubuntu 22.04 nothing below 11.2.0 version of gcc does > > > > not > > > > compile which is quite stressful as some users request ancient > > > > software :/ > > > > > > You have a double negative there which makes it slightly > > > difficult to > > > understand your problem. Do you mean that you can't compile > > > anything > > > which uses GCC 11.2.0 or earlier? If so, why not? > > > > > > Whether or not you use Ubuntu 22.04 should not make a > > > difference. No > > > matter what version of GCC the operating system provides, you > > > should > > > still be able to build toolchains with later versions. For > > > example, > > > the > > > default version of GCC on our system is 4.8.5, but we have > > > software > > > built with versions 7.3.0 to 12.2.0. > > > > > > Or have I misunderstood your problem? > > > > > > Cheers, > > > > > > Loris > > > > >

