Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777381 - dev-lisp/roswell-20.05.14.106 fails to compile with -fno-common
Summary: dev-lisp/roswell-20.05.14.106 fails to compile with -fno-common
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Danny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2021-03-20 12:47 UTC by Agostino Sarubbo
Modified: 2021-03-21 09:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,21.58 KB, text/plain)
2021-03-20 12:47 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-03-20 12:47:49 UTC
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.
Comment 1 Agostino Sarubbo gentoo-dev 2021-03-20 12:47:51 UTC
CC'ing also the author of the commit
Comment 2 Agostino Sarubbo gentoo-dev 2021-03-20 12:47:52 UTC
Created attachment 692574 [details]
build.log

build log and emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2021-03-20 12:47:54 UTC
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
Comment 4 Danny 2021-03-20 14:43:41 UTC
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? :)
Comment 5 Danny 2021-03-20 14:45:02 UTC
(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...
Comment 6 Joonas Niilola gentoo-dev 2021-03-21 07:35:01 UTC
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.
Comment 7 Danny 2021-03-21 09:58:59 UTC
(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! :-)