Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > I know now what makes the difference: setting CC=\"$CC\" in > XENO_KBUILD_CMD. Xenomai does this and seems to override the "-m32" > extension of the kernel build system, RTnet does not. Of course ! stupid me. In makefiles, the variables assignment passed on command line take

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > I know now what makes the difference: setting CC=\"$CC\" in > XENO_KBUILD_CMD. Xenomai does this and seems to override the "-m32" > extension of the kernel build system, RTnet does not. Of course ! stupid me. In makefiles, the variables assignment passed on command line take

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-19 Thread Jan Kiszka
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > >>Jan Kiszka wrote: >> > They are for both. You can compile some helloworld64 by calling gcc >> > without arguments or as easily a helloworld32 by running "gcc -m32" - >> > all on the same box withouth additional cross-tool stuff. >> >>Ok, the -m32

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-19 Thread Jan Kiszka
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > >>Jan Kiszka wrote: >> > They are for both. You can compile some helloworld64 by calling gcc >> > without arguments or as easily a helloworld32 by running "gcc -m32" - >> > all on the same box withouth additional cross-tool stuff. >> >>Ok, the -m32

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > They are for both. You can compile some helloworld64 by calling gcc > > without arguments or as easily a helloworld32 by running "gcc -m32" - > > all on the same box withouth additional cross-tool stuff. > > Ok, the -m32 fix to configure.in is

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > They are for both. You can compile some helloworld64 by calling gcc > without arguments or as easily a helloworld32 by running "gcc -m32" - > all on the same box withouth additional cross-tool stuff. Ok, the -m32 fix to configure.in is what I can do for now, it is in the rep

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > Gilles Chanteperdrix wrote: > > > Jan Kiszka wrote: > > > > I just analysed this further: the problem disappears when I manually > > > > remove any "-I" from the makefiles. Seems to > be > > > > the well-known user space include issue aga

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > > Jan Kiszka wrote: > > > I just analysed this further: the problem disappears when I manually > > > remove any "-I" from the makefiles. Seems to be > > > the well-known user space include issue again... ;) > > > > I tried to compile ever

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > I just analysed this further: the problem disappears when I manually > > remove any "-I" from the makefiles. Seems to be > > the well-known user space include issue again... ;) > > I tried to compile every kernel arch/i386 has a patch for with

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > I just analysed this further: the problem disappears when I manually > remove any "-I" from the makefiles. Seems to be > the well-known user space include issue again... ;) I tried to compile every kernel arch/i386 has a patch for with gcc 2.95, 3.3 and 3.4, and I saw no iss

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Heikki Lindholm wrote: > Gilles Chanteperdrix kirjoitti: > > Philippe Gerum wrote: > > > Probably grabbing more stuff from the kernel cflags into > > XENO_ARCH_FLAGS (e.g. > > > -m[0-9]* to start with). Gilles, would this be ok? > > > > Probably, but last time I checked that, the ppc-co

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Philippe Gerum wrote: > Jan Kiszka wrote: > >> Philippe Gerum wrote: >> >>> Jan Kiszka wrote: >>> >>> Philippe Gerum wrote: > Heikki Lindholm wrote: > > > >> Jan Kiszka kirjoitti: >> >> >> >>> Heikki Lindholm wrote: >>> >>> >>> >>>

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > They are for both. You can compile some helloworld64 by calling gcc > > without arguments or as easily a helloworld32 by running "gcc -m32" - > > all on the same box withouth additional cross-tool stuff. > > Ok, the -m32 fix to configure.in is

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > I just analysed this further: the problem disappears when I manually > > remove any "-I" from the makefiles. Seems to be > > the well-known user space include issue again... ;) > > I tried to compile every kernel arch/i386 has a patch for with

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > I just analysed this further: the problem disappears when I manually > remove any "-I" from the makefiles. Seems to be > the well-known user space include issue again... ;) I tried to compile every kernel arch/i386 has a patch for with gcc 2.95, 3.3 and 3.4, and I saw no iss

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Heikki Lindholm wrote: > Gilles Chanteperdrix kirjoitti: > > Philippe Gerum wrote: > > > Probably grabbing more stuff from the kernel cflags into > > XENO_ARCH_FLAGS (e.g. > > > -m[0-9]* to start with). Gilles, would this be ok? > > > > Probably, but last time I checked that, the ppc-co

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > > #! /bin/sh > > > exec `expr "$0" : 'i686-linux-\(.*\)'` -m32r ${1+"$@"} > > > > > > It should work with most build systems... > > > > > > > Yes, this seems to work (and fail) just like the "CC=" approach. > > Are you sure your distrib

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > Jan Kiszka wrote: > > I just analysed this further: the problem disappears when I manually > > remove any "-I" from the makefiles. Seems to be > > the well-known user space include issue again... ;) > > This is wrong, the include files that s

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > > #! /bin/sh > > exec `expr "$0" : 'i686-linux-\(.*\)'` -m32r ${1+"$@"} > > > > It should work with most build systems... > > > > Yes, this seems to work (and fail) just like the "CC=" approach. Are you sure your distribution does not provide a cross-compiler ? I work

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Jan Kiszka wrote: > I just analysed this further: the problem disappears when I manually > remove any "-I" from the makefiles. Seems to be > the well-known user space include issue again... ;) This is wrong, the include files that should be used are those from the Adeos/I-p

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Heikki Lindholm wrote: > > Jan Kiszka kirjoitti: > > > Heikki Lindholm wrote: > > > > > >>Jan Kiszka kirjoitti: > > >> > > >> > > >>>Hi, > > >>> > > >>>I'm dumb x86 user who unfortunately just seem to have tumbled in the > > >>>cross-compilation trap: I'm tr

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Jan Kiszka wrote: > ... > make[3]: Entering directory `/tmp/xenomai/build/skins/native/lib' > if /bin/sh ../../../libtool --mode=compile --tag=CC gcc -m32 > -DHAVE_CONFIG_H -I. -I/tmp/xenomai/skins/native/lib -I../../../include > -O2 -I/tmp/linux-2.6.13.1/include -D_GNU_SOURCE -D_REENTRANT -D__XENO

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Heikki Lindholm
Gilles Chanteperdrix kirjoitti: Philippe Gerum wrote: > Probably grabbing more stuff from the kernel cflags into XENO_ARCH_FLAGS (e.g. > -m[0-9]* to start with). Gilles, would this be ok? Probably, but last time I checked that, the ppc-compiled version of the dummy program used at configurat

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Philippe Gerum wrote: > Jan Kiszka wrote: > >> Philippe Gerum wrote: >> >>> Jan Kiszka wrote: >>> >>> Philippe Gerum wrote: > Heikki Lindholm wrote: > > > >> Jan Kiszka kirjoitti: >> >> >> >>> Heikki Lindholm wrote: >>> >>> >>> >>>

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > > #! /bin/sh > > > exec `expr "$0" : 'i686-linux-\(.*\)'` -m32r ${1+"$@"} > > > > > > It should work with most build systems... > > > > > > > Yes, this seems to work (and fail) just like the "CC=" approach. > > Are you sure your distrib

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Philippe Gerum wrote: > Probably grabbing more stuff from the kernel cflags into XENO_ARCH_FLAGS > (e.g. > -m[0-9]* to start with). Gilles, would this be ok? Probably, but last time I checked that, the ppc-compiled version of the dummy program used at configuration time to extract the arch fl

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Heikki Lindholm wrote: > Jan Kiszka kirjoitti: > > Heikki Lindholm wrote: > > > >>Jan Kiszka kirjoitti: > >> > >> > >>>Hi, > >>> > >>>I'm dumb x86 user who unfortunately just seem to have tumbled in the > >>>cross-compilation trap: I'm trying to generate i586 code on a fancy new > >>>an

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > Jan Kiszka wrote: > > I just analysed this further: the problem disappears when I manually > > remove any "-I" from the makefiles. Seems to be > > the well-known user space include issue again... ;) > > This is wrong, the include files that s

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > > #! /bin/sh > > exec `expr "$0" : 'i686-linux-\(.*\)'` -m32r ${1+"$@"} > > > > It should work with most build systems... > > > > Yes, this seems to work (and fail) just like the "CC=" approach. Are you sure your distribution does not provide a cross-compiler ? I work

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Jan Kiszka wrote: > I just analysed this further: the problem disappears when I manually > remove any "-I" from the makefiles. Seems to be > the well-known user space include issue again... ;) This is wrong, the include files that should be used are those from the Adeos/I-p

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Heikki Lindholm wrote: > > Jan Kiszka kirjoitti: > > > Heikki Lindholm wrote: > > > > > >>Jan Kiszka kirjoitti: > > >> > > >> > > >>>Hi, > > >>> > > >>>I'm dumb x86 user who unfortunately just seem to have tumbled in the > > >>>cross-compilation trap: I'm tr

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-18 Thread Jan Kiszka
Jan Kiszka wrote: > ... > make[3]: Entering directory `/tmp/xenomai/build/skins/native/lib' > if /bin/sh ../../../libtool --mode=compile --tag=CC gcc -m32 > -DHAVE_CONFIG_H -I. -I/tmp/xenomai/skins/native/lib -I../../../include > -O2 -I/tmp/linux-2.6.13.1/include -D_GNU_SOURCE -D_REENTRANT -D__XENO

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Jan Kiszka
Philippe Gerum wrote: > Philippe Gerum wrote: > >> Jan Kiszka wrote: >> >>> Philippe Gerum wrote: >>> Heikki Lindholm wrote: > Jan Kiszka kirjoitti: > > >> Heikki Lindholm wrote: >> >> >>> Jan Kiszka kirjoitti: >>> >>> >>> Hi, >>>

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Heikki Lindholm wrote: Jan Kiszka kirjoitti: Heikki Lindholm wrote: Jan Kiszka kirjoitti: Hi, I'm dumb x86 user who unfortunately just seem to have tumbled in the cross-compilation trap: I'm

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Heikki Lindholm
Gilles Chanteperdrix kirjoitti: Philippe Gerum wrote: > Probably grabbing more stuff from the kernel cflags into XENO_ARCH_FLAGS (e.g. > -m[0-9]* to start with). Gilles, would this be ok? Probably, but last time I checked that, the ppc-compiled version of the dummy program used at configurat

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Jan Kiszka
Philippe Gerum wrote: > Jan Kiszka wrote: > >> Philippe Gerum wrote: >> >>> Heikki Lindholm wrote: >>> >>> Jan Kiszka kirjoitti: > Heikki Lindholm wrote: > > >> Jan Kiszka kirjoitti: >> >> >> >>> Hi, >>> >>> I'm dumb x86 user who unfortunately

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Philippe Gerum
Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Heikki Lindholm wrote: Jan Kiszka kirjoitti: Heikki Lindholm wrote: Jan Kiszka kirjoitti: Hi, I'm dumb x86 user who unfortunately just seem to have tumbled in the cross-compilation trap: I'm trying to generate i586 co

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Heikki Lindholm wrote: Jan Kiszka kirjoitti: Heikki Lindholm wrote: Jan Kiszka kirjoitti: Hi, I'm dumb x86 user who unfortunately just seem to have tumbled in the cross-compilation trap: I'm trying to generate i586 code on a fancy new and fa

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Jan Kiszka
Philippe Gerum wrote: > Heikki Lindholm wrote: > >> Jan Kiszka kirjoitti: >> >>> Heikki Lindholm wrote: >>> Jan Kiszka kirjoitti: > Hi, > > I'm dumb x86 user who unfortunately just seem to have tumbled in the > cross-compilation trap: I'm trying to generate i586 code

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Philippe Gerum
Heikki Lindholm wrote: Jan Kiszka kirjoitti: Heikki Lindholm wrote: Jan Kiszka kirjoitti: Hi, I'm dumb x86 user who unfortunately just seem to have tumbled in the cross-compilation trap: I'm trying to generate i586 code on a fancy new and fast x86_64 compilation host. I got the kernel com

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Heikki Lindholm
Jan Kiszka kirjoitti: Heikki Lindholm wrote: Jan Kiszka kirjoitti: Hi, I'm dumb x86 user who unfortunately just seem to have tumbled in the cross-compilation trap: I'm trying to generate i586 code on a fancy new and fast x86_64 compilation host. I got the kernel compiled with ARCH=i386, usi

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Jan Kiszka
Heikki Lindholm wrote: > Jan Kiszka kirjoitti: > >> Hi, >> >> I'm dumb x86 user who unfortunately just seem to have tumbled in the >> cross-compilation trap: I'm trying to generate i586 code on a fancy new >> and fast x86_64 compilation host. I got the kernel compiled with >> ARCH=i386, using only

Re: [Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Heikki Lindholm
Jan Kiszka kirjoitti: Hi, I'm dumb x86 user who unfortunately just seem to have tumbled in the cross-compilation trap: I'm trying to generate i586 code on a fancy new and fast x86_64 compilation host. I got the kernel compiled with ARCH=i386, using only the pre-installed compiler (i.e. no dedica

[Xenomai-help] compiling xenomai on x86_64

2005-10-17 Thread Jan Kiszka
Hi, I'm dumb x86 user who unfortunately just seem to have tumbled in the cross-compilation trap: I'm trying to generate i586 code on a fancy new and fast x86_64 compilation host. I got the kernel compiled with ARCH=i386, using only the pre-installed compiler (i.e. no dedicated cross tool chain), b