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 and fast x86_64 compilation host. I

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

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 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 trying to generate i586 code on a fancy

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 -Ipath-to-kernel-includes 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

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 worked once on 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 -Ipath-to-kernel-includes from the makefiles. Seems to be the well-known user space include issue again... ;) This is wrong, the include

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 distribution does not provide a

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-compiled version

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 -Ipath-to-kernel-includes 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

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 -Ipath-to-kernel-includes from the makefiles. Seems to be the well-known user space include issue again... ;) I tried to compile every kernel arch/i386 has a

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 -Ipath-to-kernel-includes from the makefiles. Seems to be the well-known user space include issue again... ;) I tried to

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 -Ipath-to-kernel-includes from the makefiles. Seems to be the well-known user space include issue

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

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 the

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,

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 just seem to have tumbled in the cross-compilation trap: I'm trying to generate i586

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