Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110879 - glibc-2.3.5-r2 fails to compile with vanilla gcc: unrecognized command line option "-fno-stack-protector"
Summary: glibc-2.3.5-r2 fails to compile with vanilla gcc: unrecognized command line o...
Status: RESOLVED DUPLICATE of bug 101471
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-30 04:25 UTC by Paolo Ornati
Modified: 2005-10-30 05:02 UTC (History)
0 users

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


Attachments
compilation workaround (glibc.patch,635 bytes, patch)
2005-10-30 04:26 UTC, Paolo Ornati
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Ornati 2005-10-30 04:25:09 UTC
Subject says everything.

When using gcc emerged with "vanilla" USE FLAG the compilation of glibc fails:

...
cc1: error: unrecognized command line option "-fno-stack-protector"
make[2]: ***
[/var/tmp/portage/glibc-2.3.5-r2/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/ssp.o]
Error 1
...

The problem is that "-fno-stack-protector" flag is added in
"glibc-2.3.5/sysdeps/unix/sysv/linux/Makefile" even if the compiler doesn't
support it:
...
CFLAGS-ssp.c += -fno-stack-protector
...

I'll attach a workaround.

Reproducible: Always
Steps to Reproduce:
Comment 1 Paolo Ornati 2005-10-30 04:26:18 UTC
Created attachment 71718 [details, diff]
compilation workaround
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-10-30 04:42:17 UTC
Please, search...


*** This bug has been marked as a duplicate of 101471 ***
Comment 3 Paolo Ornati 2005-10-30 05:02:56 UTC
sorry, I've forgot to add "ALL" prefix while searching... ;)