Re: 2.6.23-rc1-mm2

14 messages, 7 authors, 2007-08-06 · open the first message on its own page

Re: 2.6.23-rc1-mm2

From: Mariusz Kozlowski <hidden>
Date: 2007-08-01 08:02:51

Hello,

	I get this warning. Looking at the comment in kernel/irq/resend.c
it's harmless. Is it?

WARNING: at kernel/irq/resend.c:69 check_irq_resend()
 [<c010456a>] show_trace_log_lvl+0x1a/0x30
 [<c010508d>] show_trace+0x12/0x14
 [<c01051e0>] dump_stack+0x15/0x17
 [<c013b001>] check_irq_resend+0x91/0xa0
 [<c013ab58>] enable_irq+0xb1/0xb3
 [<c02d7b81>] ide_config_drive_speed+0xda/0x269
 [<c02d391c>] ali15x3_tune_chipset+0xcc/0x161
 [<c02dd367>] ide_tune_dma+0x43/0x4d
 [<c02d29e0>] ali15x3_config_drive_for_dma+0xf/0x2a
 [<c02dc89a>] ide_set_dma+0x11/0x40
 [<c02d41cf>] set_using_dma+0x84/0xd1
 [<c02d4dfe>] generic_ide_ioctl+0xb9/0x3fb
 [<c02df7e4>] idedisk_ioctl+0x3f/0x10c
 [<c023d779>] blkdev_driver_ioctl+0x55/0x5e
 [<c023da3e>] blkdev_ioctl+0x2bc/0x83e
 [<c017e5ca>] block_ioctl+0x1b/0x21
 [<c01664c2>] do_ioctl+0x22/0x71
 [<c0166566>] vfs_ioctl+0x55/0x28a
 [<c01667ce>] sys_ioctl+0x33/0x51
 [<c0103f32>] sysenter_past_esp+0x5f/0x85
 =======================

Then reattaching a usb mouse caused this (only once)

usb 2-1: USB disconnect, address 2
BUG: atomic counter underflow at:
 [<c010456a>] show_trace_log_lvl+0x1a/0x30
 [<c010508d>] show_trace+0x12/0x14
 [<c01051e0>] dump_stack+0x15/0x17
 [<c01418cf>] __free_pages+0x50/0x52
 [<c01418f0>] free_pages+0x1f/0x21
 [<c010783d>] dma_free_coherent+0x43/0x9c
 [<c0315067>] hcd_buffer_free+0x43/0x6a
 [<c030b2b4>] usb_buffer_free+0x23/0x29
 [<c0346db4>] hid_free_buffers+0x23/0x71
 [<c0346eb2>] hid_disconnect+0xb0/0xc8
 [<c0313676>] usb_unbind_interface+0x30/0x72
 [<c02c6df0>] __device_release_driver+0x6a/0x92
 [<c02c71c3>] device_release_driver+0x20/0x36
 [<c02c6736>] bus_remove_device+0x62/0x85
 [<c02c49f8>] device_del+0x16d/0x27c
 [<c0310f25>] usb_disable_device+0x7a/0xe2
 [<c030d0bc>] usb_disconnect+0x94/0xde
 [<c030e030>] hub_thread+0x2fe/0xc1b
 [<c0128aee>] kthread+0x36/0x58
 [<c0104233>] kernel_thread_helper+0x7/0x14
 =======================
uhci_hcd 0000:00:0c.0: dma_pool_free buffer-32, 6b6b6b6b/6b6b6b6b (bad dma)

Every new try shows:

usb 2-1: new low speed USB device using uhci_hcd and address 3
usb 2-1: new device found, idVendor=046d, idProduct=c00e
usb 2-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: USB-PS/2 Optical Mouse
usb 2-1: Manufacturer: Logitech
usb 2-1: configuration #1 chosen from 1 choice
input: Logitech USB-PS/2 Optical Mouse as /class/input/input9
input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:0c.0-1
usb 2-1: USB disconnect, address 3
uhci_hcd 0000:00:0c.0: dma_pool_free buffer-32, 6b6b6b6b/6b6b6b6b (bad dma)

But mouse works ok.


Second issue as reported earilier allmodconfig fails to build on imac g3.

  CC      arch/powerpc/kernel/lparmap.s
  AS      arch/powerpc/kernel/head_64.o
lparmap.c: Assembler messages:
lparmap.c:84: Error: file number 1 already allocated
make[1]: *** [arch/powerpc/kernel/head_64.o] Blad 1
make: *** [arch/powerpc/kernel] Blad 2


Regards,

	Mariusz

Re: 2.6.23-rc1-mm2

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2007-08-01 08:14:44

On Wed, 1 Aug 2007 10:02:30 +0200 Mariusz Kozlowski [off-list ref] wrote:
Hello,

	I get this warning. Looking at the comment in kernel/irq/resend.c
it's harmless. Is it?

WARNING: at kernel/irq/resend.c:69 check_irq_resend()
 [<c010456a>] show_trace_log_lvl+0x1a/0x30
 [<c010508d>] show_trace+0x12/0x14
 [<c01051e0>] dump_stack+0x15/0x17
 [<c013b001>] check_irq_resend+0x91/0xa0
 [<c013ab58>] enable_irq+0xb1/0xb3
 [<c02d7b81>] ide_config_drive_speed+0xda/0x269
 [<c02d391c>] ali15x3_tune_chipset+0xcc/0x161
 [<c02dd367>] ide_tune_dma+0x43/0x4d
 [<c02d29e0>] ali15x3_config_drive_for_dma+0xf/0x2a
 [<c02dc89a>] ide_set_dma+0x11/0x40
 [<c02d41cf>] set_using_dma+0x84/0xd1
 [<c02d4dfe>] generic_ide_ioctl+0xb9/0x3fb
 [<c02df7e4>] idedisk_ioctl+0x3f/0x10c
 [<c023d779>] blkdev_driver_ioctl+0x55/0x5e
 [<c023da3e>] blkdev_ioctl+0x2bc/0x83e
 [<c017e5ca>] block_ioctl+0x1b/0x21
 [<c01664c2>] do_ioctl+0x22/0x71
 [<c0166566>] vfs_ioctl+0x55/0x28a
 [<c01667ce>] sys_ioctl+0x33/0x51
 [<c0103f32>] sysenter_past_esp+0x5f/0x85
 =======================
Ingo debug stuff.
Then reattaching a usb mouse caused this (only once)

