I just installed gentoo on my iBook G4. With linux26-headers-2.6.7-r4 compilation of gpm had crashed. With linux26-headers-2.6.6-r1 everything is ok. emerge info: Gentoo Base System version 1.5.3 Portage 2.0.50-r10 (default-ppc-2004.1, gcc-3.4.1, glibc-2.3.4.20040619-r1, 2.6.7-gentoo-r14) ================================================================= System uname: 2.6.7-gentoo-r14 ppc 7447A, altivec supported Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -funroll-loops -fsigned-char -mpowerpc-gfxopt" CHOST="powerpc-unknown-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -funroll-loops -fsigned-char -mpowerpc-gfxopt" DISTDIR="/usr/portage/distfiles" FEATURES="ccache" GENTOO_MIRRORS="http://src.gentoo.pl ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa altivec apache2 apm arts berkdb bzlib cdr crypt cscope cups curl divx4linux doc dvd encode esd evo fbcon flash foomaticdb gd gdbm gif gnome gpm gtk gtk2 gtkhtml imagemagick imlib ipv6 java jikes jpeg kde lcms libwww linguas_en_GB linguas_pl mad mikmod ming mitshm motif mozilla mpeg nas ncurses nls nptl oggvorbis opengl oss pam pdflib perl png posix postgres ppc ppds python qt quicktime readline samba sasl scanner sdl slang slp spell ssl svg tcltk tcpd tiff truetype unicode usb vi video_cards_radeon videos wmf wxwindows xmms xosd xv xvid zlib" Reproducible: Always Steps to Reproduce: 1.emerge =linux26-headers-2.6.7-r4 gpm 2. 3.
Please try 2.6.8.1 headers.
Seems to work fine with 2.6.8.1 headers on PPC, so I'm closing this as FIXED.
This fails to build with 2.6.8.1 headers. Plasmaroo, did you test this ? gpm.c:1145: warning: no return statement in function returning non-void gpm.c: In function `open_console': gpm.c:172: warning: control reaches end of non-void function gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\"" -O3 -mtune=970 -O3 -mtune=970 -c -o gpn.o gpn.c make[1]: *** No rule to make target `/usr/include/asm/a.o', needed by `mice.o'. Stop. make[1]: Leaving directory `/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src' make: *** [do-all] Error 1
Here' ethe problem. a.out.h was added to include/asm kernel headers in 2.6. (Not sure when) In the gpm dependancy code this snipped of sed script screws up: for DEPS in `echo *.c */*.c`; do \ $(CC) -I. -I $(srcdir) -M -I$(srcdir) $(DEFS) -include headers/config.h -Wall -DSYSCONFDIR="\"$(sysconfdir)\"" -DSBINDIR="\"$(sbindir)\"" $(CPPFLAGS) $$DEPS | \ $(SED) 's/\($*\)\.o\([ :]*\)/\1.o \1.lo\2/g' >> $(DEPFILE) ; done I'm no sed wizzzzzzard so I'm not quite sure how to fix that one. But it's producing a .depend file which is wrong.
Tom, is that on PPC64? I tested this on the developer G5 [ PPC ].
Closing as FIXED, the PPC64 issue is unrelated to the system headers and is due to a bug in the package.