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
Created attachment 13542 [details] my kernel config
Could you try with ppc-sources-2.4.21-r1 please?
same thing with ppc-sources-2.4.21-r1.
same thing with ppc-sources-benh-2.4.20-r10.
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.
feel free to use livecd .config from http://dev.gentoo.org/~pvdabeel/kernel/
Please reopen if problem still exists with the livecd kernel config.