Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117968 - gcc-4.0 going into ~arch
Summary: gcc-4.0 going into ~arch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-05 18:20 UTC by Mark Loeser (RETIRED)
Modified: 2006-02-08 17:35 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Loeser (RETIRED) gentoo-dev 2006-01-05 18:20:22 UTC
Just a warning to you guys that I plan on putting gcc-4.0.2-r3 into ~arch pretty soon.  It doesn't have SSP, so I'm not sure how you guys want to handle that.  4.1 is apparently also a problem for you guys, so masking all the 4.* stuff may be best for now.  

I'll go ahead and make it so the hardened use flag doesn't show up on 4.* for now since the spec building is broken, unless someone tells me otherwise.
Comment 1 Peter S. Mazinger 2006-01-05 22:49:56 UTC
could at least enable the split-specs option and add the pie stable/unstable defines because these features are "builtin"
For pie enabling you need to build objects in libiberty.a in any case as PIC and the current libiberty-pic.patch has to be
replaced w/ sed -i 's:^PICFLAG =:PICFLAG = -fPIC:' ${S}/libiberty/Makefile.in
Maybe the specs-env patch should be replaced w/ kevquinn's
Nice that ppl are expecting miracles, but keep no promises:
1. split spec option solving (curiously not even seeing that it works as of 4.0.2-r2)
2. glibc updating to latest rh tarball (is FEDORA_VER=2004xx, should be 20051x)
the latter is a requirement to backport SSP from 4.1
gcc4 SSP will work only w/ newer glibc being patched w/ parts targeted for glibc-2.4
It works w/ current uClibc-svn, but not 0.9.28 (this is though easier to do as glibc)

Comment 2 Kevin F. Quinn (RETIRED) gentoo-dev 2006-01-06 03:45:46 UTC
Here's my 2c :)

Since there's no SSP, or if there is I understand it's only partial (no C++) then we should mask for the hardened profile.  Certainly it doesn't make sense to delay going ~x86 for non-hardened just for us.

I'd like to see the GCC_SPECS update go in - http://dev.gentoo.org/~kevquinn/gcc/new-gcc-spec-env.patch - so that the ':'-separated lists of specs files will work from ~x86 4.0 onwards.  It's harmless enough so shouldn't affect anyone, unless people use ':' in filenames which would be a bit daft.

Perhaps in hardened we could delay and think a little more about how we do things - in particular how the compiler libraries are built.  It might be useful to build the .so libraries with and without SSP, and the .a archives as normal, PIE, SSP, PIE+SSP.  It'd be nice to have things so that things are identical on hardened & non-hardened, apart from the default config.
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2006-01-06 11:15:55 UTC
(In reply to comment #2)
> Since there's no SSP, or if there is I understand it's only partial (no C++)
> then we should mask for the hardened profile.  Certainly it doesn't make sense
> to delay going ~x86 for non-hardened just for us.

Sounds good.


> I'd like to see the GCC_SPECS update go in -
> http://dev.gentoo.org/~kevquinn/gcc/new-gcc-spec-env.patch - so that the
> ':'-separated lists of specs files will work from ~x86 4.0 onwards.  It's
> harmless enough so shouldn't affect anyone, unless people use ':' in filenames
> which would be a bit daft.

Patch looks fine, but we don't generate split specs currently since the way we were doing it was "broken".  (Just try using gcc-3.4.4 to compile 4.x and you should see it break if you re-enable split specs)

If someone could figure out the best way to generate those, that'd be great.
Comment 4 Peter S. Mazinger 2006-01-06 15:12:48 UTC
I have enabled SPLIT_SPECS, added PIE_STABLE* to the ebuild and did the -fPIC
change proposed to libiberty/Makefile.in and gcc-3.4.5 (hardened profile selected)
can build gcc-4.0.2-r3. the created specs are correct.
Comment 5 Peter S. Mazinger 2006-01-06 15:17:21 UTC
another possibility that could be used is to run make CC="stage1/xgcc -B./" SPECS=newname
this would create file <newname>. this would be cleaner, but I dont know if it
would work on gcc-3
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2006-02-08 17:35:24 UTC
Well, the mask has been added, so your users shouldn't have any problems until you decide to migrate them.