usb 2-1: USB disconnect, address 2
BUG: atomic counter underflow at:
 [<c010456a>] show_trace_log_lvl+0x1a/0x30
 [<c010508d>] show_trace+0x12/0x14
 [<c01051e0>] dump_stack+0x15/0x17
 [<c01418cf>] __free_pages+0x50/0x52
 [<c01418f0>] free_pages+0x1f/0x21
 [<c010783d>] dma_free_coherent+0x43/0x9c
 [<c0315067>] hcd_buffer_free+0x43/0x6a
 [<c030b2b4>] usb_buffer_free+0x23/0x29
 [<c0346db4>] hid_free_buffers+0x23/0x71
 [<c0346eb2>] hid_disconnect+0xb0/0xc8
 [<c0313676>] usb_unbind_interface+0x30/0x72
 [<c02c6df0>] __device_release_driver+0x6a/0x92
 [<c02c71c3>] device_release_driver+0x20/0x36
 [<c02c6736>] bus_remove_device+0x62/0x85
 [<c02c49f8>] device_del+0x16d/0x27c
 [<c0310f25>] usb_disable_device+0x7a/0xe2
 [<c030d0bc>] usb_disconnect+0x94/0xde
 [<c030e030>] hub_thread+0x2fe/0xc1b
 [<c0128aee>] kthread+0x36/0x58
 [<c0104233>] kernel_thread_helper+0x7/0x14
 =======================
uhci_hcd 0000:00:0c.0: dma_pool_free buffer-32, 6b6b6b6b/6b6b6b6b (bad dma)
whoa. huuuuuuuuuuge USB bug!
Every new try shows:

usb 2-1: new low speed USB device using uhci_hcd and address 3
usb 2-1: new device found, idVendor=046d, idProduct=c00e
usb 2-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: USB-PS/2 Optical Mouse
usb 2-1: Manufacturer: Logitech
usb 2-1: configuration #1 chosen from 1 choice
input: Logitech USB-PS/2 Optical Mouse as /class/input/input9
input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:0c.0-1
usb 2-1: USB disconnect, address 3
uhci_hcd 0000:00:0c.0: dma_pool_free buffer-32, 6b6b6b6b/6b6b6b6b (bad dma)

But mouse works ok.
ok..
Second issue as reported earilier allmodconfig fails to build on imac g3.

  CC      arch/powerpc/kernel/lparmap.s
  AS      arch/powerpc/kernel/head_64.o
lparmap.c: Assembler messages:
lparmap.c:84: Error: file number 1 already allocated
make[1]: *** [arch/powerpc/kernel/head_64.o] Blad 1
make: *** [arch/powerpc/kernel] Blad 2
hm, someone is working that, I think?

Re: 2.6.23-rc1-mm2

From: Ingo Molnar <hidden>
Date: 2007-08-01 08:16:43

* Andrew Morton [off-list ref] wrote:
On Wed, 1 Aug 2007 10:02:30 +0200 Mariusz Kozlowski [off-list ref] wrote:
quoted
Hello,

	I get this warning. Looking at the comment in kernel/irq/resend.c
it's harmless. Is it?
yeah, harmless.

	Ingo

Re: 2.6.23-rc1-mm2

From: Paul Mackerras <hidden>
Date: 2007-08-01 12:30:15

Mariusz Kozlowski writes:
Second issue as reported earilier allmodconfig fails to build on imac g3.
Do you really mean g3?  If so it's a 32-bit kernel and it shouldn't be
building lparmap.s.  Or do you mean G5?
  CC      arch/powerpc/kernel/lparmap.s
  AS      arch/powerpc/kernel/head_64.o
lparmap.c: Assembler messages:
lparmap.c:84: Error: file number 1 already allocated
make[1]: *** [arch/powerpc/kernel/head_64.o] Blad 1
make: *** [arch/powerpc/kernel] Blad 2
Weird.  Could you do make V=1 and send me the output?

Paul.

Re: 2.6.23-rc1-mm2

From: Greg KH <gregkh@suse.de>
Date: 2007-08-01 16:36:55

On Wed, Aug 01, 2007 at 10:02:30AM +0200, Mariusz Kozlowski wrote:
Then reattaching a usb mouse caused this (only once)

usb 2-1: USB disconnect, address 2
BUG: atomic counter underflow at:
 [<c010456a>] show_trace_log_lvl+0x1a/0x30
 [<c010508d>] show_trace+0x12/0x14
 [<c01051e0>] dump_stack+0x15/0x17
 [<c01418cf>] __free_pages+0x50/0x52
 [<c01418f0>] free_pages+0x1f/0x21
 [<c010783d>] dma_free_coherent+0x43/0x9c
 [<c0315067>] hcd_buffer_free+0x43/0x6a
 [<c030b2b4>] usb_buffer_free+0x23/0x29
 [<c0346db4>] hid_free_buffers+0x23/0x71
 [<c0346eb2>] hid_disconnect+0xb0/0xc8
 [<c0313676>] usb_unbind_interface+0x30/0x72
 [<c02c6df0>] __device_release_driver+0x6a/0x92
 [<c02c71c3>] device_release_driver+0x20/0x36
 [<c02c6736>] bus_remove_device+0x62/0x85
 [<c02c49f8>] device_del+0x16d/0x27c
 [<c0310f25>] usb_disable_device+0x7a/0xe2
 [<c030d0bc>] usb_disconnect+0x94/0xde
 [<c030e030>] hub_thread+0x2fe/0xc1b
 [<c0128aee>] kthread+0x36/0x58
 [<c0104233>] kernel_thread_helper+0x7/0x14
 =======================
uhci_hcd 0000:00:0c.0: dma_pool_free buffer-32, 6b6b6b6b/6b6b6b6b (bad dma)

Every new try shows:

usb 2-1: new low speed USB device using uhci_hcd and address 3
usb 2-1: new device found, idVendor=046d, idProduct=c00e
usb 2-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: USB-PS/2 Optical Mouse
usb 2-1: Manufacturer: Logitech
usb 2-1: configuration #1 chosen from 1 choice
input: Logitech USB-PS/2 Optical Mouse as /class/input/input9
input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:0c.0-1
usb 2-1: USB disconnect, address 3
uhci_hcd 0000:00:0c.0: dma_pool_free buffer-32, 6b6b6b6b/6b6b6b6b (bad dma)

But mouse works ok.
Can you see if the patch posted by Jiri fixes this or not?

thanks,

greg k-h

Re: 2.6.23-rc1-mm2

From: Mariusz Kozlowski <hidden>
Date: 2007-08-02 10:15:23

quoted
Second issue as reported earilier allmodconfig fails to build on imac g3.
Do you really mean g3?  If so it's a 32-bit kernel and it shouldn't be
building lparmap.s.  Or do you mean G5?
Yes it is iMac G3. More or less sth like this: 
http://upload.wikimedia.org/wikipedia/commons/c/c0/IMac_Bondi_Blue.jpg

