Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285776 - sys-boot/grub-9999 fails due to -Werror
Summary: sys-boot/grub-9999 fails due to -Werror
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-20 21:03 UTC by David Pyke
Modified: 2009-09-30 02:58 UTC (History)
0 users

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


Attachments
complete build log (1253480374-install-sys-boot_grub-9999:0::gentoo.out,72.66 KB, text/plain)
2009-09-20 21:03 UTC, David Pyke
Details
Modified ebuild (grub-9999.ebuild,2.50 KB, text/plain)
2009-09-21 08:01 UTC, Thomas K
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Pyke 2009-09-20 21:03:03 UTC
despite the sed in the ebuild, one -Werror is getting through:

x86_64-pc-linux-gnu-gcc -Ikern -I./kern -I. -I./include -I./include -Wall -W  -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes                  -Wundef -Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1 -falign-functions=1 -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -fno-builtin -mrtd -mregparm=3 -m32   -MD -c -o kernel_img-kern_device.o kern/device.c                         
cc1: warnings being treated as errors                                                                                                        
kern/device.c: In function 'grub_device_iterate':                                                                                            
kern/device.c:80: error: generating trampoline in object (requires executable stack)                                                         
kern/device.c:80: error: generating trampoline in object (requires executable stack)                                                         
make: *** [kernel_img-kern_device.o] Error 1                                                                                                 
/usr/libexec/paludis/utils/emake: emake returned error 2 

Reproducible: Always
Comment 1 David Pyke 2009-09-20 21:03:33 UTC
Created attachment 204750 [details]
complete build log
Comment 2 Thomas K 2009-09-21 08:01:31 UTC
Created attachment 204774 [details]
Modified ebuild

I had exactly the same problem. While checking the sources I noticed that the configure script now has a --disable-werror option. It works as expected and grants removal of the sed command that was used to erase -Werror from the configuration files.
Comment 3 Martin Benz 2009-09-23 18:07:28 UTC
Just run into the same error message - modified ebuild is working fine. Thanks!
Comment 4 cmuelle8 2009-09-28 14:20:11 UTC
I found the same solution independently and confirm that it works - please apply..

- sed hack not necessary
- adding --disable-werror to econf will do


Greetings,
cmuelle8

Comment 5 SpanKY gentoo-dev 2009-09-30 02:57:18 UTC
Comment on attachment 204774 [details]
Modified ebuild

post diffs, not entire ebuilds