Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61702 - ppc: gpm compilation failed with linux26-headers-2.6.7-r4
Summary: ppc: gpm compilation failed with linux26-headers-2.6.7-r4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-25 14:57 UTC by Przemyslaw Maciag (RETIRED)
Modified: 2004-10-19 10:44 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 Przemyslaw Maciag (RETIRED) gentoo-dev 2004-08-25 14:57:17 UTC
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.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-09-23 08:32:12 UTC
Please try 2.6.8.1 headers.
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-09-25 11:19:16 UTC
Seems to work fine with 2.6.8.1 headers on PPC, so I'm closing this as FIXED.
Comment 3 Tom Gall (RETIRED) gentoo-dev 2004-10-12 20:07:43 UTC
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
Comment 4 Tom Gall (RETIRED) gentoo-dev 2004-10-12 20:38:49 UTC
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.
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-10-13 07:50:35 UTC
Tom, is that on PPC64? I tested this on the developer G5 [ PPC ].
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2004-10-19 10:44:00 UTC
Closing as FIXED, the PPC64 issue is unrelated to the system headers and is due to a bug in the package.