processor       : 0
cpu             : 740/750
temperature     : 47-49 C (uncalibrated)
clock           : 400MHz
revision        : 2.2 (pvr 0008 0202)
bogomips        : 796.67
machine         : PowerMac2,1
motherboard     : PowerMac2,1 MacRISC2 MacRISC Power Macintosh
detected as     : 66 (iMac FireWire)
pmac flags      : 00000005
L2 cache        : 512K unified
memory          : 256MB
pmac-generation : NewWorld
quoted
  CC      arch/powerpc/kernel/lparmap.s
  AS      arch/powerpc/kernel/head_64.o
lparmap.c: Assembler messages:
lparmap.c:84: Error: file number 1 already allocated
make[1]: *** [arch/powerpc/kernel/head_64.o] Blad 1
make: *** [arch/powerpc/kernel] Blad 2
Weird.  Could you do make V=1 and send me the output?
Ok. Here it goes. The last screen. If you need all / more feel free to mail 
me. Config is attached - please note that this is default allmodconfig.


 
gcc -m64 -Wp,-MD,arch/powerpc/kernel/.machine_kexec.o.d  -nostdinc -isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include 
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -msoft-float -pipe -mminimal-toc -mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at-a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(machine_kexec)"  -D"KBUILD_MODNAME=KBUILD_STR(machine_kexec)" -c -o 
arch/powerpc/kernel/.tmp_machine_kexec.o arch/powerpc/kernel/machine_kexec.c
  
gcc -m64 -Wp,-MD,arch/powerpc/kernel/.crash.o.d  -nostdinc -isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include 
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -msoft-float -pipe -mminimal-toc -mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at-a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(crash)"  -D"KBUILD_MODNAME=KBUILD_STR(crash)" -c -o 
arch/powerpc/kernel/.tmp_crash.o arch/powerpc/kernel/crash.c
  
gcc -m64 -Wp,-MD,arch/powerpc/kernel/.machine_kexec_64.o.d  -nostdinc -isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include 
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -msoft-float -pipe -mminimal-toc -mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at-a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(machine_kexec_64)"  -D"KBUILD_MODNAME=KBUILD_STR(machine_kexec_64)" -c -o 
arch/powerpc/kernel/.tmp_machine_kexec_64.o 
arch/powerpc/kernel/machine_kexec_64.c
  
gcc -m64 -Wp,-MD,arch/powerpc/kernel/.audit.o.d  -nostdinc -isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include 
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -msoft-float -pipe -mminimal-toc -mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at-a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(audit)"  -D"KBUILD_MODNAME=KBUILD_STR(audit)" -c -o 
arch/powerpc/kernel/.tmp_audit.o arch/powerpc/kernel/audit.c
  
gcc -m64 -Wp,-MD,arch/powerpc/kernel/.swsusp_64.o.d  -nostdinc -isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include 
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -msoft-float -pipe -mminimal-toc -mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at-a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(swsusp_64)"  -D"KBUILD_MODNAME=KBUILD_STR(swsusp_64)" -c -o 
arch/powerpc/kernel/.tmp_swsusp_64.o arch/powerpc/kernel/swsusp_64.c
  
gcc -m64 -Wp,-MD,arch/powerpc/kernel/.swsusp_asm64.o.d  -nostdinc -isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include 
include/linux/autoconf.h  -D__ASSEMBLY__  -Wa,-maltivec  -gdwarf2    -c -o 
arch/powerpc/kernel/swsusp_asm64.o arch/powerpc/kernel/swsusp_asm64.S
  
gcc -m64 -Wp,-MD,arch/powerpc/kernel/.compat_audit.o.d  -nostdinc -isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include 
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -msoft-float -pipe -mminimal-toc -mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at-a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(compat_audit)"  -D"KBUILD_MODNAME=KBUILD_STR(compat_audit)" -c -o 
arch/powerpc/kernel/.tmp_compat_audit.o arch/powerpc/kernel/compat_audit.c
   ld -m elf64ppc   -r -o arch/powerpc/kernel/built-in.o 
arch/powerpc/kernel/semaphore.o arch/powerpc/kernel/cputable.o 
arch/powerpc/kernel/ptrace.o arch/powerpc/kernel/syscalls.o 
arch/powerpc/kernel/irq.o arch/powerpc/kernel/align.o 
arch/powerpc/kernel/signal_32.o arch/powerpc/kernel/pmc.o 
arch/powerpc/kernel/vdso.o arch/powerpc/kernel/init_task.o 
arch/powerpc/kernel/process.o arch/powerpc/kernel/systbl.o 
arch/powerpc/kernel/idle.o arch/powerpc/kernel/signal.o 
arch/powerpc/kernel/vdso32/built-in.o arch/powerpc/kernel/setup_64.o 
arch/powerpc/kernel/binfmt_elf32.o arch/powerpc/kernel/sys_ppc32.o 
arch/powerpc/kernel/signal_64.o arch/powerpc/kernel/ptrace32.o 
arch/powerpc/kernel/paca.o arch/powerpc/kernel/cpu_setup_ppc970.o 
arch/powerpc/kernel/cpu_setup_pa6t.o arch/powerpc/kernel/firmware.o 
arch/powerpc/kernel/sysfs.o arch/powerpc/kernel/nvram_64.o 
arch/powerpc/kernel/vdso64/built-in.o arch/powerpc/kernel/vecemu.o 
arch/powerpc/kernel/vector.o arch/powerpc/kernel/idle_power4.o 
arch/powerpc/kernel/of_device.o arch/powerpc/kernel/of_platform.o 
arch/powerpc/kernel/prom_parse.o arch/powerpc/kernel/proc_ppc64.o 
arch/powerpc/kernel/rtas.o arch/powerpc/kernel/rtas-rtc.o 
arch/powerpc/kernel/rtas_pci.o arch/powerpc/kernel/rtas-proc.o 
arch/powerpc/kernel/lparcfg.o arch/powerpc/kernel/vio.o 
arch/powerpc/kernel/ibmebus.o arch/powerpc/kernel/smp-tbsync.o 
arch/powerpc/kernel/crash_dump.o arch/powerpc/kernel/swsusp.o 
arch/powerpc/kernel/suspend.o arch/powerpc/kernel/time.o 
arch/powerpc/kernel/prom.o arch/powerpc/kernel/traps.o 
arch/powerpc/kernel/setup-common.o arch/powerpc/kernel/udbg.o 
arch/powerpc/kernel/misc.o arch/powerpc/kernel/io.o 
arch/powerpc/kernel/misc_64.o arch/powerpc/kernel/dma_64.o 
arch/powerpc/kernel/iommu.o arch/powerpc/kernel/prom_init.o 
arch/powerpc/kernel/ppc_ksyms.o arch/powerpc/kernel/btext.o 
arch/powerpc/kernel/smp.o arch/powerpc/kernel/kprobes.o 
arch/powerpc/kernel/legacy_serial.o arch/powerpc/kernel/udbg_16550.o 
arch/powerpc/kernel/kgdb.o arch/powerpc/kernel/kgdb_setjmp64.o 
arch/powerpc/kernel/module_64.o arch/powerpc/kernel/pci_64.o 
arch/powerpc/kernel/pci_dn.o arch/powerpc/kernel/isa-bridge.o 
arch/powerpc/kernel/pci-common.o arch/powerpc/kernel/msi.o 
arch/powerpc/kernel/machine_kexec.o arch/powerpc/kernel/crash.o 
arch/powerpc/kernel/machine_kexec_64.o arch/powerpc/kernel/audit.o 
arch/powerpc/kernel/swsusp_64.o arch/powerpc/kernel/swsusp_asm64.o 
arch/powerpc/kernel/compat_audit.o
  
