Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 61488

Summary: [linux26-headers] sys-apps/kbd-1.12-r2 will fail to compile on PPC64
Product: Gentoo Linux Reporter: Markus Rothe (RETIRED) <corsair>
Component: Current packagesAssignee: Tim Yamin (RETIRED) <plasmaroo>
Status: VERIFIED DUPLICATE    
Severity: enhancement CC: ppc64
Priority: High    
Version: 2004.2   
Hardware: PPC64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: error.log using 2.6.8.1 headers

Description Markus Rothe (RETIRED) gentoo-dev 2004-08-24 03:28:08 UTC
Hi,

using linux26-headers-2.6.7-r4 and compile of sys-apps/kbd-1.12-r2 will fail:

>>> emerge (1 of 35) sys-apps/kbd-1.12-r2 to /
>>> md5 src_uri ;-) kbd-1.12.tar.gz
>>> Unpacking source...
 * Unpacking kbd-1.12.tar.gz
 * Applying kbd-1.08-terminal.patch...                             [ ok ]
 * Applying kbd-1.12-find-map-fix.patch...                         [ ok ]
 * Applying kbd-1.12-kbd_repeat-v2.patch...                        [ ok ]
>>> Source unpacked.
nls
Configuring for PREFIX=/usr
Configuring for DATADIR=/usr/share
Configuring for MANDIR=/usr/share/man
checking for gcc
You have <locale.h>
You have <libintl.h> and gettext()
Assuming that you want to enable NLS support.
(Otherwise, edit defines.h and delete the line with ENABLE_NLS)

Done. You can run make now.
for i in src openvt po data; do make -C $i all || exit 1; done
make[1]: Entering directory 
`/var/tmp/portage/kbd-1.12-r2/work/kbd-1.12/src'
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -mtune=970 -O3 
-pipe -fsigned-char -mabi=altivec -DDATADIR=\"/usr/share\" dumpkeys.c
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -mtune=970 -O3 
-pipe -fsigned-char -mabi=altivec -DDATADIR=\"/usr/share\" ksyms.c
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -mtune=970 -O3 
-pipe -fsigned-char -mabi=altivec -DDATADIR=\"/usr/share\" xmalloc.c
In file included from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from ksyms.c:1:
/usr/include/asm/processor.h:550: error: parse error before "vector128"
/usr/include/asm/processor.h:556: error: parse error before '}' token
In file included from /usr/include/linux/keyboard.h:4,
                 from ksyms.c:1:
/usr/include/linux/wait.h: In function `init_waitqueue_head':
/usr/include/linux/wait.h:58: error: `SPIN_LOCK_UNLOCKED' undeclared 
(first use in this function)
/usr/include/linux/wait.h:58: error: (Each undeclared identifier is 
reported only once
/usr/include/linux/wait.h:58: error: for each function it appears in.)
In file included from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from dumpkeys.c:13:
/usr/include/asm/processor.h:550: error: parse error before "vector128"
/usr/include/asm/processor.h:556: error: parse error before '}' token
In file included from /usr/include/linux/keyboard.h:4,
                 from dumpkeys.c:13:
/usr/include/linux/wait.h: In function `init_waitqueue_head':
/usr/include/linux/wait.h:58: error: `SPIN_LOCK_UNLOCKED' undeclared 
(first use in this function)
/usr/include/linux/wait.h:58: error: (Each undeclared identifier is 
reported only once
/usr/include/linux/wait.h:58: error: for each function it appears in.)
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -mtune=970 -O3 
-pipe -fsigned-char -mabi=altivec -DDATADIR=\"/usr/share\" getfd.c
make[1]: *** [dumpkeys.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [ksyms.o] Error 1
make[1]: Leaving directory 
`/var/tmp/portage/kbd-1.12-r2/work/kbd-1.12/src'
make: *** [all] Error 1

!!! ERROR: sys-apps/kbd-1.12-r2 failed.
!!! Function src_compile, Line 59, Exitcode 2
!!! emake failed

(Just an enhancement bug! ^_^)

Markus
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2004-08-24 04:38:10 UTC
add: using gcc-3.4.1
Comment 2 Markus Rothe (RETIRED) gentoo-dev 2004-08-24 05:30:45 UTC
works fine with linux26-headers-2.6.3-r1

Markus
Comment 3 Lars Weiler (RETIRED) gentoo-dev 2004-08-25 14:11:39 UTC
Same for ppc with linux26-headers-2.6.7-r4

But I get the error already in ksyms.c
Comment 4 Lars Weiler (RETIRED) gentoo-dev 2004-08-25 15:56:47 UTC
linux26-headers-2.6.8.1 solved the problem for me (but they opened other in powerpc-utils).
Comment 5 Luca Barbato gentoo-dev 2004-08-26 05:09:10 UTC
there is an r10 in portage for ~ppc that has an hotfix for that problem.
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2004-09-23 08:34:48 UTC
linux26-headers-2.6.8.1 solves this according to comment #4; bouncing this back to the PPC team so they can mark it stable...
Comment 7 Markus Rothe (RETIRED) gentoo-dev 2004-09-23 11:56:23 UTC
Hi!

No! linux26-headers didn't solved the problem! I'll add a new error.log.

Markus
Comment 8 Markus Rothe (RETIRED) gentoo-dev 2004-09-23 11:57:14 UTC
Created attachment 40237 [details]
error.log using 2.6.8.1 headers
Comment 9 SpanKY gentoo-dev 2004-09-27 23:02:19 UTC

*** This bug has been marked as a duplicate of 61482 ***
Comment 10 Tom Gall (RETIRED) gentoo-dev 2004-10-31 07:53:17 UTC
stick a fork in it!