From: Jan Kiszka <kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] compiling xenomai on x86_64
Date: Mon, 17 Oct 2005 22:29:33 +0200 [thread overview]
Message-ID: <435409AD.6060705@domain.hid> (raw)
In-Reply-To: <435406E0.8020405@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2368 bytes --]
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 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), but I failed to compile xenomai against that
>>>>>>> kernel
>>>>>>> in the following. Which magic switch do I have to apply and where?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> As dumb a guess: -m32 compiler switch?
>>>>>>
>>>>>
>>>>>
>>>>> Yes, I know, that would help. But where to feed this argument into the
>>>>> build system?
>>>>
>>>>
>>>>
>>>>
>>>> I would try makefile (and perhaps config/kconfig/Makefile*) and
>>>> command line 'CC="gcc -m32" CXX="gcc -m32" make menuconfig/install' to
>>>> be sure.
>>>>
>>>
>>> You should be able to do that just by reconfiguring:
>>>
>>> cd build && make reconfig CC="gcc -m32"
>>>
>>
>>
>> ... would have been too easy: :-/
>>
>> [after "make menuconfig ARCH=i386"]
>> gcchost2:/tmp/xenomai/build # make reconfig CC="gcc -m32"
>> make[1]: Entering directory `/tmp/xenomai/build'
>> configure: error: unrecognized option: -m32
>> Try `/tmp/xenomai/configure --help' for more information.
>> make[1]: *** [config.status] Error 1
>> make[1]: Leaving directory `/tmp/xenomai/build'
>> make: *** [reconfig] Error 2
>>
>
> make reconfig CC="\"gcc -m32\""
>
Quoting - I like it...
Ok, one step further. Now I get on "make":
[...]
make[3]: Entering directory `/tmp/xenomai/build/arch/i386/hal'
make: invalid option -- 3
make: invalid option -- 2
Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility.
[...]
This program built for x86_64-unknown-linux-gnu
Report bugs to <bug-make@domain.hid>
make[3]: *** [xeno_hal.ko] Error 2
make[3]: Leaving directory `/tmp/xenomai/build/arch/i386/hal'
> (Ok, ok, we'll get rid of autoconf for kernel modules in 2.1...)
>
Might solve it. But meanwhile, isn't there a chance to do it as the
kernel already does within autoconf/automake?
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
next prev parent reply other threads:[~2005-10-17 20:29 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-17 18:44 [Xenomai-help] compiling xenomai on x86_64 Jan Kiszka
2005-10-17 18:57 ` Heikki Lindholm
2005-10-17 19:16 ` Jan Kiszka
2005-10-17 19:59 ` Heikki Lindholm
2005-10-17 20:04 ` Philippe Gerum
2005-10-17 20:10 ` Jan Kiszka
2005-10-17 20:17 ` Philippe Gerum
2005-10-17 20:26 ` Philippe Gerum
2005-10-17 21:37 ` Jan Kiszka
2005-10-18 8:07 ` Jan Kiszka
2005-10-18 8:14 ` Gilles Chanteperdrix
2005-10-18 8:29 ` Jan Kiszka
2005-10-18 17:49 ` Gilles Chanteperdrix
2005-10-18 18:29 ` Jan Kiszka
2005-10-18 19:20 ` Gilles Chanteperdrix
2005-10-18 19:24 ` Jan Kiszka
2005-10-18 19:34 ` Gilles Chanteperdrix
2005-10-18 19:43 ` Jan Kiszka
2005-10-19 8:37 ` Jan Kiszka
2005-10-19 17:15 ` [Xenomai-help] newbie question Ignacio García Pérez
2005-10-19 17:34 ` Jan Kiszka
2005-10-19 17:44 ` Philippe Gerum
2005-10-19 18:16 ` Gilles Chanteperdrix
2005-10-19 18:31 ` Jan Kiszka
2005-10-19 18:20 ` [Xenomai-help] compiling xenomai on x86_64 Gilles Chanteperdrix
2005-10-17 20:29 ` Jan Kiszka [this message]
2005-10-17 20:38 ` Philippe Gerum
2005-10-17 23:32 ` Gilles Chanteperdrix
2005-10-18 5:32 ` Heikki Lindholm
2005-10-18 17:33 ` Gilles Chanteperdrix
2005-10-18 11:16 ` Jan Kiszka
2005-10-17 23:32 ` Gilles Chanteperdrix
2005-10-18 8:09 ` Jan Kiszka
2005-10-18 8:16 ` Gilles Chanteperdrix
2005-10-18 8:32 ` Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=435409AD.6060705@domain.hid \
--to=kiszka@domain.hid \
--cc=rpm@xenomai.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.