gcc -m64 -Wp,-MD,arch/powerpc/kernel/.lparmap.s.d  -nostdinc -isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include 
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -msoft-float -pipe -mminimal-toc -mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at-a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lparmap)"  -D"KBUILD_MODNAME=KBUILD_STR(lparmap)" -fverbose-asm -S -o 
arch/powerpc/kernel/lparmap.s arch/powerpc/kernel/lparmap.c
  
gcc -m64 -Wp,-MD,arch/powerpc/kernel/.head_64.o.d  -nostdinc -isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include 
include/linux/autoconf.h  -D__ASSEMBLY__  -Wa,-maltivec  -gdwarf2  -Iarch/powerpc/kernel  -c -o 
arch/powerpc/kernel/head_64.o arch/powerpc/kernel/head_64.S
lparmap.c: Assembler messages:
lparmap.c:84: Error: file number 1 already allocated
make[1]: *** [arch/powerpc/kernel/head_64.o] Blad 1
make: *** [arch/powerpc/kernel] Blad 2

Re: 2.6.23-rc1-mm2

From: Kumar Gala <hidden>
Date: 2007-08-03 09:39:21

On Aug 2, 2007, at 5:14 AM, Mariusz Kozlowski wrote:
quoted
quoted
Second issue as reported earilier allmodconfig fails to build on  
imac g3.
Do you really mean g3?  If so it's a 32-bit kernel and it  
shouldn't be
building lparmap.s.  Or do you mean G5?
Yes it is iMac G3. More or less sth like this:
http://upload.wikimedia.org/wikipedia/commons/c/c0/IMac_Bondi_Blue.jpg

processor       : 0
cpu             : 740/750
temperature     : 47-49 C (uncalibrated)
clock           : 400MHz
revision        : 2.2 (pvr 0008 0202)
bogomips        : 796.67
machine         : PowerMac2,1
motherboard     : PowerMac2,1 MacRISC2 MacRISC Power Macintosh
detected as     : 66 (iMac FireWire)
pmac flags      : 00000005
L2 cache        : 512K unified
memory          : 256MB
pmac-generation : NewWorld
quoted
quoted
  CC      arch/powerpc/kernel/lparmap.s
  AS      arch/powerpc/kernel/head_64.o
lparmap.c: Assembler messages:
lparmap.c:84: Error: file number 1 already allocated
make[1]: *** [arch/powerpc/kernel/head_64.o] Blad 1
make: *** [arch/powerpc/kernel] Blad 2
Weird.  Could you do make V=1 and send me the output?
Ok. Here it goes. The last screen. If you need all / more feel free  
to mail
me. Config is attached - please note that this is default  
allmodconfig.



gcc -m64 -Wp,-MD,arch/powerpc/kernel/.machine_kexec.o.d  -nostdinc - 
isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ - 
Iinclude  -include
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno- 
trigraphs -fno-strict-aliasing -fno-common -Werror-implicit- 
function-declaration -Os -msoft-float -pipe -mminimal-toc - 
mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at- 
a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno- 
stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  - 
mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR 
(machine_kexec)"  -D"KBUILD_MODNAME=KBUILD_STR(machine_kexec)" -c -o
arch/powerpc/kernel/.tmp_machine_kexec.o arch/powerpc/kernel/ 
machine_kexec.c

gcc -m64 -Wp,-MD,arch/powerpc/kernel/.crash.o.d  -nostdinc - 
isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ - 
Iinclude  -include
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno- 
trigraphs -fno-strict-aliasing -fno-common -Werror-implicit- 
function-declaration -Os -msoft-float -pipe -mminimal-toc - 
mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at- 
a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno- 
stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  - 
mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR 
(crash)"  -D"KBUILD_MODNAME=KBUILD_STR(crash)" -c -o
arch/powerpc/kernel/.tmp_crash.o arch/powerpc/kernel/crash.c

gcc -m64 -Wp,-MD,arch/powerpc/kernel/.machine_kexec_64.o.d  - 
nostdinc -isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include - 
D__KERNEL__ -Iinclude  -include
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno- 
trigraphs -fno-strict-aliasing -fno-common -Werror-implicit- 
function-declaration -Os -msoft-float -pipe -mminimal-toc - 
mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at- 
a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno- 
stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  - 
mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR 
(machine_kexec_64)"  -D"KBUILD_MODNAME=KBUILD_STR 
(machine_kexec_64)" -c -o
arch/powerpc/kernel/.tmp_machine_kexec_64.o
arch/powerpc/kernel/machine_kexec_64.c

gcc -m64 -Wp,-MD,arch/powerpc/kernel/.audit.o.d  -nostdinc - 
isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ - 
Iinclude  -include
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno- 
trigraphs -fno-strict-aliasing -fno-common -Werror-implicit- 
function-declaration -Os -msoft-float -pipe -mminimal-toc - 
mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at- 
a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno- 
stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  - 
mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR 
(audit)"  -D"KBUILD_MODNAME=KBUILD_STR(audit)" -c -o
arch/powerpc/kernel/.tmp_audit.o arch/powerpc/kernel/audit.c

gcc -m64 -Wp,-MD,arch/powerpc/kernel/.swsusp_64.o.d  -nostdinc - 
isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ - 
Iinclude  -include
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno- 
trigraphs -fno-strict-aliasing -fno-common -Werror-implicit- 
function-declaration -Os -msoft-float -pipe -mminimal-toc - 
mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at- 
a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno- 
stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  - 
mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR 
(swsusp_64)"  -D"KBUILD_MODNAME=KBUILD_STR(swsusp_64)" -c -o
arch/powerpc/kernel/.tmp_swsusp_64.o arch/powerpc/kernel/swsusp_64.c

gcc -m64 -Wp,-MD,arch/powerpc/kernel/.swsusp_asm64.o.d  -nostdinc - 
isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ - 
Iinclude  -include
include/linux/autoconf.h  -D__ASSEMBLY__  -Wa,-maltivec  - 
gdwarf2    -c -o
arch/powerpc/kernel/swsusp_asm64.o arch/powerpc/kernel/swsusp_asm64.S

