linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [linux 2.6.3] [gcc 3.3.3] compile errors
@ 2004-02-22 20:31 mjl
  2004-02-23 15:42 ` Randy.Dunlap
  0 siblings, 1 reply; 7+ messages in thread
From: mjl @ 2004-02-22 20:31 UTC (permalink / raw)
  To: linux-kernel

hello please cc me since I'm not a member
all my builds fails with this error

In file included from ../include/swab.h:20,
                 from ../include/misc.h:12,
                 from io.c:21:
/usr/include/linux/byteorder/swab.h:133: error: syntax error before "__u16"
/usr/include/linux/byteorder/swab.h:146: error: syntax error before "__u32"
make[1]: *** [io.o] Error 1
make[1]: Leaving directory `/usr/src/sorcery/reiserfsprogs-3.6.13/lib'
make: *** [all-recursive] Error 1


I looked into the source and  the line is


static __inline__ __attribute_const__ __u16 __fswab16(__u16 x)
{


which don't looks bad ......
thanks

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux 2.6.3] [gcc 3.3.3] compile errors
  2004-02-22 20:31 [linux 2.6.3] [gcc 3.3.3] compile errors mjl
@ 2004-02-23 15:42 ` Randy.Dunlap
  2004-02-23 16:31   ` MALET JL
  0 siblings, 1 reply; 7+ messages in thread
From: Randy.Dunlap @ 2004-02-23 15:42 UTC (permalink / raw)
  To: mjl; +Cc: linux-kernel

On Sun, 22 Feb 2004 21:31:47 +0100 mjl <malet.jean-luc@laposte.net> wrote:

| hello please cc me since I'm not a member
| all my builds fails with this error
| 
| In file included from ../include/swab.h:20,
|                  from ../include/misc.h:12,
|                  from io.c:21:
| /usr/include/linux/byteorder/swab.h:133: error: syntax error before "__u16"
| /usr/include/linux/byteorder/swab.h:146: error: syntax error before "__u32"

You are using userspace headers for building the kernel.
Maybe you have a symbolic link from linux/include/asm to the
userspace headers.  If so, Don't Do That.
In any case, don't use userspace headers to build the kernel.


| make[1]: *** [io.o] Error 1
| make[1]: Leaving directory `/usr/src/sorcery/reiserfsprogs-3.6.13/lib'
| make: *** [all-recursive] Error 1
| 
| 
| I looked into the source and  the line is
| 
| 
| static __inline__ __attribute_const__ __u16 __fswab16(__u16 x)
| {
| 
| 
| which don't looks bad ......



--
~Randy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux 2.6.3] [gcc 3.3.3] compile errors
  2004-02-23 15:42 ` Randy.Dunlap
