All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai for arm:error header files
@ 2010-05-10 12:15 federico lolli
  2010-05-10 12:26 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: federico lolli @ 2010-05-10 12:15 UTC (permalink / raw)
  To: xenomai

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


Hi,
I would like to compile Xenomai for arm.
processor is: at91sam9g20 -> at91sam9.
the compiler is emdebian, arm-linux-gnueabi-gcc
 but I get the following errors in the compilation:

fede@domain.hid$ sudo ./configure --build=i686-pc-linux-gnueabi --host=arm-linux-gnueabi --enable-arm-mach=at91sam9 
checking build system type... i686-pc-linux-gnueabi
checking host system type... arm-unknown-linux-gnueabi
checking for a BSD-compatible install... /usr/bin/install -c
checking for arm-linux-gnueabi-gcc... arm-linux-gnueabi-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gnueabi-gcc accepts -g... yes
checking for arm-linux-gnueabi-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... /lib/cpp
checking target system type... arm-unknown-linux-gnueabi
checking for arm-linux-gnueabi-gcc... arm-linux-gnueabi-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether arm-linux-gnueabi-gcc accepts -g... yes
checking for arm-linux-gnueabi-gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... arm-linux-gnueabi-gcc -E
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for arm-linux-gnueabi-strip... arm-linux-gnueabi-strip
checking dependency style of arm-linux-gnueabi-gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking dependency style of arm-linux-gnueabi-gcc... gcc3
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for target architecture... arm
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by arm-linux-gnueabi-gcc... /usr/arm-linux-gnueabi/bin/ld
checking if the linker (/usr/arm-linux-gnueabi/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/arm-linux-gnueabi-nm -B
checking the name lister (/usr/bin/arm-linux-gnueabi-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/arm-linux-gnueabi/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for arm-linux-gnueabi-ar... arm-linux-gnueabi-ar
checking for arm-linux-gnueabi-strip... (cached) arm-linux-gnueabi-strip
checking for arm-linux-gnueabi-ranlib... arm-linux-gnueabi-ranlib
checking command to parse /usr/bin/arm-linux-gnueabi-nm -B output from arm-linux-gnueabi-gcc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC
checking if arm-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-linux-gnueabi-gcc static flag -static works... yes
checking if arm-linux-gnueabi-gcc supports -c -o file.o... yes
checking if arm-linux-gnueabi-gcc supports -c -o file.o... (cached) yes
checking whether the arm-linux-gnueabi-gcc linker (/usr/arm-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for debug symbols... no
checking for SMP support... no
checking for ARM machine... at91sam9
checking for ARM architecture version... 5
checking for ARM SA1100 architecture... no
checking for ARM Xscale3 architecture... no
checking for TSC emulation in user-space.... yes
checking for ARM EABI interface... no
checking whether building Linux in Xenomai build tree... no
checking for Doxygen documentation... no
checking for doxygen... no
checking for dot... NO
checking whether compiling Docbook XML documentation... no
checking for xmllint... xmllint
checking for xsltproc... xsltproc
checking for fop... no
checking whether Docbook XML documentation generation can use network.... no
checking for docbook-xml root dir... /usr/share/sgml/docbook/dtd/xml/4.2
checking for docbook-xsl root dir... network
checking whether using LaTeX non-stop mode... no
checking mqueue.h usability... yes
checking mqueue.h presence... yes
checking for mqueue.h... yes
checking for sched_setaffinity... ok
checking for specific GCC switches... done
checking whether ld supports @file... yes
checking whether the POSIX skin library automatically calls mlockall... no
checking whether the pSOS skin library automatically calls mlockall... no
checking whether the uITRON skin library automatically calls mlockall... no
checking for shm_open... no
checking for shm_unlink... no
checking for mmap64... no
checking for ftruncate64... no
checking for pthread_mutexattr_setprotocol... no
checking for pthread_condattr_setclock... no
checking for pthread_spin_lock... no
checking whether to enable dlopen support for skin libraries... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating scripts/Makefile
config.status: creating scripts/xeno-config
config.status: creating scripts/xeno-load
config.status: creating scripts/xeno-test
config.status: creating src/Makefile
config.status: creating src/rtdk/Makefile
config.status: creating src/skins/Makefile
config.status: creating src/skins/common/Makefile
config.status: creating src/skins/posix/Makefile
config.status: creating src/skins/native/Makefile
config.status: creating src/skins/vxworks/Makefile
config.status: creating src/skins/psos+/Makefile
config.status: creating src/skins/vrtx/Makefile
config.status: creating src/skins/rtdm/Makefile
config.status: creating src/skins/rtai/Makefile
config.status: creating src/skins/uitron/Makefile
config.status: creating src/drvlib/Makefile
config.status: creating src/drvlib/analogy/Makefile
config.status: creating src/include/Makefile
config.status: creating src/testsuite/Makefile
config.status: creating src/testsuite/latency/Makefile
config.status: creating src/testsuite/cyclic/Makefile
config.status: creating src/testsuite/switchtest/Makefile
config.status: creating src/testsuite/irqbench/Makefile
config.status: creating src/testsuite/clocktest/Makefile
config.status: creating src/testsuite/klatency/Makefile
config.status: creating src/testsuite/unit/Makefile
config.status: creating src/testsuite/sigtest/Makefile
config.status: creating src/utils/Makefile
config.status: creating src/utils/can/Makefile
config.status: creating src/utils/analogy/Makefile
config.status: creating src/utils/ps/Makefile
config.status: creating include/Makefile
config.status: creating include/asm-generic/Makefile
config.status: creating include/asm-generic/bits/Makefile
config.status: creating include/asm-blackfin/Makefile
config.status: creating include/asm-blackfin/bits/Makefile
config.status: creating include/asm-x86/Makefile
config.status: creating include/asm-x86/bits/Makefile
config.status: creating include/asm-powerpc/Makefile
config.status: creating include/asm-powerpc/bits/Makefile
config.status: creating include/asm-arm/Makefile
config.status: creating include/asm-arm/bits/Makefile
config.status: creating include/asm-nios2/Makefile
config.status: creating include/asm-nios2/bits/Makefile
config.status: creating include/asm-sim/Makefile
config.status: creating include/asm-sim/bits/Makefile
config.status: creating include/native/Makefile
config.status: creating include/nucleus/Makefile
config.status: creating include/posix/Makefile
config.status: creating include/posix/sys/Makefile
config.status: creating include/psos+/Makefile
config.status: creating include/rtai/Makefile
config.status: creating include/rtdm/Makefile
config.status: creating include/analogy/Makefile
config.status: creating include/uitron/Makefile
config.status: creating include/vrtx/Makefile
config.status: creating include/vxworks/Makefile
config.status: creating doc/Makefile
config.status: creating doc/txt/Makefile
config.status: creating doc/man/Makefile
config.status: creating doc/man/clocktest.man
config.status: creating doc/man/cyclictest.man
config.status: creating doc/man/irqbench.man
config.status: creating doc/man/irqloop.man
config.status: creating doc/man/klatency.man
config.status: creating doc/man/latency.man
config.status: creating doc/man/rtcanconfig.man
config.status: creating doc/man/rtcanrecv.man
config.status: creating doc/man/rtcansend.man
config.status: creating doc/man/switchbench.man
config.status: creating doc/man/switchtest.man
config.status: creating doc/man/runinfo.man
config.status: creating doc/man/xeno-config.man
config.status: creating doc/man/xeno-info.man
config.status: creating doc/man/xeno-load.man
config.status: creating doc/man/xeno-test.man
config.status: creating doc/doxygen/Makefile
config.status: creating doc/doxygen/Doxyfile-common
config.status: creating doc/doxygen/Doxyfile
config.status: creating doc/doxygen/Doxyfile-native
config.status: creating doc/doxygen/Doxyfile-nucleus
config.status: creating doc/doxygen/Doxyfile-posix
config.status: creating doc/doxygen/Doxyfile-rtdm
config.status: creating doc/docbook/Makefile
config.status: creating doc/docbook/catalog
config.status: creating doc/docbook/custom-stylesheets/Makefile
config.status: creating doc/docbook/custom-stylesheets/xsl/Makefile
config.status: creating doc/docbook/custom-stylesheets/xsl/common/Makefile
config.status: creating doc/docbook/custom-stylesheets/xsl/fo/Makefile
config.status: creating doc/docbook/custom-stylesheets/xsl/html/Makefile
config.status: creating doc/docbook/custom-stylesheets/xsl/html/chunk.xsl
config.status: creating doc/docbook/custom-stylesheets/xsl/html/onechunk.xsl
config.status: creating doc/docbook/xenomai/Makefile
config.status: creating src/include/xeno_config.h
config.status: linking ./include/asm-arm to src/include/asm/xenomai
config.status: linking ./include/asm-generic to src/include/asm-generic/xenomai
config.status: executing depfiles commands
config.status: executing libtool commands




fede@domain.hid$ sudo make DESTDIR=/home/fede/foxg20/lll installMaking install in src
make[1]: Entering directory `/home/fede/foxg20/kernel/xenomai-2.5.1/src'
Making install in include
make[2]: Entering directory `/home/fede/foxg20/kernel/xenomai-2.5.1/src/include'
make[3]: Entering directory `/home/fede/foxg20/kernel/xenomai-2.5.1/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 `/home/fede/foxg20/kernel/xenomai-2.5.1/src/include'
make[2]: Leaving directory `/home/fede/foxg20/kernel/xenomai-2.5.1/src/include'
Making install in rtdk
make[2]: Entering directory `/home/fede/foxg20/kernel/xenomai-2.5.1/src/rtdk'
/bin/sh ../../libtool --tag=CC   --mode=compile arm-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src/include  -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -pipe -march=armv5 -D__XENO__ -D__IN_XENO__ -Wstrict-prototypes -I../../include    -MT librtdk_la-rt_print.lo -MD -MP -MF .deps/librtdk_la-rt_print.Tpo -c -o librtdk_la-rt_print.lo `test -f 'rt_print.c' || echo './'`rt_print.c
libtool: compile:  arm-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src/include -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -pipe -march=armv5 -D__XENO__ -D__IN_XENO__ -Wstrict-prototypes -I../../include -MT librtdk_la-rt_print.lo -MD -MP -MF .deps/librtdk_la-rt_print.Tpo -c rt_print.c  -fPIC -DPIC -o .libs/librtdk_la-rt_print.o
rt_print.c:1: warning: target CPU does not support interworking
In file included from /usr/arm-linux-gnueabi/include/errno.h:36,
                 from rt_print.c:19:
/usr/arm-linux-gnueabi/include/bits/errno.h:25:26: error: linux/errno.h: No such file or directory
In file included from /usr/arm-linux-gnueabi/include/bits/posix1_lim.h:153,
                 from /usr/arm-linux-gnueabi/include/limits.h:145,
                 from /usr/lib/gcc/arm-linux-gnueabi/4.3.2/include-fixed/limits.h:122,
                 from /usr/lib/gcc/arm-linux-gnueabi/4.3.2/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/arm-linux-gnueabi/4.3.2/include-fixed/limits.h:11,
                 from rt_print.c:21:
/usr/arm-linux-gnueabi/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
In file included from ../../src/include/asm/xenomai/system.h:223,
                 from rt_print.c:31:
../../include/nucleus/system.h:25:23: error: asm/param.h: No such file or directory
In file included from /usr/arm-linux-gnueabi/include/signal.h:333,
                 from ../../src/include/asm-generic/xenomai/syscall.h:32,
                 from ../../src/include/asm/xenomai/syscall.h:29,
                 from ../../src/include/asm/xenomai/atomic.h:82,
                 from ../../include/nucleus/system.h:26,
                 from ../../src/include/asm/xenomai/system.h:223,
                 from rt_print.c:31:
/usr/arm-linux-gnueabi/include/bits/sigcontext.h:28:29: error: asm/sigcontext.h: No such file or directory
In file included from /usr/arm-linux-gnueabi/include/signal.h:353,
                 from ../../src/include/asm-generic/xenomai/syscall.h:32,
                 from ../../src/include/asm/xenomai/syscall.h:29,
                 from ../../src/include/asm/xenomai/atomic.h:82,
                 from ../../include/nucleus/system.h:26,
                 from ../../src/include/asm/xenomai/system.h:223,
                 from rt_print.c:31:
/usr/arm-linux-gnueabi/include/sys/ucontext.h:92: error: field ‘uc_mcontext’ has incomplete type
In file included from ../../include/nucleus/system.h:27,
                 from ../../src/include/asm/xenomai/system.h:223,
                 from rt_print.c:31:
../../include/nucleus/trace.h: In function ‘xntrace_max_begin’:
../../include/nucleus/trace.h:56: error: ‘ERESTART’ undeclared (first use in this function)
../../include/nucleus/trace.h:56: error: (Each undeclared identifier is reported only once
../../include/nucleus/trace.h:56: error: for each function it appears in.)
../../include/nucleus/trace.h: In function ‘xntrace_max_end’:
../../include/nucleus/trace.h:61: error: ‘ERESTART’ undeclared (first use in this function)
../../include/nucleus/trace.h: In function ‘xntrace_max_reset’:
../../include/nucleus/trace.h:66: error: ‘ERESTART’ undeclared (first use in this function)
../../include/nucleus/trace.h: In function ‘xntrace_user_start’:
../../include/nucleus/trace.h:71: error: ‘ERESTART’ undeclared (first use in this function)
../../include/nucleus/trace.h: In function ‘xntrace_user_stop’:
../../include/nucleus/trace.h:76: error: ‘ERESTART’ undeclared (first use in this function)
../../include/nucleus/trace.h: In function ‘xntrace_user_freeze’:
../../include/nucleus/trace.h:81: error: ‘ERESTART’ undeclared (first use in this function)
../../include/nucleus/trace.h: In function ‘xntrace_special’:
../../include/nucleus/trace.h:87: error: ‘ERESTART’ undeclared (first use in this function)
../../include/nucleus/trace.h: In function ‘xntrace_special_u64’:
../../include/nucleus/trace.h:92: error: ‘ERESTART’ undeclared (first use in this function)
rt_print.c: In function ‘print_to_buffer’:
rt_print.c:98: error: ‘EIO’ undeclared (first use in this function)
rt_print.c: In function ‘rt_print_init’:
rt_print.c:253: error: ‘EINVAL’ undeclared (first use in this function)
rt_print.c:266: error: ‘ENOMEM’ undeclared (first use in this function)
make[2]: *** [librtdk_la-rt_print.lo] Error 1
make[2]: Leaving directory `/home/fede/foxg20/kernel/xenomai-2.5.1/src/rtdk'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/fede/foxg20/kernel/xenomai-2.5.1/src'
make: *** [install-recursive] Error 1

some iedea??
thanks

Federico Lolli
Tel:+39  3476802428
E-mail: federicololli@domain.hid
web: www.federicololli.com


 		 	   		  
_________________________________________________________________
MSN ti offre esattamente quello che cerchi: il tuo browser personale
http://www.pimpit.it/ie8msn/

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

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

end of thread, other threads:[~2010-05-10 12:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-10 12:15 [Xenomai-help] Xenomai for arm:error header files federico lolli
2010-05-10 12:26 ` Gilles Chanteperdrix
2010-05-10 12:29   ` 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.