gcc -m64 -Wp,-MD,arch/powerpc/kernel/.compat_audit.o.d  -nostdinc - 
isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ - 
Iinclude  -include
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno- 
trigraphs -fno-strict-aliasing -fno-common -Werror-implicit- 
function-declaration -Os -msoft-float -pipe -mminimal-toc - 
mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at- 
a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno- 
stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  - 
mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR 
(compat_audit)"  -D"KBUILD_MODNAME=KBUILD_STR(compat_audit)" -c -o
arch/powerpc/kernel/.tmp_compat_audit.o arch/powerpc/kernel/ 
compat_audit.c
   ld -m elf64ppc   -r -o arch/powerpc/kernel/built-in.o
arch/powerpc/kernel/semaphore.o arch/powerpc/kernel/cputable.o
arch/powerpc/kernel/ptrace.o arch/powerpc/kernel/syscalls.o
arch/powerpc/kernel/irq.o arch/powerpc/kernel/align.o
arch/powerpc/kernel/signal_32.o arch/powerpc/kernel/pmc.o
arch/powerpc/kernel/vdso.o arch/powerpc/kernel/init_task.o
arch/powerpc/kernel/process.o arch/powerpc/kernel/systbl.o
arch/powerpc/kernel/idle.o arch/powerpc/kernel/signal.o
arch/powerpc/kernel/vdso32/built-in.o arch/powerpc/kernel/setup_64.o
arch/powerpc/kernel/binfmt_elf32.o arch/powerpc/kernel/sys_ppc32.o
arch/powerpc/kernel/signal_64.o arch/powerpc/kernel/ptrace32.o
arch/powerpc/kernel/paca.o arch/powerpc/kernel/cpu_setup_ppc970.o
arch/powerpc/kernel/cpu_setup_pa6t.o arch/powerpc/kernel/firmware.o
arch/powerpc/kernel/sysfs.o arch/powerpc/kernel/nvram_64.o
arch/powerpc/kernel/vdso64/built-in.o arch/powerpc/kernel/vecemu.o
arch/powerpc/kernel/vector.o arch/powerpc/kernel/idle_power4.o
arch/powerpc/kernel/of_device.o arch/powerpc/kernel/of_platform.o
arch/powerpc/kernel/prom_parse.o arch/powerpc/kernel/proc_ppc64.o
arch/powerpc/kernel/rtas.o arch/powerpc/kernel/rtas-rtc.o
arch/powerpc/kernel/rtas_pci.o arch/powerpc/kernel/rtas-proc.o
arch/powerpc/kernel/lparcfg.o arch/powerpc/kernel/vio.o
arch/powerpc/kernel/ibmebus.o arch/powerpc/kernel/smp-tbsync.o
arch/powerpc/kernel/crash_dump.o arch/powerpc/kernel/swsusp.o
arch/powerpc/kernel/suspend.o arch/powerpc/kernel/time.o
arch/powerpc/kernel/prom.o arch/powerpc/kernel/traps.o
arch/powerpc/kernel/setup-common.o arch/powerpc/kernel/udbg.o
arch/powerpc/kernel/misc.o arch/powerpc/kernel/io.o
arch/powerpc/kernel/misc_64.o arch/powerpc/kernel/dma_64.o
arch/powerpc/kernel/iommu.o arch/powerpc/kernel/prom_init.o
arch/powerpc/kernel/ppc_ksyms.o arch/powerpc/kernel/btext.o
arch/powerpc/kernel/smp.o arch/powerpc/kernel/kprobes.o
arch/powerpc/kernel/legacy_serial.o arch/powerpc/kernel/udbg_16550.o
arch/powerpc/kernel/kgdb.o arch/powerpc/kernel/kgdb_setjmp64.o
arch/powerpc/kernel/module_64.o arch/powerpc/kernel/pci_64.o
arch/powerpc/kernel/pci_dn.o arch/powerpc/kernel/isa-bridge.o
arch/powerpc/kernel/pci-common.o arch/powerpc/kernel/msi.o
arch/powerpc/kernel/machine_kexec.o arch/powerpc/kernel/crash.o
arch/powerpc/kernel/machine_kexec_64.o arch/powerpc/kernel/audit.o
arch/powerpc/kernel/swsusp_64.o arch/powerpc/kernel/swsusp_asm64.o
arch/powerpc/kernel/compat_audit.o

gcc -m64 -Wp,-MD,arch/powerpc/kernel/.lparmap.s.d  -nostdinc - 
isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ - 
Iinclude  -include
include/linux/autoconf.h  -Wall -Wundef -Wstrict-prototypes -Wno- 
trigraphs -fno-strict-aliasing -fno-common -Werror-implicit- 
function-declaration -Os -msoft-float -pipe -mminimal-toc - 
mtraceback=none  -mcall-aixdesc -mcpu=power4 -mno-altivec -funit-at- 
a-time -mno-string -Wa,-maltivec -fomit-frame-pointer -g  -fno- 
stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  - 
mno-minimal-toc   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR 
(lparmap)"  -D"KBUILD_MODNAME=KBUILD_STR(lparmap)" -fverbose-asm -S -o
arch/powerpc/kernel/lparmap.s arch/powerpc/kernel/lparmap.c

gcc -m64 -Wp,-MD,arch/powerpc/kernel/.head_64.o.d  -nostdinc - 
isystem /usr/lib/gcc/powerpc-linux-gnu/4.1.2/include -D__KERNEL__ - 
Iinclude  -include
include/linux/autoconf.h  -D__ASSEMBLY__  -Wa,-maltivec  -gdwarf2  - 
Iarch/powerpc/kernel  -c -o
arch/powerpc/kernel/head_64.o arch/powerpc/kernel/head_64.S
lparmap.c: Assembler messages:
lparmap.c:84: Error: file number 1 already allocated
make[1]: *** [arch/powerpc/kernel/head_64.o] Blad 1
make: *** [arch/powerpc/kernel] Blad 2
Some how your defconfig is targeting a PPC64 box:

CONFIG_PPC64=y

shouldn't be set if you want to build a kernel for a G3 imac.

- k

Re: 2.6.23-rc1-mm2

From: Segher Boessenkool <hidden>
Date: 2007-08-06 19:10:33

Second issue as reported earilier allmodconfig fails to build on imac 
g3.

  CC      arch/powerpc/kernel/lparmap.s
  AS      arch/powerpc/kernel/head_64.o
lparmap.c: Assembler messages:
lparmap.c:84: Error: file number 1 already allocated
make[1]: *** [arch/powerpc/kernel/head_64.o] Blad 1
make: *** [arch/powerpc/kernel] Blad 2
Please send me the full output of:

gcc --version    (or whatever your gcc is called)
ld --version
ld --help        (I know no better way to get the supported binutils
                   targets, and the default target)

and the lparmap.s file.  You might want to skip sending it
to the lists, it will be a bit big (and off-topic on most
of those lists, anyway).


