On Thu, Mar 12, 2015 at 10:55 AM, Moez Roy <moez....@gmail.com> wrote:
> On Thu, Mar 12, 2015 at 1:46 AM, Tom Hughes <t...@compton.nu> wrote:
>> Does anybody have any clue what's going on here:
>>
>>   https://kojipkgs.fedoraproject.org//work/tasks/8137/9208137/build.log
>>
>> It's an update to libdwarf, but the actual cause appears to be that it
>> doesn't like the new hardened build options. It's a glibc symbol that it
>> seems to be complaing about though:
>>
>>   /usr/bin/ld: dwgetopt.o: relocation R_386_GOTOFF against undefined symbol
>> `optopt@@GLIBC_2.0' can not be used when making a shared object
>>
>> The dwgetopt.o file appears to have been been correctly build with the
>> hardening flags:
>>
>>   gcc  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
>> -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32
>> -march=i686 -mtune=atom -fasynchronous-unwind-tables -I. -I. -I./../libdwarf
>> -DCONFPREFIX=/usr/local/lib  -c ./dwgetopt.c
>>
>> Tom
>
>
> What is interesting about this is it built successfully for x86_64 but
> failed for i686.
>
> https://koji.fedoraproject.org/koji/taskinfo?taskID=9208115



I added '%global _hardened_build 1' to the spec file and it builds
fine with the hardening flags for f21.

https://koji.fedoraproject.org/koji/taskinfo?taskID=9211417

So it is a gcc5 regression.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to