Bug 674890

Summary: util-linux-2.19-0.4.fc15 fails building on ppc
Product: [Fedora] Fedora Reporter: Adrian Reber <adrian>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jakub, jonathan, kzak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-15 11:04:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Adrian Reber 2011-02-03 16:38:34 UTC
Trying to build util-linux-2.19-0.4.fc15 fails on ppc with:

mount.c:140:29: error: opt_map causes a section type conflict

http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=27070

Comment 1 Karel Zak 2011-02-04 11:28:19 UTC
(In reply to comment #0)
> Trying to build util-linux-2.19-0.4.fc15 fails on ppc with:
> 
> mount.c:140:29: error: opt_map causes a section type conflict
> 
> http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=27070

Please, could be be more verbose?

I cannot found such error in koji build logs. There are ppc as well as ppc64 binary packages generated by the koji build. 

It seems the build failed on any koji DB error.

Comment 2 Adrian Reber 2011-02-04 11:49:27 UTC
Sorry, that seems to have been the wrong link:

http://ppc.koji.fedoraproject.org/koji/getfile?taskID=127507&name=build.log

In that build.log is the error. We were able to successfully rebuild it on ppc with an older gcc than 4.6.0.

http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=27104

Comment 3 Karel Zak 2011-02-04 22:28:39 UTC
Reassigning to gcc.

mount.c: In function 'try_mount_one.constprop.8':
mount.c:140:29: error: opt_map causes a section type conflict

Note that there is NOT anything like  __attribute__((section ())), the code is there for years.

gcc:
   4.6.0-0.5.fc15 (PPC)

gcc cmdline:

   gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\"/usr/share/locale\"  -fpie -fsigned-char -I../shlibs/blkid/src  -fsigned-char -I../shlibs/mount/src -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -c -o mount-mount.o `test -f 'mount.c'

code that generates the error:

http://git.kernel.org/?p=utils/util-linux/util-linux.git;a=blob;f=mount/mount.c

Comment 4 Jakub Jelinek 2011-02-04 22:34:55 UTC
Could you please attach preprocessed source?

Comment 5 Jakub Jelinek 2011-02-05 11:56:13 UTC
Alternatively try gcc-4.6.0-0.6.fc15 when it is built on ppc too.
This could be dup of http://gcc.gnu.org/PR47610

Comment 6 Adrian Reber 2011-02-05 17:19:32 UTC
unfortunately gcc-4.6.0-0.6.fc15 failed building on ppc:

http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=127995

Comment 7 Adrian Reber 2011-02-06 09:42:24 UTC
another 'section type conflict'

date.c: In function 'main':
date.c:60:26: error: time_spec_string causes a section type conflict

http://ppc.koji.fedoraproject.org/koji/getfile?taskID=128174&name=build.log

in coreutils

Comment 8 Karel Zak 2011-02-15 10:36:54 UTC
(In reply to comment #4)
> Could you please attach preprocessed source?

I don't have access to any PPC machine with Fedora 15 :-(  The git tree with sources is at git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git

Comment 9 Adrian Reber 2011-02-15 11:04:16 UTC
It is fixed with latest gcc. Thanks everyone.

http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=27337