Segher

Re: 2.6.23-rc1-mm2

From: Segher Boessenkool <hidden>
Date: 2007-08-06 19:11:51

On 2 aug 2007, at 12:14, Mariusz Kozlowski wrote:
quoted
quoted
Second issue as reported earilier allmodconfig fails to build on 
imac g3.
Do you really mean g3?  If so it's a 32-bit kernel and it shouldn't be
building lparmap.s.
It might be a bug nevertheless, there are more "issues" with
the interesting way lparmap.s is built and used.


Segher

Re: 2.6.23-rc1-mm2

From: Segher Boessenkool <hidden>
Date: 2007-08-06 19:13:25

Some how your defconfig is targeting a PPC64 box:

CONFIG_PPC64=y

shouldn't be set if you want to build a kernel for a G3 imac.
allyesconfig/allmodconfig select a 64-bit build always.  Maybe
it shouldn't.


Segher

Re: 2.6.23-rc1-mm2

From: Mariusz Kozlowski <hidden>
Date: 2007-08-06 19:34:36

quoted
Second issue as reported earilier allmodconfig fails to build on imac 
g3.

  CC      arch/powerpc/kernel/lparmap.s
  AS      arch/powerpc/kernel/head_64.o
lparmap.c: Assembler messages:
lparmap.c:84: Error: file number 1 already allocated
make[1]: *** [arch/powerpc/kernel/head_64.o] Blad 1
make: *** [arch/powerpc/kernel] Blad 2
Please send me the full output of:

gcc --version    (or whatever your gcc is called)
ld --version
ld --help        (I know no better way to get the supported binutils
                   targets, and the default target)

and the lparmap.s file.  You might want to skip sending it
to the lists, it will be a bit big (and off-topic on most
of those lists, anyway).
Well ... its 66kB. Not that bad. Please find it attached.
Needed gcc and ld info below.

Regards,

	Mariusz



$ gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ ld --version
GNU ld version 2.17 Debian GNU/Linux
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

$ ld --help
Usage: ld [options] file...
Options:
  -a KEYWORD                  Shared library control for HP/UX compatibility
  -A ARCH, --architecture ARCH
                              Set architecture
  -b TARGET, --format TARGET  Specify target for following input files
  -c FILE, --mri-script FILE  Read MRI format linker script
  -d, -dc, -dp                Force common symbols to be defined
  -e ADDRESS, --entry ADDRESS Set start address
  -E, --export-dynamic        Export all dynamic symbols
  -EB                         Link big-endian objects
  -EL                         Link little-endian objects
  -f SHLIB, --auxiliary SHLIB Auxiliary filter for shared object symbol table
  -F SHLIB, --filter SHLIB    Filter for shared object symbol table
  -g                          Ignored
  -G SIZE, --gpsize SIZE      Small data size (if no size, same as --shared)
  -h FILENAME, -soname FILENAME
                              Set internal name of shared library
  -I PROGRAM, --dynamic-linker PROGRAM
                              Set PROGRAM as the dynamic linker to use
  -l LIBNAME, --library LIBNAME
                              Search for library LIBNAME
  -L DIRECTORY, --library-path DIRECTORY
                              Add DIRECTORY to library search path
  --sysroot=<DIRECTORY>       Override the default sysroot location
  -m EMULATION                Set emulation
  -M, --print-map             Print map file on standard output
  -n, --nmagic                Do not page align data
  -N, --omagic                Do not page align data, do not make text readonly
  --no-omagic                 Page align data, make text readonly
  -o FILE, --output FILE      Set output file name
  -O                          Optimize output file
  -Qy                         Ignored for SVR4 compatibility
  -q, --emit-relocs           Generate relocations in final output
  -r, -i, --relocatable       Generate relocatable output
  -R FILE, --just-symbols FILE
                              Just link symbols (if directory, same as --rpath)
  -s, --strip-all             Strip all symbols
  -S, --strip-debug           Strip debugging symbols
  --strip-discarded           Strip symbols in discarded sections
  --no-strip-discarded        Do not strip symbols in discarded sections
  -t, --trace                 Trace file opens
  -T FILE, --script FILE      Read linker script
  -u SYMBOL, --undefined SYMBOL
                              Start with undefined reference to SYMBOL
  --unique [=SECTION]         Don't merge input [SECTION | orphan] sections
  -Ur                         Build global constructor/destructor tables
  -v, --version               Print version information
  -V                          Print version and emulation information
  -x, --discard-all           Discard all local symbols
  -X, --discard-locals        Discard temporary local symbols (default)
  --discard-none              Don't discard any local symbols
  -y SYMBOL, --trace-symbol SYMBOL
                              Trace mentions of SYMBOL
  -Y PATH                     Default search path for Solaris compatibility
  -(, --start-group           Start a group
  -), --end-group             End a group
  --accept-unknown-input-arch Accept input files whose architecture cannot be determined
  --no-accept-unknown-input-arch
                              Reject input files whose architecture is unknown
  --add-needed                Set DT_NEEDED tags for DT_NEEDED entries in
                                following dynamic libs
  --no-add-needed             Do not set DT_NEEDED tags for DT_NEEDED entries
                                in following dynamic libs
  --as-needed                 Only set DT_NEEDED for following dynamic libs if used
  --no-as-needed              Always set DT_NEEDED for following dynamic libs
  -assert KEYWORD             Ignored for SunOS compatibility
  -Bdynamic, -dy, -call_shared
                              Link against shared libraries
  -Bstatic, -dn, -non_shared, -static
                              Do not link against shared libraries
  -Bsymbolic                  Bind global references locally
  --check-sections            Check section addresses for overlaps (default)
  --no-check-sections         Do not check section addresses for overlaps
  --cref                      Output cross reference table
  --defsym SYMBOL=EXPRESSION  Define a symbol
  --demangle [=STYLE]         Demangle symbol names [using STYLE]
  --embedded-relocs           Generate embedded relocs
  --fatal-warnings            Treat warnings as errors
  -fini SYMBOL                Call SYMBOL at unload-time
  --force-exe-suffix          Force generation of file with .exe suffix
  --gc-sections               Remove unused sections (on some targets)
  --no-gc-sections            Don't remove unused sections (default)
  --hash-size=<NUMBER>        Set default hash table size close to <NUMBER>
  --help                      Print option help
  -init SYMBOL                Call SYMBOL at load-time
  -Map FILE                   Write a map file
  --no-define-common          Do not define Common storage
  --no-demangle               Do not demangle symbol names
  --no-keep-memory            Use less memory and more disk I/O
  --no-undefined              Do not allow unresolved references in object files
  --allow-shlib-undefined     Allow unresolved references in shared libaries
  --no-allow-shlib-undefined  Do not allow unresolved references in shared libs
  --allow-multiple-definition Allow multiple definitions
  --no-undefined-version      Disallow undefined version
  --default-symver            Create default symbol version
  --default-imported-symver   Create default symbol version for imported symbols
  --no-warn-mismatch          Don't warn about mismatched input files
  --no-whole-archive          Turn off --whole-archive
  --noinhibit-exec            Create an output file even if errors occur
  -nostdlib                   Only use library directories specified on
                                the command line
  --oformat TARGET            Specify target of output file
  -qmagic                     Ignored for Linux compatibility
  --reduce-memory-overheads   Reduce memory overheads, possibly taking much longer
  --relax                     Relax branches on certain targets
  --retain-symbols-file FILE  Keep only symbols listed in FILE
  -rpath PATH                 Set runtime shared library search path
  -rpath-link PATH            Set link time shared library search path
  -shared, -Bshareable        Create a shared library
  -pie, --pic-executable      Create a position independent executable
  --sort-common               Sort common symbols by size
  --sort-section name|alignment
                              Sort sections by name or maximum alignment
  --spare-dynamic-tags COUNT  How many tags to reserve in .dynamic section
  --split-by-file [=SIZE]     Split output sections every SIZE octets
  --split-by-reloc [=COUNT]   Split output sections every COUNT relocs
  --stats                     Print memory usage statistics
  --target-help               Display target specific options
  --task-link SYMBOL          Do task level linking
  --traditional-format        Use same format as native linker
  --section-start SECTION=ADDRESS
                              Set address of named section
  -Tbss ADDRESS               Set address of .bss section
  -Tdata ADDRESS              Set address of .data section
  -Ttext ADDRESS              Set address of .text section
  --unresolved-symbols=<method>
                              How to handle unresolved symbols.  <method> is:
                                ignore-all, report-all, ignore-in-object-files,
                                ignore-in-shared-libs
  --verbose                   Output lots of information during link
  --version-script FILE       Read version information script
  --version-exports-section SYMBOL
                              Take export symbols list from .exports, using
                                SYMBOL as the version.
  --warn-common               Warn about duplicate common symbols
  --warn-constructors         Warn if global constructors/destructors are seen
  --warn-multiple-gp          Warn if the multiple GP values are used
  --warn-once                 Warn only once per undefined symbol
  --warn-section-align        Warn if start of section changes due to alignment
  --warn-shared-textrel       Warn if shared object has DT_TEXTREL
  --warn-unresolved-symbols   Report unresolved symbols as warnings
  --error-unresolved-symbols  Report unresolved symbols as errors
  --whole-archive             Include all objects from following archives
  --wrap SYMBOL               Use wrapper functions for SYMBOL
  @FILE                       Read options from FILE
