2008-07-29 21:01:20

by Or Gerlitz

[permalink] [raw]
Subject: error building linus tree (2.6.27-rc1)

I get into this

CC arch/x86/kernel/irq_64.o
CC arch/x86/kernel/time_64.o
CC arch/x86/kernel/ioport.o
CC arch/x86/kernel/ldt.o
arch/x86/kernel/ldt.c: In function `alloc_ldt':
arch/x86/kernel/ldt.c:67: error: invalid lvalue in unary `&'
make[1]: *** [arch/x86/kernel/ldt.o] Error 1
make: *** [arch/x86/kernel] Error 2

with the attached .config, for a clone of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

is there anything I do wrong?

Or.


Attachments:
config-2.6.27-rc1.gz (16.39 kB)

2008-08-01 13:34:30

by Adrian Bunk

[permalink] [raw]
Subject: Re: error building linus tree (2.6.27-rc1)

On Wed, Jul 30, 2008 at 12:00:56AM +0300, Or Gerlitz wrote:
> I get into this
>
> CC arch/x86/kernel/irq_64.o
> CC arch/x86/kernel/time_64.o
> CC arch/x86/kernel/ioport.o
> CC arch/x86/kernel/ldt.o
> arch/x86/kernel/ldt.c: In function `alloc_ldt':
> arch/x86/kernel/ldt.c:67: error: invalid lvalue in unary `&'
> make[1]: *** [arch/x86/kernel/ldt.o] Error 1
> make: *** [arch/x86/kernel] Error 2
>
> with the attached .config, for a clone of
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
>
> is there anything I do wrong?

Please send the output of
gcc --version
as --version

> Or.

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

2008-08-01 20:14:31

by Or Gerlitz

[permalink] [raw]
Subject: Re: error building linus tree (2.6.27-rc1)

On Wed, 30 Jul 2008, Or Gerlitz wrote:

> I get into this
> arch/x86/kernel/ldt.c: In function `alloc_ldt':
> arch/x86/kernel/ldt.c:67: error: invalid lvalue in unary `&'

Here's the gcc and as versions

$ gcc --version
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
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.

$ as --version

GNU assembler 2.15.92.0.2 20040927
Copyright 2002 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.
This assembler was configured for a target of `x86_64-redhat-linux'.

Or.

2008-08-01 21:22:29

by Adrian Bunk

[permalink] [raw]
Subject: Re: error building linus tree (2.6.27-rc1)

On Fri, Aug 01, 2008 at 11:14:10PM +0300, Or Gerlitz wrote:
> On Wed, 30 Jul 2008, Or Gerlitz wrote:
>
> > I get into this
> > arch/x86/kernel/ldt.c: In function `alloc_ldt':
> > arch/x86/kernel/ldt.c:67: error: invalid lvalue in unary `&'
>
> Here's the gcc and as versions
>
> $ gcc --version
> gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
> 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.
>...

Ah, thanks.

It's a known problem that has just been fixed in Linus' tree.

> Or.

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed