From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Görkem Karadoğan" <gkaradagan@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] staging_dir install errors
Date: Fri, 23 Jul 2010 11:29:24 +0200 [thread overview]
Message-ID: <4C4960F4.3020306@domain.hid> (raw)
In-Reply-To: <AANLkTikROCnKiEBnl2W92zNQUNkScJ0reqaKVtS2iFcw@domain.hid>
Görkem Karadoğan wrote:
> $ /opt/xenomai-2.5.3/scripts/prepare-kernel.sh --arch=arm \
>
> --adeos=/opt/xenomai-2.5.3/ksrc/arch/arm/patches/adeos-ipipe-2.6.33-arm-* \
> --linux=/opt/linux-2.6.33/
> $ cd /opt/linux-2.6.33/
> $ mkdir build_root
> $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
> O=/opt/linux-2.6.33/build_root omap3_evm_defconfig
> $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
> O=/opt/linux-2.6.33/build_root bzImage modules
>
> $ cd /opt/linux-2.6.33/build_root
> $ /opt/xenomai-2.5.3/configure --build=i686-pc-linux-gnu
> --host=arm-linux --enable-arm-mach=omap3 --enable-arm-tsc
> $ mkdir staging_dir
> $ cd ..
> $ make DESTDIR=/opt/linux-2.6.33/staging_dir install ///// I got this
> error in this part.
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/opt/xenomai-2.5.3/src/rtdk
> -I../../src/include -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -pipe
> -march=armv7-a -D__XENO__ -D__IN_XENO__ -Wstrict-prototypes
> -I/opt/xenomai-2.5.3/include -MT librtdk_la-init.lo -MD -MP -MF
> .deps/librtdk_la-init.Tpo -c /opt/xenomai-2.5.3/src/rtdk/init.c -fPIC
> -DPIC -o .libs/librtdk_la-init.o
> /opt/xenomai-2.5.3/src/rtdk/init.c:1: error: bad value (armv7-a) for
> -march= switch
> /opt/xenomai-2.5.3/src/rtdk/init.c:1: error: bad value (armv7-a) for
> -mtune= switch
Sorry, wrong answer. You have not told configure the proper compilation
prefix, so, it failed finding "arm-linux-gcc", and fall back to gcc.
Unfortunately, gcc is not able to generate arm code, only
arm-none-linux-gnueabi-gcc is.
pass --host=arm-none-linux-gnueabi to configure, or pass a value for CC
on configure command line.
--
Gilles.
next prev parent reply other threads:[~2010-07-23 9:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-23 7:33 [Xenomai-help] staging_dir install errors Görkem Karadoğan
2010-07-23 9:26 ` Gilles Chanteperdrix
2010-07-23 9:29 ` Gilles Chanteperdrix [this message]
2010-07-23 10:59 ` Görkem Karadoğan
2010-07-23 11:03 ` Gilles Chanteperdrix
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=4C4960F4.3020306@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=gkaradagan@domain.hid \
--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.