ld: supported targets: elf32-powerpc aixcoff-rs6000 elf32-powerpcle ppcboot elf32-little elf32-big elf64-powerpc elf64-powerpcle aixcoff64-rs6000 elf64-little elf64-big srec symbolsrec tekhex binary ihex
ld: supported emulations: elf32ppclinux elf32ppc elf32ppcsim elf64ppc
ld: emulation specific options:
elf32ppclinux: 
  -Bgroup               Selects group name lookup rules for DSO
  --disable-new-dtags   Disable new dynamic tags
  --enable-new-dtags    Enable new dynamic tags
  --eh-frame-hdr        Create .eh_frame_hdr section
  -z combreloc          Merge dynamic relocs into one section and sort
  -z defs               Report unresolved symbols in object files.
  -z execstack          Mark executable as requiring executable stack
  -z initfirst          Mark DSO to be initialized first at runtime
  -z interpose          Mark object to interpose all DSOs but executable
  -z loadfltr           Mark object requiring immediate process
  -z muldefs            Allow multiple definitions
  -z nocombreloc        Don't merge dynamic relocs into one section
  -z nocopyreloc        Don't create copy relocs
  -z nodefaultlib       Mark object not to use default search paths
  -z nodelete           Mark DSO non-deletable at runtime
  -z nodlopen           Mark DSO not available to dlopen
  -z nodump             Mark DSO not available to dldump
  -z noexecstack        Mark executable as not requiring executable stack
  -z norelro            Don't create RELRO program header
  -z now                Mark object non-lazy runtime binding
  -z origin             Mark object requiring immediate $ORIGIN processing
                          at runtime
  -z relro              Create RELRO program header
  -z KEYWORD            Ignored for Solaris compatibility
  --emit-stub-syms      Label linker stubs with a symbol.
  --no-tls-optimize     Don't try to optimize TLS accesses.
  --bss-plt             Force old-style BSS PLT.
  --sdata-got           Force GOT location just before .sdata.
elf32ppc: 
  -Bgroup               Selects group name lookup rules for DSO
  --disable-new-dtags   Disable new dynamic tags
  --enable-new-dtags    Enable new dynamic tags
  --eh-frame-hdr        Create .eh_frame_hdr section
  -z combreloc          Merge dynamic relocs into one section and sort
  -z defs               Report unresolved symbols in object files.
  -z execstack          Mark executable as requiring executable stack
  -z initfirst          Mark DSO to be initialized first at runtime
  -z interpose          Mark object to interpose all DSOs but executable
  -z loadfltr           Mark object requiring immediate process
  -z muldefs            Allow multiple definitions
  -z nocombreloc        Don't merge dynamic relocs into one section
  -z nocopyreloc        Don't create copy relocs
  -z nodefaultlib       Mark object not to use default search paths
  -z nodelete           Mark DSO non-deletable at runtime
  -z nodlopen           Mark DSO not available to dlopen
  -z nodump             Mark DSO not available to dldump
  -z noexecstack        Mark executable as not requiring executable stack
  -z norelro            Don't create RELRO program header
  -z now                Mark object non-lazy runtime binding
  -z origin             Mark object requiring immediate $ORIGIN processing
                          at runtime
  -z relro              Create RELRO program header
  -z KEYWORD            Ignored for Solaris compatibility
  --emit-stub-syms      Label linker stubs with a symbol.
  --no-tls-optimize     Don't try to optimize TLS accesses.
  --bss-plt             Force old-style BSS PLT.
  --sdata-got           Force GOT location just before .sdata.
