Compile problems on alpha: 2.6.6, 2.6.7-rc2
I'm not quite sure what's causing this, but I get the following error message (make V=1):
ld -static -N -T arch/alpha/kernel/vmlinux.lds.sarch/alpha/kernel/head.o init/built-in.o --start-group usr/built-in.oarch/alpha/kernel/built-in.o arch/alpha/mm/built-in.o arch/alpha/math-emu/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o lib/lib.a arch/alpha/lib/lib.a lib/built-in.o arch/alpha/lib/built-in.o drivers/built-in.o sound/built-in.o net/built-in.o --end-group -o .tmp_vmlinux1
local symbol 0: discarded in section `.exit.text' from drivers/built-in.o
make then aborts at this step. At other times, I've gotten errors that read the same as the above line, for symbols "1" through "4", in order.
I'm going to guess there's a problem with one of the drivers I've got built-in to the kernel, but I haven't been able to figure much else out.. I tried using readelf, but didn't find the "0" symbol.
.config and drivers/built-in.o are at http://x-ray.rcs.purdue.edu/alpha-2.6/
gcc version is "gcc (GCC) 3.3.3 (Debian 20040422)" binutils version is "2.14.90.0.7 20031029 Debian GNU/Linux"
Pat
Signature · 2 lines
Purdue University ITAP/RCS --- http://www.itap.purdue.edu/rcs/ The Computer Refuge --- http://computer-refuge.org
Quoted 7 lines · Patrick Finnegan
I'm not quite sure what's causing this, but I get the following error message (make V=1):
ld -static -N -Tarch/alpha/kernel/vmlinux.lds.sarch/alpha/kernel/head.oinit/built-in.o--start-groupusr/built-in.oarch/alpha/kernel/built-in.oarch/alpha/mm/built-in.oarch/alpha/math-emu/built-in.okernel/built-in.omm/built-in.ofs/built-in.oipc/built-in.osecurity/built-in.ocrypto/built-in.o
Quoted 8 lines
lib/lib.aarch/alpha/lib/lib.alib/built-in.oarch/alpha/lib/built-in.odrivers/built-in.osound/built-in.onet/built-in.o--end-group -o .tmp_vmlinux1
local symbol 0: discarded in section `.exit.text' fromdrivers/built-in.omake then aborts at this step. At other times, I've gotten errors that read the same as the above line, for symbols "1" through "4", in order. I'm going to guess there's a problem with one of the drivers I've got built-in to the kernel, but I haven't been able to figure much else out..
Could you try to locate it with scripts/reference_discard.pl, and if that fail, post your .config (preferably compressed) so I can try to debug this on my alphas?
Thanks.
-- wli
Quoted 3 lines · William Lee Irwin III
Could you try to locate it with
scripts/reference_discard.pl, and if that fail, post your .config (preferably compressed) so I can try to debug this on my alphas?
This is known problem - missing __devexit_p() wrapper in serial PnP driver.
Ivan.
drivers/serial/8250_pnp.c +1 -1
@@ -437,7 +437,7 @@ static struct pnp_driver serial_pnp_driv .name = "serial", .id_table = pnp_dev_table, .probe = serial_pnp_probe, - .remove = serial_pnp_remove, + .remove = __devexit_p(serial_pnp_remove), };static int __init serial8250_pnp_init (void )
Quoted 3 lines · William Lee Irwin III
Quoted 3 lines
Could you try to locate it with
scripts/reference_discard.pl, and if that fail, post your .config (preferably compressed) so I can try to debug this on my alphas?
drivers/serial/8250_pnp.c static struct pnp_driver serial_pnp_driv · line 442
Quoted 13 lines · Ivan Kokshaysky
This is known problem - missing
__devexit_p()wrapper in serial PnP driver.
Ivan.drivers/serial/8250_pnp.c +1
-1@@ -437,7 +437,7 @@ static struct pnp_driver serial_pnp_driv .name = "serial", .id_table = pnp_dev_table, .probe = serial_pnp_probe, - .remove = serial_pnp_remove, + .remove = __devexit_p(serial_pnp_remove), };static int __init serial8250_pnp_init (void )
Thanks for handling this for me.
-- wli
Quoted 13 lines · Ivan Kokshaysky
Quoted 3 lines · William Lee Irwin III
Could you try to locate it with
scripts/reference_discard.pl, and if that fail, post your .config (preferably compressed) so I can try to debug this on my alphas?This is known problem - missing
__devexit_p()wrapper in serial PnP driver.Ivan.
drivers/serial/8250_pnp.c static struct pnp_driver serial_pnp_driv · line 443
Quoted 8 lines
drivers/serial/8250_pnp.c +1
-1@@ -437,7 +437,7 @@ static struct pnp_driver serial_pnp_driv .name = "serial", .id_table = pnp_dev_table, .probe = serial_pnp_probe, - .remove = serial_pnp_remove, + .remove = __devexit_p(serial_pnp_remove), };static int __init serial8250_pnp_init (void )
Nifty, that works perfectly. Thanks.
Pat
Signature · 2 lines
Purdue University ITAP/RCS --- http://www.itap.purdue.edu/rcs/ The Computer Refuge --- http://computer-refuge.org
Quoted 19 lines · William Lee Irwin III
Quoted 9 lines · Patrick Finnegan
I'm not quite sure what's causing this, but I get the following error message (make V=1):
ld -static -N -Tarch/alpha/kernel/vmlinux.lds.sarch/alpha/kernel/head.oinit/built-in.o--start-groupusr/built-in.oarch/alpha/kernel/built-in.oarch/alpha/mm/built-in.oarch/alpha/math-emu/built-in.okernel/built-in.omm/built-in.ofs/built-in.oipc/built-in.osecurity/built-in.ocrypto/built-in.olib/lib.aarch/alpha/lib/lib.alib/built-in.oQuoted 8 lines
arch/alpha/lib/built-in.odrivers/built-in.osound/built-in.onet/built-in.o--end-group -o .tmp_vmlinux1
local symbol 0: discarded in section `.exit.text' fromdrivers/built-in.omake then aborts at this step. At other times, I've gotten errors that read the same as the above line, for symbols "1" through "4", in order. I'm going to guess there's a problem with one of the drivers I've got built-in to the kernel, but I haven't been able to figure much else out..
Quoted 3 lines
Could you try to locate it with
scripts/reference_discard.pl, and if that fail, post your .config (preferably compressed) so I can try to debug this on my alphas?
Here:
Finding objects, 1285 objects, ignoring 386 module(s) Finding conglomerates, ignoring 61 conglomerate(s) Scanning objects
Error: ./drivers/serial/8250_pnp.o .data refers to 0000000000000020
REFQUAD .exit.text
Done
So, is this an ISAPNP thing? My .config is attached (compressed). I turned off ISAPNP and am running make on it again right now.
Pat
Signature · 2 lines
Purdue University ITAP/RCS --- http://www.itap.purdue.edu/rcs/ The Computer Refuge --- http://computer-refuge.org