View previous topic :: View next topic |
Author |
Message |
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Wed Jan 15, 2003 5:15 pm Post subject: gentoo 2.4.20 kernel |
|
|
after seeing a new gentoo-sources in the portage tree, i immediately jumped on it, with the following result while 'make bzImage'ing:
Code: | simon linux # make bzImage
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -Os -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
. scripts/mkversion > .tmpversion
dnsdomainname: No address associated with name
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -Os -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -Os -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -Os " -C kernel
make[1]: Entering directory `/usr/src/linux-2.4.20-gentoo-r1/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.20-gentoo-r1/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -Os -nostdinc -iwithprefix include -DKBUILD_BASENAME=sched -fno-omit-frame-pointer -c -o sched.o sched.c
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/wait.h:13,
from /usr/src/linux-2.4.20-gentoo-r1/include/linux/fs.h:12,
from /usr/src/linux-2.4.20-gentoo-r1/include/linux/capability.h:17,
from /usr/src/linux-2.4.20-gentoo-r1/include/linux/binfmts.h:6,
from /usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:9,
from /usr/src/linux-2.4.20-gentoo-r1/include/linux/mm.h:22,
from sched.c:19:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/kernel.h:10:20: stdarg.h: No such file or directory
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/wait.h:13,
from /usr/src/linux-2.4.20-gentoo-r1/include/linux/fs.h:12,
from /usr/src/linux-2.4.20-gentoo-r1/include/linux/capability.h:17,
from /usr/src/linux-2.4.20-gentoo-r1/include/linux/binfmts.h:6,
from /usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:9,
from /usr/src/linux-2.4.20-gentoo-r1/include/linux/mm.h:22,
from sched.c:19:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/kernel.h:74: parse error before "va_list"
/usr/src/linux-2.4.20-gentoo-r1/include/linux/kernel.h:75: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-gentoo-r1/include/linux/kernel.h:78: parse error before "va_list"
/usr/src/linux-2.4.20-gentoo-r1/include/linux/kernel.h:79: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-gentoo-r1/include/linux/kernel.h:83: parse error before "va_list"
/usr/src/linux-2.4.20-gentoo-r1/include/linux/kernel.h:84: warning: function declaration isn't a prototype
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r1/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r1/kernel'
make: *** [_dir_kernel] Error 2 |
_________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
MadEagle n00b
Joined: 03 Jun 2002 Posts: 59 Location: Hamburg, Germany
|
Posted: Wed Jan 15, 2003 5:42 pm Post subject: |
|
|
It's a bug, you can find a solution here.
MadEagle |
|
Back to top |
|
|
Gweniviere n00b
Joined: 13 Sep 2002 Posts: 47 Location: Minneapolis, MN USA
|
Posted: Thu Jan 16, 2003 3:41 pm Post subject: |
|
|
I'm afraid that I don't understand this fix. I looked at my Makefile and it has the correct (or at least from what I can tell) kbuild statement...
Quote: |
I think I tracked this down. Works for me, at least.
2.4.20 uses this method for finding include dirs:
kbuild_2_4_nostdinc := -nostdinc -iwithprefix include
2.4.19 uses this method:
kbuild_2_4_nostdinc := -nostdinc $(shell $(CC) -print-search-dirs | sed -ne
's/install: \(.*\)/-I \1include/gp')
After changing 2.4.20's Makefile to use the same method as 2.4.20, it works fine
for me.
|
This is what my Makefile looked like originally...
Code: |
kbuild_2_4_nostdinc. := -nostdinc -iwithprefix include
|
And this is what it looks like now...The only difference was that my Makefile had a period following...
Code: |
kbuild_2_4_nostdinc := -nostdinc -iwithprefix include
|
I removed the period and I get the same results when i make bzImage.
Gwen |
|
Back to top |
|
|
MadEagle n00b
Joined: 03 Jun 2002 Posts: 59 Location: Hamburg, Germany
|
Posted: Thu Jan 16, 2003 4:52 pm Post subject: |
|
|
You have to edit your makefile to make it look like like the Makefile from 2.4.19. But this is not a kernel bug but a gcc-config bug. To solve the problem you can use gcc-config 1.3.0. It is still marked unstable but the 2.4.20 kernel is as well so go figure!
MadEagle |
|
Back to top |
|
|
Gweniviere n00b
Joined: 13 Sep 2002 Posts: 47 Location: Minneapolis, MN USA
|
Posted: Thu Jan 16, 2003 5:02 pm Post subject: |
|
|
Woot! I just emerged sys-devel/gcc-config-1.3.0 and now I am compiling! Thank you.
BTW, gcc-config-1.3.0 looks to be moved from unstable now. At least I did not have to edit my package.mask file to have it merge.
Thank you.
Gwen |
|
Back to top |
|
|
TripKnot Apprentice
Joined: 29 May 2002 Posts: 213
|
Posted: Thu Jan 16, 2003 5:05 pm Post subject: |
|
|
Anyone else having trouble getting this new kernel to shut down the computer?
I have APM enabled and the RTC option enabled, just as in previous kernels and they were always able to power down the pc.
EDIT: Nevermind, seems to be working now, don't know what I did. |
|
Back to top |
|
|
MadEagle n00b
Joined: 03 Jun 2002 Posts: 59 Location: Hamburg, Germany
|
Posted: Thu Jan 16, 2003 6:02 pm Post subject: |
|
|
Gweniviere wrote: |
BTW, gcc-config-1.3.0 looks to be moved from unstable now. At least I did not have to edit my package.mask file to have it merge.
|
It is not masked by putting it into the package.mask file but by marking it unstable in the ebuild file. In the ebuild file you can find a line saying something like KEYWORDS="~x86" meaning that for the x86 architecture it is unstable. That way you can only emerge it by specifically choosing it. If you just say "emerge gcc-config" it won't merge it.
MadEagle |
|
Back to top |
|
|
|