elf32ppcsim: 
  -Bgroup               Selects group name lookup rules for DSO
  --disable-new-dtags   Disable new dynamic tags
  --enable-new-dtags    Enable new dynamic tags
  --eh-frame-hdr        Create .eh_frame_hdr section
  -z combreloc          Merge dynamic relocs into one section and sort
  -z defs               Report unresolved symbols in object files.
  -z execstack          Mark executable as requiring executable stack
  -z initfirst          Mark DSO to be initialized first at runtime
  -z interpose          Mark object to interpose all DSOs but executable
  -z loadfltr           Mark object requiring immediate process
  -z muldefs            Allow multiple definitions
  -z nocombreloc        Don't merge dynamic relocs into one section
  -z nocopyreloc        Don't create copy relocs
  -z nodefaultlib       Mark object not to use default search paths
  -z nodelete           Mark DSO non-deletable at runtime
  -z nodlopen           Mark DSO not available to dlopen
  -z nodump             Mark DSO not available to dldump
  -z noexecstack        Mark executable as not requiring executable stack
  -z norelro            Don't create RELRO program header
  -z now                Mark object non-lazy runtime binding
  -z origin             Mark object requiring immediate $ORIGIN processing
                          at runtime
  -z relro              Create RELRO program header
  -z KEYWORD            Ignored for Solaris compatibility
  --emit-stub-syms      Label linker stubs with a symbol.
  --no-tls-optimize     Don't try to optimize TLS accesses.
  --bss-plt             Force old-style BSS PLT.
  --sdata-got           Force GOT location just before .sdata.
elf64ppc: 
  -Bgroup               Selects group name lookup rules for DSO
  --disable-new-dtags   Disable new dynamic tags
  --enable-new-dtags    Enable new dynamic tags
  --eh-frame-hdr        Create .eh_frame_hdr section
  -z combreloc          Merge dynamic relocs into one section and sort
  -z defs               Report unresolved symbols in object files.
  -z execstack          Mark executable as requiring executable stack
  -z initfirst          Mark DSO to be initialized first at runtime
  -z interpose          Mark object to interpose all DSOs but executable
  -z loadfltr           Mark object requiring immediate process
  -z muldefs            Allow multiple definitions
  -z nocombreloc        Don't merge dynamic relocs into one section
  -z nocopyreloc        Don't create copy relocs
  -z nodefaultlib       Mark object not to use default search paths
  -z nodelete           Mark DSO non-deletable at runtime
  -z nodlopen           Mark DSO not available to dlopen
  -z nodump             Mark DSO not available to dldump
  -z noexecstack        Mark executable as not requiring executable stack
  -z norelro            Don't create RELRO program header
  -z now                Mark object non-lazy runtime binding
  -z origin             Mark object requiring immediate $ORIGIN processing
                          at runtime
  -z relro              Create RELRO program header
  -z KEYWORD            Ignored for Solaris compatibility
  --stub-group-size=N   Maximum size of a group of input sections that can be
                          handled by one stub section.  A negative value
                          locates all stubs before their branches (with a
                          group size of -N), while a positive value allows
                          two groups of input sections, one before, and one
                          after each stub section.  Values of +/-1 indicate
                          the linker should choose suitable defaults.
  --emit-stub-syms      Label linker stubs with a symbol.
  --dotsyms             For every version pattern "foo" in a version script,
                          add ".foo" so that function code symbols are
                          treated the same as function descriptor symbols.
                          Defaults to on.
  --no-dotsyms          Don't do anything special in version scripts.
  --no-tls-optimize     Don't try to optimize TLS accesses.
  --no-opd-optimize     Don't optimize the OPD section.
  --no-toc-optimize     Don't optimize the TOC section.
  --no-multi-toc        Disallow automatic multiple toc sections.
  --non-overlapping-opd Canonicalize .opd, so that there are no overlapping
                          .opd entries.

Report bugs to <URL:http://www.sourceware.org/bugzilla/>

Re: 2.6.23-rc1-mm2

From: Segher Boessenkool <hidden>
Date: 2007-08-06 21:25:44

quoted
quoted
Second issue as reported earilier allmodconfig fails to build on imac
g3.

  CC      arch/powerpc/kernel/lparmap.s
  AS      arch/powerpc/kernel/head_64.o
lparmap.c: Assembler messages:
lparmap.c:84: Error: file number 1 already allocated
make[1]: *** [arch/powerpc/kernel/head_64.o] Blad 1
make: *** [arch/powerpc/kernel] Blad 2
Please send me the full output of:

gcc --version    (or whatever your gcc is called)
ld --version
ld --help        (I know no better way to get the supported binutils
                   targets, and the default target)

and the lparmap.s file.  You might want to skip sending it
to the lists, it will be a bit big (and off-topic on most
of those lists, anyway).
Well ... its 66kB. Not that bad. Please find it attached.
Needed gcc and ld info below.
Thanks.

It seems like things go wrong when lparmap.s is generated with
(DWARF) debug info; could you try building it (manually) with -g0
added on the end of the compile line, and see if head_64.o compiles
okay for you then?  If so, I'll prepare a proper patch for it, I
have a similar one (also for lparmap!) in my queue already...


Segher

Re: 2.6.23-rc1-mm2

From: Mariusz Kozlowski <hidden>
Date: 2007-08-06 22:34:30

quoted
quoted
quoted
Second issue as reported earilier allmodconfig fails to build on imac
g3.

  CC      arch/powerpc/kernel/lparmap.s
  AS      arch/powerpc/kernel/head_64.o
lparmap.c: Assembler messages:
lparmap.c:84: Error: file number 1 already allocated
make[1]: *** [arch/powerpc/kernel/head_64.o] Blad 1
make: *** [arch/powerpc/kernel] Blad 2
Please send me the full output of:

gcc --version    (or whatever your gcc is called)
ld --version
ld --help        (I know no better way to get the supported binutils
                   targets, and the default target)

and the lparmap.s file.  You might want to skip sending it
to the lists, it will be a bit big (and off-topic on most
of those lists, anyway).
Well ... its 66kB. Not that bad. Please find it attached.
Needed gcc and ld info below.
Thanks.

It seems like things go wrong when lparmap.s is generated with
(DWARF) debug info; could you try building it (manually) with -g0
added on the end of the compile line, and see if head_64.o compiles
okay for you then?  If so, I'll prepare a proper patch for it, I
have a similar one (also for lparmap!) in my queue already...
Ok it worked. I had to add -g0 to Makefile under arch/powerpc/kernel because
-g0 was added before -g and didn't have any effect when adding to Makefile
in top dir. But yes - it compiles now.

Thanks,

	Mariusz

Re: 2.6.23-rc1-mm2

From: Segher Boessenkool <hidden>
Date: 2007-08-06 23:12:30

quoted
It seems like things go wrong when lparmap.s is generated with
(DWARF) debug info; could you try building it (manually) with -g0
added on the end of the compile line, and see if head_64.o compiles
okay for you then?  If so, I'll prepare a proper patch for it, I
have a similar one (also for lparmap!) in my queue already...
Ok it worked. I had to add -g0 to Makefile under arch/powerpc/kernel 
because
-g0 was added before -g and didn't have any effect when adding to 
Makefile
in top dir.
Yeah, that's why I said "build lparmap.s manually" :-)
But yes - it compiles now.
Great, I'll combine it with my other lparmap build patch then.
Thanks for the report and testing!


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help