Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109501 - 32ul: emerge -e system from stage2 -> 3 fails bcoz of error in spinlock.h
Summary: 32ul: emerge -e system from stage2 -> 3 fails bcoz of error in spinlock.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC64 Linux
: High blocker (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-16 13:33 UTC by Arnvid L. Karstad
Modified: 2006-03-29 11:37 UTC (History)
0 users

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


Attachments
Fixes the problem for now (ppc64_spinlock.h.diff,925 bytes, patch)
2005-10-16 13:36 UTC, Arnvid L. Karstad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arnvid L. Karstad 2005-10-16 13:33:29 UTC
If you select an 32but ul on a ppc64 machine.. and doing emerge -e system ..
when emerge comes to gpm, ncurses or kbd it fails with a similar problem

powerpc-unknown-linux-gnu-gcc
-I/var/tmp/portage/gpm-1.20.1-r4/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include
headers/config.h -Wall
                -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -pipe
-m32 -mtune=power5 -mcpu=power5 -O2 -pipe -m32 -mtune=power5 -mcpu=power5 -c -o
mice.o
                mice.c
In file included from /usr/include/linux/wait.h:23,
                  from /usr/include/linux/keyboard.h:14,
                  from mice.c:60:
 /usr/include/linux/spinlock.h:46: error: parse error before '*' token
 /usr/include/linux/spinlock.h:47: error: parse error before '*' token


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Arnvid L. Karstad 2005-10-16 13:36:11 UTC
Created attachment 70805 [details, diff]
Fixes the problem for now

After reading bug #103374 I looked at the file and moved the defines around.
Here's the diff..

This should be flagged upstreams.. (gcc should get a sanity check too)
Comment 2 Arnvid L. Karstad 2005-10-16 13:36:39 UTC
File comes from:
sys-kernel/linux-headers-2.6.11-r2

/CONTENTS:obj /usr/include/linux/spinlock.h bef1776d9300e5151ae1ec4ceb37fc1d
1129441067
Comment 3 Markus Rothe (RETIRED) gentoo-dev 2006-03-19 07:53:22 UTC
still a problem? there are 2006.0 stages for 32bit userland so it should actualy work (as they were build using the same method, but run from inside of catalyst)
Comment 4 Markus Rothe (RETIRED) gentoo-dev 2006-03-29 11:37:11 UTC
the available stages and the lack of resonse from user indicate that this is no longer a problem.

marking as FIXED