https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-lisp/roswell-20.05.14.106 fails to compile with -fno-common. Discovered on: amd64 (internal ref: ci) NOTE: To reproduce this issue you may want to set CFLAGS="${CFLAGS} -fno-common" or compile it with gcc-10 that enables -fno-common by default.
CC'ing also the author of the commit
Created attachment 692574 [details] build.log build log and emerge --info
Possible context of error(s): ./configure: line 2478: -O2: command not found ./configure: line 2479: -O2: command not found /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: tsv_sbcl-main.o:(.bss+0x40): multiple definition of `argv_orig'; tsv_sbcl-tsv-sbcl-bin.o:(.bss+0x0): first defined here collect2: error: ld returned 1 exit status
I tried to reproduce this error on my machine. I ran the following command: CXXFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches" \ CFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-common" \ ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/roswell-20.05.14.106 --htmldir=/usr/share/doc/roswell-20.05.14.106/html --libdir=/usr/lib64 (Which is exactly what you have in the build logs with fno-common arg.) (And I have gcc version 10.2.0.) However the configure and make both succeeded. Plus there is no `-fno-common` in the build log... Could you please provide more clues about reproducing it? :)
(In reply to Danny from comment #4) > I tried to reproduce this error on my machine. > > I ran the following command: > > CXXFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches" \ > CFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-common" \ > ./configure --prefix=/usr --build=x86_64-pc-linux-gnu > --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info > --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib > --disable-dependency-tracking --disable-silent-rules > --docdir=/usr/share/doc/roswell-20.05.14.106 > --htmldir=/usr/share/doc/roswell-20.05.14.106/html --libdir=/usr/lib64 > > (Which is exactly what you have in the build logs with fno-common arg.) > (And I have gcc version 10.2.0.) > > However the configure and make both succeeded. > > Plus there is no `-fno-common` in the build log... > > Could you please provide more clues about reproducing it? :) And is it related to this bug? https://bugs.gentoo.org/733152 They both have "-O2: command not found" error...
Yeah, this works fine on gcc-10. The "no command found" is most likely due to -native-symlinks on toolchain. But it has its own bug already.
(In reply to Joonas Niilola from comment #6) > Yeah, this works fine on gcc-10. The "no command found" is most likely due > to -native-symlinks on toolchain. But it has its own bug already. I see. Thanks for resolving it! :-)