Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23082 - Kernel compilation fails on console.c/console.o
Summary: Kernel compilation fails on console.c/console.o
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High blocker (vote)
Assignee: Bryon Roche (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-18 22:25 UTC by atom
Modified: 2006-02-04 06:03 UTC (History)
0 users

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


Attachments
my kernel config (ppc-kernel-config,17.96 KB, text/plain)
2003-06-19 08:52 UTC, atom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description atom 2003-06-18 22:25:26 UTC
I cannot successfully compile a kernel on my fresh PPC install. Every attempt at
kernel compilation of vmlinux fails at console.o. I am having this problem on
linux-2.4.20-ppc-r3 and linux-2.4.20-ppc-r4.

Reproducible: Always
Steps to Reproduce:
1. setup kernel in menuconfig
2. make dep
3. make clean vmlinux

Actual Results:  
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-ppc-r4/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -I/usr/src/linux-2.4.20-ppc-r4/arch/ppc -fsigned-char
-msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring   -nostdinc
-iwithprefix include -DKBUILD_BASENAME=console  -DEXPORT_SYMTAB -c console.c
gcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
{standard input}: Assembler messages:
{standard input}:7215: Warning: end of file not at end of a line; newline inserted
make[3]: *** [console.o] Error 1
make[3]: *** Deleting file `console.o'
make[3]: Leaving directory `/usr/src/linux-2.4.20-ppc-r4/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-ppc-r4/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-ppc-r4/drivers'
make: *** [_dir_drivers] Error 2


Expected Results:  
vmlinux should have compiled successfully.

PowerComputing Power Tower Pro
CPU: 604e 225 MHz
Mem: 80 MB

ISO: gentoo-ppc-1.4_rc6-120403.iso
STAGE: stage3-ppc-1.4_rc8.tbz2
KERNEL: linux-2.4.20-ppc-r3, linux-2.4.20-ppc-r4

Portage 2.0.48-r1 (default-ppc-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-ppc-r4 ppc 
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="oss dvd xv gpm libwww jpeg nls mitshm esd gif imlib sdl oggvorbis gnome gtk
X qt kde motif opengl mozilla png truetype ppc gdbm berkdb slang readline tcpd
pam ssl perl python"
COMPILER="gcc3"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -pipe -fsigned-char"
CXXFLAGS="-O3 -pipe -fsigned-char"
ACCEPT_KEYWORDS="ppc"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
FEATURES="ccache"


Failed output:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-ppc-r4/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -I/usr/src/linux-2.4.20-ppc-r4/arch/ppc -fsigned-char
-msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring   -nostdinc
-iwithprefix include -DKBUILD_BASENAME=console  -DEXPORT_SYMTAB -c console.c
gcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
{standard input}: Assembler messages:
{standard input}:7215: Warning: end of file not at end of a line; newline inserted
make[3]: *** [console.o] Error 1
make[3]: *** Deleting file `console.o'
make[3]: Leaving directory `/usr/src/linux-2.4.20-ppc-r4/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-ppc-r4/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-ppc-r4/drivers'
make: *** [_dir_drivers] Error 2
Comment 1 atom 2003-06-19 08:52:46 UTC
Created attachment 13542 [details]
my kernel config
Comment 2 Bryon Roche (RETIRED) gentoo-dev 2003-06-19 10:13:30 UTC
Could you try with ppc-sources-2.4.21-r1 please?
Comment 3 atom 2003-06-19 11:24:48 UTC
same thing with ppc-sources-2.4.21-r1.
Comment 4 atom 2003-06-19 12:31:03 UTC
same thing with ppc-sources-benh-2.4.20-r10.
Comment 5 Marc Doughty 2003-07-01 11:13:55 UTC
I was having similar issues, the PPC kernel seems to be more sensitive than x86 on kernel compiles. I was configuring and making deps fine, but then compile would fail. I eventually applied some common sense and discovered that I had forgotten to build a few options INTO the kernel (not as modules). Check your framebuffer options, as there is NO VGA console on any hardware Apple produces, use the FB driver appropriate for your machine (ATI Rage 128 for me) instead.


When I get back to my main machine (I'm at work now) I'll attach my .config, just drop it into /usr/src/linux and 'make menuconfig' to see what works for me.
Comment 6 Pieter Van den Abeele (RETIRED) gentoo-dev 2003-07-14 15:30:27 UTC
feel free to use livecd .config from http://dev.gentoo.org/~pvdabeel/kernel/
Comment 7 Pieter Van den Abeele (RETIRED) gentoo-dev 2003-10-11 04:52:07 UTC
Please reopen if problem still exists with the livecd kernel config.