Bug 1160417

Summary: texlive fails with -fno-common
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Dr. Werner Fink <werner>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: alynx.zhou, martin.liska
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1160244    

Description Martin Liška 2020-01-08 09:46:27 UTC
The package fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:M/texlive/standard/x86_64

Please take a look at the META issue for the instructions.
Comment 1 Swamp Workflow Management 2020-01-13 13:50:07 UTC
This is an autogenerated message for OBS integration:
This bug (1160417) was mentioned in
https://build.opensuse.org/request/show/763971 Factory / texlive
Comment 2 Martin Liška 2020-02-04 11:30:52 UTC
It's fixed now, thanks.
Comment 3 Martin Liška 2020-04-21 07:47:15 UTC
Ok, we moved to :N staging project and I still see another linker errors:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:N/texlive/standard/x86_64

[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/autosp.h:35: multiple definition of `logfilename'; autosp-src/autosp.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/autosp.h:35: first defined here
[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/autosp.h:34: multiple definition of `outfilename_n'; autosp-src/autosp.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/autosp.h:34: first defined here
[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/autosp.h:32: multiple definition of `infilename_n'; autosp-src/autosp.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/autosp.h:32: first defined here
[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/autosp.h:29: multiple definition of `dottedbeamnotes'; autosp-src/autosp.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/autosp.h:29: first defined here
[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/autosp.h:37: multiple definition of `logfile'; autosp-src/autosp.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/autosp.h:37: first defined here
[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_score.h:10: multiple definition of `active'; autosp-src/process_score.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_score.h:10: first defined here
[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:13: multiple definition of `notes'; autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:13: first defined here
[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:14: multiple definition of `current'; autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:14: first defined here
[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:16: multiple definition of `spacings'; autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:16: first defined here
[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:18: multiple definition of `vspacing'; autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:18: first defined here
[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:47: multiple definition of `outstrings'; autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:47: first defined here
[  237s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:43: multiple definition of `xtuplet'; autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/../../../utils/autosp/autosp-src/process_command.h:43: first defined here
Comment 4 Dr. Werner Fink 2020-04-21 09:51:47 UTC
(In reply to Martin Liška from comment #3)

That is gcc-10 ... therefore I'd like to know why the gcc-9 does not have shown this? And how can I debug this without an official gcc-10?

> Ok, we moved to :N staging project and I still see another linker errors:
> https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:N/
> texlive/standard/x86_64
> 
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/
> autosp/../../../utils/autosp/autosp-src/autosp.h:35: multiple definition of
> `logfilename';
> autosp-src/autosp.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/autosp.h:35: first defined here
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/
> autosp/../../../utils/autosp/autosp-src/autosp.h:34: multiple definition of
> `outfilename_n';
> autosp-src/autosp.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/autosp.h:34: first defined here
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/
> autosp/../../../utils/autosp/autosp-src/autosp.h:32: multiple definition of
> `infilename_n';
> autosp-src/autosp.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/autosp.h:32: first defined here
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/
> autosp/../../../utils/autosp/autosp-src/autosp.h:29: multiple definition of
> `dottedbeamnotes';
> autosp-src/autosp.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/autosp.h:29: first defined here
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/autosp.h:37: multiple definition of
> `logfile';
> autosp-src/autosp.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/autosp.h:37: first defined here
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/process_score.h:10: multiple definition of
> `active';
> autosp-src/process_score.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/
> autosp/../../../utils/autosp/autosp-src/process_score.h:10: first defined
> here
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/process_command.h:13: multiple definition of
> `notes';
> autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/
> autosp/../../../utils/autosp/autosp-src/process_command.h:13: first defined
> here
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/process_command.h:14: multiple definition of
> `current';
> autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/
> autosp/../../../utils/autosp/autosp-src/process_command.h:14: first defined
> here
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/process_command.h:16: multiple definition of
> `spacings';
> autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/
> autosp/../../../utils/autosp/autosp-src/process_command.h:16: first defined
> here
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/process_command.h:18: multiple definition of
> `vspacing';
> autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/
> autosp/../../../utils/autosp/autosp-src/process_command.h:18: first defined
> here
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/process_command.h:47: multiple definition of
> `outstrings';
> autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/
> autosp/../../../utils/autosp/autosp-src/process_command.h:47: first defined
> here
> [  237s]
> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
> autosp-src/status.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/autosp/..
> /../../utils/autosp/autosp-src/process_command.h:43: multiple definition of
> `xtuplet';
> autosp-src/process_command.o:/home/abuild/rpmbuild/BUILD/texlive/world/utils/
> autosp/../../../utils/autosp/autosp-src/process_command.h:43: first defined
> here
Comment 5 Martin Liška 2020-04-21 10:49:26 UTC
(In reply to Dr. Werner Fink from comment #4)
> (In reply to Martin Liška from comment #3)
> 
> That is gcc-10 ... therefore I'd like to know why the gcc-9 does not have
> shown this? And how can I debug this without an official gcc-10?

It shows with:

Index: texlive.spec
===================================================================
--- texlive.spec	(revision 65)
+++ texlive.spec	(working copy)
@@ -3733,6 +3733,8 @@
 
 %build
 %define _lto_cflags %{nil}
+%global optflags %optflags -fno-common
+
     # Extend the options file
     echo "world=${PWD}/world" >> %{options}
     echo "prefix=${PWD}/prefix" >> %{options}

Note that GCC10 changes default of the option to -fno-common. That's why we see it in the :N staging (where gcc10 is used as a default compiler).
Comment 6 Martin Liška 2020-04-22 05:01:00 UTC
I can confirm it's fixed in the devel project.