2004-06-15 16:00:27

by Patrick Finnegan

[permalink] [raw]
Subject: 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.s
arch/alpha/kernel/head.o init/built-in.o --start-group usr/built-in.o
arch/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
--
Purdue University ITAP/RCS --- http://www.itap.purdue.edu/rcs/
The Computer Refuge --- http://computer-refuge.org


2004-06-15 16:07:20

by William Lee Irwin III

[permalink] [raw]
Subject: Re: Compile problems on alpha: 2.6.6, 2.6.7-rc2

On Tue, Jun 15, 2004 at 11:00:25AM -0500, Patrick Finnegan wrote:
> 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.s
> arch/alpha/kernel/head.o init/built-in.o --start-group usr/built-in.o
> arch/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..

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

2004-06-15 16:16:55

by Ivan Kokshaysky

[permalink] [raw]
Subject: Re: Compile problems on alpha: 2.6.6, 2.6.7-rc2

On Tue, Jun 15, 2004 at 09:07:09AM -0700, William Lee Irwin III wrote:
> 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.

--- 2.6/drivers/serial/8250_pnp.c Mon May 10 06:31:59 2004
+++ linux/drivers/serial/8250_pnp.c Mon May 10 22:47:45 2004
@@ -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)

2004-06-15 16:19:46

by Patrick Finnegan

[permalink] [raw]
Subject: Re: Compile problems on alpha: 2.6.6, 2.6.7-rc2

On Tuesday 15 June 2004 11:07, William Lee Irwin III wrote:
> On Tue, Jun 15, 2004 at 11:00:25AM -0500, Patrick Finnegan wrote:
> > 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.s
> > arch/alpha/kernel/head.o init/built-in.o --start-group
> > usr/built-in.o arch/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..
>
> 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
--
Purdue University ITAP/RCS --- http://www.itap.purdue.edu/rcs/
The Computer Refuge --- http://computer-refuge.org


Attachments:
(No filename) (1.77 kB)
alpha-2.6.6-config.gz (5.71 kB)
Download all attachments

2004-06-15 16:23:09

by William Lee Irwin III

[permalink] [raw]
Subject: Re: Compile problems on alpha: 2.6.6, 2.6.7-rc2

On Tue, Jun 15, 2004 at 09:07:09AM -0700, William Lee Irwin III wrote:
>> 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?

On Tue, Jun 15, 2004 at 08:16:48PM +0400, Ivan Kokshaysky wrote:
> This is known problem - missing __devexit_p() wrapper in serial PnP
> driver.
> Ivan.
> --- 2.6/drivers/serial/8250_pnp.c Mon May 10 06:31:59 2004
> +++ linux/drivers/serial/8250_pnp.c Mon May 10 22:47:45 2004
> @@ -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

2004-06-15 16:26:14

by Patrick Finnegan

[permalink] [raw]
Subject: Re: Compile problems on alpha: 2.6.6, 2.6.7-rc2

On Tuesday 15 June 2004 11:16, Ivan Kokshaysky wrote:
> On Tue, Jun 15, 2004 at 09:07:09AM -0700, William Lee Irwin III wrote:
> > 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.
>
> --- 2.6/drivers/serial/8250_pnp.c Mon May 10 06:31:59 2004
> +++ linux/drivers/serial/8250_pnp.c Mon May 10 22:47:45 2004
> @@ -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
--
Purdue University ITAP/RCS --- http://www.itap.purdue.edu/rcs/
The Computer Refuge --- http://computer-refuge.org