All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] staging_dir install errors
@ 2010-07-23  7:33 Görkem Karadoğan
  2010-07-23  9:26 ` Gilles Chanteperdrix
  2010-07-23  9:29 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 5+ messages in thread
From: Görkem Karadoğan @ 2010-07-23  7:33 UTC (permalink / raw)
  To: xenomai

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

$ /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.


i prepare this installing documents, and i came last part without errors
but last part i got this error code :)

root@domain.hid# make DESTDIR=/opt/linux-2.6.33/staging_dir
install
Making install in src
make[1]: Entering directory `/opt/linux-2.6.33/src'
Making install in include
make[2]: Entering directory `/opt/linux-2.6.33/src/include'
make[3]: Entering directory `/opt/linux-2.6.33/src/include'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/opt/linux-2.6.33/src/include'
make[2]: Leaving directory `/opt/linux-2.6.33/src/include'
Making install in rtdk
make[2]: Entering directory `/opt/linux-2.6.33/src/rtdk'
/bin/bash ../../libtool --tag=CC   --mode=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 -o librtdk_la-init.lo `test -f
'init.c' || echo '/opt/xenomai-2.5.3/src/rtdk/'`init.c
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
make[2]: *** [librtdk_la-init.lo] Error 1
make[2]: Leaving directory `/opt/linux-2.6.33/src/rtdk'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/opt/linux-2.6.33/src'
make: *** [install-recursive] Error 1
root@domain.hid# make DESTDIR=/opt/linux-2.6.33/staging_dir
install
Making install in src
make[1]: Entering directory `/opt/linux-2.6.33/src'
Making install in include
make[2]: Entering directory `/opt/linux-2.6.33/src/include'
make[3]: Entering directory `/opt/linux-2.6.33/src/include'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/opt/linux-2.6.33/src/include'
make[2]: Leaving directory `/opt/linux-2.6.33/src/include'
Making install in rtdk
make[2]: Entering directory `/opt/linux-2.6.33/src/rtdk'
/bin/bash ../../libtool --tag=CC   --mode=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 -o librtdk_la-init.lo `test -f
'init.c' || echo '/opt/xenomai-2.5.3/src/rtdk/'`init.c
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
make[2]: *** [librtdk_la-init.lo] Error 1
make[2]: Leaving directory `/opt/linux-2.6.33/src/rtdk'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/opt/linux-2.6.33/src'
make: *** [install-recursive] Error 1

[-- Attachment #2: Type: text/html, Size: 4679 bytes --]

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

* Re: [Xenomai-help] staging_dir install errors
  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
  1 sibling, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2010-07-23  9:26 UTC (permalink / raw)
  To: Görkem Karadoğan; +Cc: xenomai

Görkem Karadoğan wrote:
> 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

Your toolchain does not support the -march=armv7-a flag. Either stop
using an old toolchain, or pass --enable-arm-mach=imx31 to xenomai
configure script.


-- 
					    Gilles.



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

* Re: [Xenomai-help] staging_dir install errors
  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
  2010-07-23 10:59   ` Görkem Karadoğan
  1 sibling, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2010-07-23  9:29 UTC (permalink / raw)
  To: Görkem Karadoğan; +Cc: xenomai

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.



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

* Re: [Xenomai-help] staging_dir install errors
  2010-07-23  9:29 ` Gilles Chanteperdrix
@ 2010-07-23 10:59   ` Görkem Karadoğan
  2010-07-23 11:03     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Görkem Karadoğan @ 2010-07-23 10:59 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

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

$ cd /opt/linux-2.6.33
$ /opt/xenomai-2.5.3/configure --build=i686-pc-linux-gnu
--host=arm-none-linux-gnueabi --enable-arm-mach=omap3 --enable-arm-tsc
$ mkdir staging_dir
$ make DESTDIR=/opt/linux-2.6.33/staging_dir install

ok i edited my installing document and it works thank you. now how can i
test that? is it work or not?

2010/7/23 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>

> 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.
>
>

[-- Attachment #2: Type: text/html, Size: 2750 bytes --]

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

* Re: [Xenomai-help] staging_dir install errors
  2010-07-23 10:59   ` Görkem Karadoğan
@ 2010-07-23 11:03     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2010-07-23 11:03 UTC (permalink / raw)
  To: Görkem Karadoğan; +Cc: xenomai

Görkem Karadoğan wrote:
> $ cd /opt/linux-2.6.33
> $ /opt/xenomai-2.5.3/configure --build=i686-pc-linux-gnu
> --host=arm-none-linux-gnueabi --enable-arm-mach=omap3 --enable-arm-tsc
> $ mkdir staging_dir
> $ make DESTDIR=/opt/linux-2.6.33/staging_dir install
>  
> ok i edited my installing document and it works thank you. now how can i
> test that? is it work or not?

We also have README.INSTALL. Run latency on the target.

-- 
					    Gilles.



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

end of thread, other threads:[~2010-07-23 11:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-07-23 10:59   ` Görkem Karadoğan
2010-07-23 11:03     ` Gilles Chanteperdrix

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.