Bug 1794478

Summary: texlive-base-20190410-9.fc32 FTBS: /usr/bin/ld: autosp-src/utils.o: /builddir/build/BUILD/texlive-base-20190410/source/work/utils/autosp/../../../utils/autosp/autosp-src/utils.h:64: multiple definition of `lineno'
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: texlive-baseAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/texlive-base?collection=f32
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-23 21:43:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1750908, 1792464    

Description Petr Pisar 2020-01-23 16:58:38 UTC
texlive-base-20190410-9.fc32 fails to build with GCC 10 in Fedora 32:

gcc -Wall -Wunused -Wimplicit -Wreturn-type -Wmissing-prototypes -Wmissing-declarations -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Werror=format-security  -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o tex2aspc autosp-src/tex2aspc.o autosp-src/utils.o  
/usr/bin/ld: autosp-src/utils.o: in function `$d':
/builddir/build/BUILD/texlive-base-20190410/source/work/utils/autosp/../../../utils/autosp/autosp-src/utils.h:64: multiple definition of `lineno'; autosp-src/tex2aspc.o:/builddir/build/BUILD/texlive-base-20190410/source/work/utils/autosp/../../../utils/autosp/autosp-src/utils.h:64: first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:649: tex2aspc] Error 1

Comment 1 Tom "spot" Callaway 2020-01-23 17:24:44 UTC
This sure seems like a GCC issue. In the case above, "lineno" is only defined once in utils/autosp/autosp-src/utils.h (on line 64):

int lineno;

In a local test, there are several other "multiple definition" errors being thrown and all of them seem like false positives as well.

Comment 2 Tom "spot" Callaway 2020-01-23 18:19:17 UTC
NM, i see the thread on fedora-devel. I know how to fix this now.

Comment 3 Tom "spot" Callaway 2020-01-23 21:43:26 UTC
Should be fixed in texlive-base-20190410-10.fc32, trying to build now.