easybuilders / easybuild

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

Error Building WRF #800

Open AminFazlKazemi opened 2 years ago

AminFazlKazemi commented 2 years ago

Hi

Thanks for your great package.

I tried install WRF using:

eb WRF-4.3-foss-2021a-dmpar.eb -r

in command line.

I faced this problem when it wanted to install GCCCore 10.3.0:

== building...
== ... (took 17 mins 29 secs)
== FAILED: Installation ended unsuccessfully (build directory: /home/geophysics/easybuild/.local/easybuild/build/GCCcore/10.3.0/system-system): build failed (first 300 chars): cmd " ./configure --prefix=/home/geophysics/easybuild/.local/easybuild/build/GCCcore/10.3.0/system-system/gcc-10.3.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 (took 18 mins 4 secs)
== Results of the build can be found in the log file(s) /tmp/eb-wr0s4cjr/easybuild-GCCcore-10.3.0-20220502.142849.ezIZq.log
ERROR: Build of /home/geophysics/easybuild/.local/easybuild/easyconfigs/g/GCCcore/GCCcore-10.3.0.eb failed (err: 'build failed (first 300 chars): cmd " ./configure --prefix=/home/geophysics/easybuild/.local/easybuild/build/GCCcore/10.3.0/system-system/gcc-10.3.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:\nchecking build system type... x86_64')

I treid and installed GCCCore11.2.0 successfully using easy build but the .eb file of WRF needs GCCCore10.3.0

I have installed LinuxFedora35 so my compilers are all uptodate.

What can I do to complete instllation of WRF?

boegel commented 2 years ago

@AminFazlKazemi It's impossible to tell based on this what the actual problem is, you'll need to take a closer look at the EasyBuild log file, and perhaps also the config.file in the build directory, so see what went wrong exactly.

The fact that building GCCcore 11.2.0 worked fine but GCCcore 10.3.0 doesn't hints towards a problem with your system compiler or binutils being too new to build GCC 10.x with...

@verdurin Since you often use Fedora as well, have you seen this?