@ 2004-02-23 16:31   ` MALET JL
  2004-02-23 16:58     ` Chris Lingard
  2004-02-23 20:52     ` [linux 2.6.3] [gcc 3.3.3] compile errors Martin Schlemmer
  0 siblings, 2 replies; 7+ messages in thread
From: MALET JL @ 2004-02-23 16:31 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]

Randy.Dunlap a écrit :

>On Sun, 22 Feb 2004 21:31:47 +0100 mjl <malet.jean-luc@laposte.net> wrote:
>
>| hello please cc me since I'm not a member
>| all my builds fails with this error
>| 
>| In file included from ../include/swab.h:20,
>|                  from ../include/misc.h:12,
>|                  from io.c:21:
>| /usr/include/linux/byteorder/swab.h:133: error: syntax error before "__u16"
>| /usr/include/linux/byteorder/swab.h:146: error: syntax error before "__u32"
>
>You are using userspace headers for building the kernel.
>Maybe you have a symbolic link from linux/include/asm to the
>userspace headers.  If so, Don't Do That.
>In any case, don't use userspace headers to build the kernel.
>  
>
the problem is that this is a part of compile log from a userspace 
program....... I builded the kernel right but can't compile some 
userspace programs (such as Mplayer, linux-utils.....)
the configuration I use :
copy from /usr/src/linux/include/asm to /usr/include/asm
copy from /usr/src/linux/include/asm-generic to /usr/include/asm-generic
copy from /usr/src/linux/include/linux to /usr/include/linux

is this wrong ? I've done this all the time (since 2.4.2 kernel) without 
problem..... if i'm wrong please correct my behaviour

>
>| make[1]: *** [io.o] Error 1
>| make[1]: Leaving directory `/usr/src/sorcery/reiserfsprogs-3.6.13/lib'
>| make: *** [all-recursive] Error 1
>| 
>| 
>| I looked into the source and  the line is
>| 
>| 
>| static __inline__ __attribute_const__ __u16 __fswab16(__u16 x)
>| {
>| 
>| 
>| which don't looks bad ......
>
>
>
>--
>~Randy
>  
>


[-- Attachment #2: Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux 2.6.3] [gcc 3.3.3] compile errors
  2004-02-23 16:31   ` MALET JL
@ 2004-02-23 16:58     ` Chris Lingard
  2004-02-24  8:42       ` MALET JL
  2004-02-23 20:52     ` [linux 2.6.3] [gcc 3.3.3] compile errors Martin Schlemmer
  1 sibling, 1 reply; 7+ messages in thread
From: Chris Lingard @ 2004-02-23 16:58 UTC (permalink / raw)
  To: MALET JL; +Cc: linux-kernel

On Monday 23 February 2004 4:31 pm, MALET JL wrote:

> copy from /usr/src/linux/include/asm to /usr/include/asm
> copy from /usr/src/linux/include/asm-generic to /usr/include/asm-generic
> copy from /usr/src/linux/include/linux to /usr/include/linux
>
> is this wrong ? I've done this all the time (since 2.4.2 kernel) without
> problem..... if i'm wrong please correct my behaviour

You should use the kernel headers to build glibc; and sanitised headers
such as RedHat's or http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
to build the rest of the system.  Suggest you follow www.linuxfromscratch.org 
for further details.

Chris

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux 2.6.3] [gcc 3.3.3] compile errors
  2004-02-23 16:31   ` MALET JL
  2004-02-23 16:58     ` Chris Lingard
@ 2004-02-23 20:52     ` Martin Schlemmer
  1 sibling, 0 replies; 7+ messages in thread
From: Martin Schlemmer @ 2004-02-23 20:52 UTC (permalink / raw)
  To: MALET JL; +Cc: Randy.Dunlap, Linux Kernel Mailing Lists

[-- Attachment #1: Type: text/plain, Size: 1934 bytes --]

On Mon, 2004-02-23 at 18:31, MALET JL wrote:
> Randy.Dunlap a écrit :
> 
> >On Sun, 22 Feb 2004 21:31:47 +0100 mjl <malet.jean-luc@laposte.net> wrote:
> >
> >| hello please cc me since I'm not a member
> >| all my builds fails with this error
> >| 
> >| In file included from ../include/swab.h:20,
> >|                  from ../include/misc.h:12,
> >|                  from io.c:21:
> >| /usr/include/linux/byteorder/swab.h:133: error: syntax error before "__u16"
> >| /usr/include/linux/byteorder/swab.h:146: error: syntax error before "__u32"
> >
> >You are using userspace headers for building the kernel.
> >Maybe you have a symbolic link from linux/include/asm to the
> >userspace headers.  If so, Don't Do That.
> >In any case, don't use userspace headers to build the kernel.
> >  
> >
> the problem is that this is a part of compile log from a userspace 
> program....... I builded the kernel right but can't compile some 
> userspace programs (such as Mplayer, linux-utils.....)
> the configuration I use :
> copy from /usr/src/linux/include/asm to /usr/include/asm
> copy from /usr/src/linux/include/asm-generic to /usr/include/asm-generic
> copy from /usr/src/linux/include/linux to /usr/include/linux
> 
> is this wrong ? I've done this all the time (since 2.4.2 kernel) without 
> problem..... if i'm wrong please correct my behaviour
> 

Just edit offending files and take out the '__attribute_const__'s - I am
guessing you tried to compile cdrtools ... =)

> >
> >| make[1]: *** [io.o] Error 1
> >| make[1]: Leaving directory `/usr/src/sorcery/reiserfsprogs-3.6.13/lib'
> >| make: *** [all-recursive] Error 1
> >| 
> >| 
> >| I looked into the source and  the line is
> >| 
> >| 
> >| static __inline__ __attribute_const__ __u16 __fswab16(__u16 x)
> >| {
> >| 
> >| 
> >| which don't looks bad ......
> >
> >
> >
> >--
> >~Randy
> >  
> >
-- 
Martin Schlemmer

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux 2.6.3] [gcc 3.3.3] compile errors
  2004-02-23 16:58     ` Chris Lingard
@ 2004-02-24  8:42       ` MALET JL
  2004-02-24 10:46         ` [linux 2.6.3] [gcc 3.3.3] compile errors. Now OT Chris Lingard
  0 siblings, 1 reply; 7+ messages in thread
From: MALET JL @ 2004-02-24  8:42 UTC (permalink / raw)
  To: Chris Lingard; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 888 bytes --]

Chris Lingard a écrit :

>On Monday 23 February 2004 4:31 pm, MALET JL wrote:
>
>  
>
>>copy from /usr/src/linux/include/asm to /usr/include/asm
>>copy from /usr/src/linux/include/asm-generic to /usr/include/asm-generic
>>copy from /usr/src/linux/include/linux to /usr/include/linux
>>
>>is this wrong ? I've done this all the time (since 2.4.2 kernel) without
>>problem..... if i'm wrong please correct my behaviour
>>    
>>
>
>You should use the kernel headers to build glibc; and sanitised headers
>such as RedHat's or http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
>to build the rest of the system.  Suggest you follow www.linuxfromscratch.org 
>for further details.
>
>Chris
>  
>
O_O! question what is the purpose of having two set of headers? do you 
think this is good work to provide a unsable set of headers with a 
software? why not include the RedHat's one then......

[-- Attachment #2: Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux 2.6.3] [gcc 3.3.3] compile errors. Now OT
  2004-02-24  8:42       ` MALET JL
@ 2004-02-24 10:46         ` Chris Lingard
  0 siblings, 0 replies; 7+ messages in thread
From: Chris Lingard @ 2004-02-24 10:46 UTC (permalink / raw)
  To: MALET JL; +Cc: linux-kernel

On Tuesday 24 February 2004 8:42 am, MALET JL wrote:

> O_O! question what is the purpose of having two set of headers? do you
> think this is good work to provide a unsable set of headers with a
> software? why not include the RedHat's one then......

I think that this is off topic for this list; so I will email you direct, 
quite soon, with some reasons and links.

Nothing wrong with using RedHat, nice distro; but your question was about
building with 2.6.x headers.  The functionality of 2.6.x is needed by glibc; 
but not in user space.  How that is achieved is quite difficult.

Chris

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-02-24 10:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-22 20:31 [linux 2.6.3] [gcc 3.3.3] compile errors mjl
2004-02-23 15:42 ` Randy.Dunlap
2004-02-23 16:31   ` MALET JL
2004-02-23 16:58     ` Chris Lingard
2004-02-24  8:42       ` MALET JL
2004-02-24 10:46         ` [linux 2.6.3] [gcc 3.3.3] compile errors. Now OT Chris Lingard
2004-02-23 20:52     ` [linux 2.6.3] [gcc 3.3.3] compile errors Martin Schlemmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).