Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66067 - Genkernel-3.0.2g has a broken dietlibc for non-x86
Summary: Genkernel-3.0.2g has a broken dietlibc for non-x86
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-01 14:31 UTC by Robin Johnson
Modified: 2004-10-23 13:08 UTC (History)
0 users

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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-10-01 14:31:34 UTC
Hacking at genkernel, trying to see about it on non-x86 architechures, I found that the changes to the official dietlibc force some non-reasonable CFLAGS for non-x86 architecutres.

Namely, -march=pentium3, and removing -nostdinc break things.
I've put a vastly improved dev-lib/dietlibc-0.27 into the main tree, could you consider using it?
It should be called with CFLAGS="" ebuild ... unpack to generate your custom tarball, and then during the make phase, run make CFLAGS="..." to ensure correct CFLAGS for each arch (or just get genkernel to directly call the ebuild unpack and then use those sources).

I can see several advantages to making genkernel utilize ebuild unpack, not the least of them reducing the amount of custom logic/work it takes in handling the sources, and getting updates for free from the tree.
Comment 1 Max Dittrich 2004-10-03 03:12:43 UTC
I think my note isn't worth to open a new bug report, so i append it here.

The fixed CFLAGS from the makefile (dietlibc 0.26) even breaks builds on x86 plattform using an older via c3 processor.

Using '-march=pentium3 -O3' results in 'illegal instructions'.
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-10-03 03:39:59 UTC
Want to try out http://dev.gentoo.org/~plasmaroo/patches/kernel/genkernel/3.0.2/genkernel-3.0.2h.tar.bz2  please?
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-10-03 11:28:30 UTC
You need to change perms on the tarball, I get 403 forbidden errors.
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-10-03 11:41:17 UTC
Hrm, guess something's been changed on toucan - usually uploads fine with no needed change of permissions. Changed now.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-10-03 13:44:32 UTC
That's much better.

As a useful extra bit with this, although you commented out the dietlibc stuff in compile_module_init_tools(), I uncommented it for testing on x86 with 2.6.9* and it works great :-).

One thing that could still be improved upon, perhaps for 3.0.2i, is allowing users to send CFLAGS to udev/module-init-tools/modutils/dietlibc. It would be useful primarily for non-x86, to pass such things as -mabi= to specify which MIPS ABI to build for (o32,n32,o64,n64,eabi), and what ISA level (as it makes a major performance difference between mips1 [the gcc default] and mips4/mips32).
The best route for this would probably be to add a variable DIETLIBC_CFLAGS that's passed in to the 'CFLAGS += $(DIETLIBC_CFLAGS) -fno-stack-protector -D__dietlibc__'.
Comment 6 Gregor Suhr 2004-10-16 09:07:28 UTC
Why is genkernel not using /etc/make.conf? It should contain all infrmations.
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-10-23 13:08:17 UTC
Ok, should be fixed in 3.1.0.