View previous topic :: View next topic |
Author |
Message |
stmiller Tux's lil' helper
Joined: 28 Feb 2006 Posts: 119
|
Posted: Fri May 12, 2006 12:54 am Post subject: Powermac G5: 2.6.16 kernel compile errors [solved] |
|
|
Having trouble compiling the 2.6.16 kernel. /usr/src/linux points to the 2.6.16 kernel, and all seems fine otherwise.
I did a default G5 config:
$ make g5_defconfig
Then typing make leaves me with errors from 'asm-offsets' (?):
Code: | stmiller linux # make -j3
CHK include/linux/version.h
CC arch/powerpc/kernel/asm-offsets.s
In file included from include/asm/paca.h:22,
from include/asm/spinlock.h:23,
from include/linux/spinlock.h:87,
from include/linux/signal.h:5,
from arch/powerpc/kernel/asm-offsets.c:17:
include/asm/mmu.h: In function `hpte_encode_r':
include/asm/mmu.h:200: warning: integer constant is too large for "unsigned long" type
include/asm/mmu.h: In function `hpt_hash':
include/asm/mmu.h:215: warning: integer constant is too large for "unsigned long" type
include/asm/mmu.h: In function `vsid_scramble':
include/asm/mmu.h:379: warning: right shift count >= width of type
include/asm/mmu.h:379: warning: left shift count >= width of type
include/asm/mmu.h:380: warning: right shift count >= width of type
include/asm/mmu.h:380: warning: left shift count >= width of type
include/asm/mmu.h: In function `get_kernel_vsid':
include/asm/mmu.h:387: error: `SID_SHIFT' undeclared (first use in this function)
include/asm/mmu.h:387: error: (Each undeclared identifier is reported only once
include/asm/mmu.h:387: error: for each function it appears in.)
include/asm/mmu.h: In function `get_vsid':
include/asm/mmu.h:394: error: `SID_SHIFT' undeclared (first use in this function)
In file included from include/asm/spinlock.h:25,
from include/linux/spinlock.h:87,
from include/linux/signal.h:5,
from arch/powerpc/kernel/asm-offsets.c:17:
include/asm/iseries/hv_call.h: In function `HvCall_setVirtualDecr':
include/asm/iseries/hv_call.h:85: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call.h: In function `HvCall_yieldProcessor':
include/asm/iseries/hv_call.h:90: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call.h: In function `HvCall_setEnabledInterrupts':
include/asm/iseries/hv_call.h:95: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call.h: In function `HvCall_setLogBufferFormatAndCodepage':
include/asm/iseries/hv_call.h:101: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call.h: In function `HvCall_sendIPI':
include/asm/iseries/hv_call.h:108: warning: integer constant is too large for "unsigned long" type
In file included from include/linux/mm.h:16,
from include/linux/mman.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/fs.h: At top level:
include/linux/fs.h:743: warning: "struct flock64" declared inside parameter list
include/linux/fs.h:743: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/fs.h:745: warning: "struct flock64" declared inside parameter list
In file included from include/linux/mm.h:38,
from include/linux/mman.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/asm/pgtable.h:43:50: warning: "SID_SHIFT" is not defined
include/asm/pgtable.h:44:2: #error TASK_SIZE_USER64 exceeds user VSID range
In file included from include/linux/mm.h:38,
from include/linux/mman.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/asm/pgtable.h: In function `find_linux_pte':
include/asm/pgtable.h:519: warning: right shift count >= width of type
In file included from include/linux/mman.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/mm.h: In function `lowmem_page_address':
include/linux/mm.h:516: warning: integer constant is too large for "unsigned long" type
include/linux/mm.h:516: warning: cast to pointer from integer of different size
In file included from arch/powerpc/kernel/asm-offsets.c:33:
include/asm/io.h: In function `virt_to_phys':
include/asm/io.h:227: warning: integer constant is too large for "unsigned long" type
include/asm/io.h: In function `phys_to_virt':
include/asm/io.h:244: warning: integer constant is too large for "unsigned long" type
include/asm/io.h:244: warning: cast to pointer from integer of different size
In file included from include/asm/iseries/hv_lp_event.h:27,
from arch/powerpc/kernel/asm-offsets.c:44:
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_getOverflowLpEvents':
include/asm/iseries/hv_call_event.h:59: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_setInterLpQueueIndex':
include/asm/iseries/hv_call_event.h:64: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_setLpEventStack':
include/asm/iseries/hv_call_event.h:70: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h:71: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_setLpEventQueueInterruptProc':
include/asm/iseries/hv_call_event.h:77: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_signalLpEvent':
include/asm/iseries/hv_call_event.h:83: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h:83: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_signalLpEventFast':
include/asm/iseries/hv_call_event.h:111: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_ackLpEvent':
include/asm/iseries/hv_call_event.h:118: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h:118: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_cancelLpEvent':
include/asm/iseries/hv_call_event.h:123: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h:123: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_getSourceLpInstanceId':
include/asm/iseries/hv_call_event.h:129: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_getTargetLpInstanceId':
include/asm/iseries/hv_call_event.h:135: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_openLpEventPath':
include/asm/iseries/hv_call_event.h:141: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_closeLpEventPath':
include/asm/iseries/hv_call_event.h:147: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_dmaBufList':
include/asm/iseries/hv_call_event.h:180: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h: In function `HvCallEvent_dmaToSp':
include/asm/iseries/hv_call_event.h:187: warning: integer constant is too large for "unsigned long" type
include/asm/iseries/hv_call_event.h:187: warning: integer constant is too large for "unsigned long" type
arch/powerpc/kernel/asm-offsets.c: In function `main':
arch/powerpc/kernel/asm-offsets.c:102: error: dereferencing pointer to incomplete type
arch/powerpc/kernel/asm-offsets.c:103: error: dereferencing pointer to incomplete type
arch/powerpc/kernel/asm-offsets.c:104: error: dereferencing pointer to incomplete type
arch/powerpc/kernel/asm-offsets.c:105: error: dereferencing pointer to incomplete type
arch/powerpc/kernel/asm-offsets.c:106: error: dereferencing pointer to incomplete type
arch/powerpc/kernel/asm-offsets.c:107: error: dereferencing pointer to incomplete type
arch/powerpc/kernel/asm-offsets.c:223: error: structure has no member named `softe'
make[1]: *** [arch/powerpc/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
stmiller linux #
|
Do I need to a patch to fix this? Thanks for your help.
Machine info:
Code: | stmiller linux # cat /proc/cpuinfo
processor : 0
cpu : PPC970FX, altivec supported
clock : 2000.000000MHz
revision : 3.0 (pvr 003c 0300)
processor : 1
cpu : PPC970FX, altivec supported
clock : 2000.000000MHz
revision : 3.0 (pvr 003c 0300)
timebase : 33333333
machine : PowerMac7,3
motherboard : PowerMac7,3 MacRISC4 Power Macintosh
detected as : 336 (PowerMac G5)
pmac flags : 00000000
L2 cache : 512K unified
pmac-generation : NewWorld |
Last edited by stmiller on Wed May 17, 2006 3:58 pm; edited 1 time in total |
|
Back to top |
|
|
jaspal kallar Apprentice
Joined: 25 Feb 2004 Posts: 194 Location: Sweden
|
Posted: Fri May 12, 2006 7:11 pm Post subject: |
|
|
You don't say if you on pure 64 bit userland and 64 bit kernel or like me on a 32 bit userland and a 64 bit kernel. I'm not 100% sure but I think I had similar problems when went to a 64 bit kernel on my 32 bit userland. I think I did to fix it :
BUT before you do this back up your .config file as this is deleted!!
/Jaspal. |
|
Back to top |
|
|
rangerpb Retired Dev
Joined: 19 Jan 2005 Posts: 147
|
Posted: Mon May 15, 2006 7:27 pm Post subject: 32bit userland still uses 64bit compiler for kernel and mods |
|
|
I agree, this looks like you are trying to compile the 64bit kernel with the 32bit compiler. If you are running a 32bit userland, do the following:
- back up your .config file
- do a 'make mrproper'
- edit the CROSS_COMPILE line in the top-level /usr/src/linux/Makefile to be like this: CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-
- then do a make oldconfig
- then a make vmlinux _________________ -->
rangerpb
<-- |
|
Back to top |
|
|
stmiller Tux's lil' helper
Joined: 28 Feb 2006 Posts: 119
|
Posted: Mon May 15, 2006 9:44 pm Post subject: |
|
|
Okay thank you. I have been away for a few days; let me try this. I do have a 32bit userland. Thanks for your help! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|