Skip to content

GCC 10.3.0 fails to compile on Manjaro (GCC 12.2, binutils 2.39.0) #16235

@baloe

Description

@baloe

I am unable to build GCC 10.3.0. Here is the output:

== Temporary log file in case of crash /tmp/eb-qe86ahz6/easybuild-ubithjku.log
== found valid index for /tmp/bastian/eb_tmp/easybuild/easyconfigs, so using it...
== found valid index for /tmp/bastian/eb_tmp/easybuild/easyconfigs, so using it...
Dry run: printing build status of easyconfigs and dependencies
CFGS=/tmp/bastian/eb_tmp/easybuild/easyconfigs
 * [x] $CFGS/m/M4/M4-1.4.19.eb (module: M4/1.4.19)
 * [x] $CFGS/b/Bison/Bison-3.8.2.eb (module: Bison/3.8.2)
 * [x] $CFGS/f/flex/flex-2.6.4.eb (module: flex/2.6.4)
 * [x] $CFGS/z/zlib/zlib-1.2.11.eb (module: zlib/1.2.11)
 * [x] $CFGS/b/binutils/binutils-2.36.1.eb (module: binutils/2.36.1)
 * [ ] $CFGS/g/GCCcore/GCCcore-10.3.0.eb (module: GCCcore/10.3.0)
 * [ ] $CFGS/z/zlib/zlib-1.2.11-GCCcore-10.3.0.eb (module: zlib/1.2.11-GCCcore-10.3.0)
 * [ ] $CFGS/h/help2man/help2man-1.48.3-GCCcore-10.3.0.eb (module: help2man/1.48.3-GCCcore-10.3.0)
 * [ ] $CFGS/m/M4/M4-1.4.18-GCCcore-10.3.0.eb (module: M4/1.4.18-GCCcore-10.3.0)
 * [ ] $CFGS/b/Bison/Bison-3.7.6-GCCcore-10.3.0.eb (module: Bison/3.7.6-GCCcore-10.3.0)
 * [ ] $CFGS/f/flex/flex-2.6.4-GCCcore-10.3.0.eb (module: flex/2.6.4-GCCcore-10.3.0)
 * [ ] $CFGS/b/binutils/binutils-2.36.1-GCCcore-10.3.0.eb (module: binutils/2.36.1-GCCcore-10.3.0)
 * [ ] $CFGS/g/GCC/GCC-10.3.0.eb (module: GCC/10.3.0)
== Temporary log file(s) /tmp/eb-qe86ahz6/easybuild-ubithjku.log* have been removed.
== Temporary directory /tmp/eb-qe86ahz6 has been removed.
== Temporary log file in case of crash /tmp/eb-u4d40mvn/easybuild-e7ypgify.log
== found valid index for /tmp/bastian/eb_tmp/easybuild/easyconfigs, so using it...
== resolving dependencies ...
== found valid index for /tmp/bastian/eb_tmp/easybuild/easyconfigs, so using it...
== processing EasyBuild easyconfig /tmp/bastian/eb_tmp/easybuild/easyconfigs/g/GCCcore/GCCcore-10.3.0.eb
== building and installing GCCcore/10.3.0...
== fetching files...
== creating build dir, resetting environment...
== starting iteration #0 ...
== ... (took 2 secs)
== unpacking...
== ... (took 10 secs)
== patching...
== preparing...
== configuring...
== FAILED: Installation ended unsuccessfully (build directory: /soft/modules/build/GCCcore/10.3.0/system-system): 
build failed (first 300 chars): cmd " ../configure   --enable-languages=c,c++,fortran --without-cuda-driver 
--enable-offload-targets=nvptx-none --enable-lto --enable-checking=release  --disable-multilib --enable-shared=yes 
--enable-static=yes  --enable-threads=posix  --enable-plugins  --enable-gold=default --enable-ld --with-plugi (took 
15 secs)
== Results of the build can be found in the log file(s) 
/tmp/eb-u4d40mvn/easybuild-GCCcore-10.3.0-20220911.094514.mAgTh.log
0:00:15  0 out of 8 easyconfigs done
ERROR: Build of /tmp/bastian/eb_tmp/easybuild/easyconfigs/g/GCCcore/GCCcore-10.3.0.eb failed (err: 'build failed (first 300 chars): cmd " ../configure   --enable-languages=c,c++,fortran --without-cuda-driver --enable-offload-targets=nvptx-none --enable-lto --enable-checking=release  --disable-multilib --enable-shared=yes --enable-static=yes  --enable-threads=posix  --enable-plugins  --enable-gold=default --enable-ld --with-plugi')

And here is the mentioned log file:
/tmp/eb-u4d40mvn/easybuild-GCCcore-10.3.0-20220911.094514.mAgTh.log

Is this issue possibly related to #16144 ? I think not, because the error message is very different.

The log reads:

configure: error: in `/soft/modules/build/GCCcore/10.3.0/system-system/gcc-10.3.0/stage1_obj':
configure: error: C compiler cannot create executables
See `config.log' for more details

Here is the config.log file:
/soft/modules/build/GCCcore/10.3.0/system-system/gcc-10.3.0/stage1_obj/config.log

This one mentions a bunch of errors, but I have no idea how to fix them:

> grep -nir error /soft/modules/build/GCCcore/10.3.0/system-system/gcc-10.3.0/stage1_obj/config.log
99:gcc: error: unrecognized command-line option '-V'
100:gcc: fatal error: no input files
104:gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
105:gcc: fatal error: no input files
120:collect2: error: ld returned 1 exit status
140:configure:4535: error: in `/soft/modules/build/GCCcore/10.3.0/system-system/gcc-10.3.0/stage1_obj':
141:configure:4537: error: C compiler cannot create executables

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions