All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Problem building MVM: "error: The X11 library '-lX11' could not be found"
@ 2005-12-01  9:48 Ashri, Sarit
  2005-12-01 10:17 ` Philippe Gerum
  0 siblings, 1 reply; 10+ messages in thread
From: Ashri, Sarit @ 2005-12-01  9:48 UTC (permalink / raw)
  To: xenomai

Hi,

I'm trying to build Xenomai 2.0.1 with MVM support.
My target board is PPC and I use patched Linux 2.6.13.4 with it +  
Xenomai 2.0.1 , cross compiled with the flags: ARCH=ppc
CROSS_COMPILE=ppc_82xx:

[.../xenomai-2.0.1/build-sim]$ make ARCH=ppc CROSS_COMPILE=ppc_82xx-
xeno_srctree=../ 
-f ../makefile xconfig
make[1]: Entering directory
`/opt/eldk/eldk3.1.1/usr/src/xenomai/xenomai-2.0.1/build-sim/config/kcon
fig'
#
# using defaults found in ../../.xeno_config
#
make[1]: Leaving directory
`/opt/eldk/eldk3.1.1/usr/src/xenomai/xenomai-2.0.1/build-sim/config/kcon
fig'
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for powerpc-unknown-linux-gnu-gcc... ppc_82xx-gcc
...   
configure: running /bin/sh
'/opt/src_eldk3.1.1/xenomai/xenomai-2.0.1/sim/configure'
--prefix=/usr/realtime  'CROSS_COMPILE=ppc_82xx-' 'CC=ppc_82xx-gcc'
'CXX=ppc_82xx-g++' 'LD=ppc_82xx-ld' 'AR=ppc_82xx-ar'
'RANLIB=ppc_82xx-ranlib' 'STRIP=ppc_82xx-strip' 'NM=ppc_82xx-nm'
'--build=i686-pc-linux-gnu' '--host=powerpc-unknown-linux-gnu'
'--with-kconfig-file=.xeno_config' '--with-linux-dir='
'--prefix=/usr/realtime' 'build_alias=i686-pc-linux-gnu'
'host_alias=powerpc-unknown-linux-gnu' --cache-file=/dev/null
--srcdir=/opt/src_eldk3.1.1/xenomai/xenomai-2.0.1/sim
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for powerpc-unknown-linux-gnu-gcc... ppc_82xx-gcc
...
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether ppc_82xx-gcc accepts -g... yes
checking for ppc_82xx-gcc option to accept ANSI C... none needed
checking for powerpc-unknown-linux-gnu-g++... ppc_82xx-g++
checking whether we are using the GNU C++ compiler... yes
checking whether ppc_82xx-g++ accepts -g... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for powerpc-unknown-linux-gnu-strip... ppc_82xx-strip
checking dependency style of ppc_82xx-gcc... gcc3
checking dependency style of ppc_82xx-g++... gcc3
checking whether to enable maintainer-specific portions of Makefiles...
no
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by ppc_82xx-gcc... ppc_82xx-ld
checking if the linker (ppc_82xx-ld) is GNU ld... yes
checking for ppc_82xx-ld option to reload object files... -r
checking for BSD-compatible nm... ppc_82xx-nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... ppc_82xx-gcc -E
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... ppc_82xx-g++ -E
checking for powerpc-unknown-linux-gnu-g77... no
checking for powerpc-unknown-linux-gnu-f77... no
checking for powerpc-unknown-linux-gnu-xlf... no
checking for powerpc-unknown-linux-gnu-frt... no
checking for powerpc-unknown-linux-gnu-pgf77... no
checking for powerpc-unknown-linux-gnu-fort77... no
checking for powerpc-unknown-linux-gnu-fl32... no
checking for powerpc-unknown-linux-gnu-af77... no
checking for powerpc-unknown-linux-gnu-f90... no
checking for powerpc-unknown-linux-gnu-xlf90... no
checking for powerpc-unknown-linux-gnu-pgf90... no
checking for powerpc-unknown-linux-gnu-epcf90... no
checking for powerpc-unknown-linux-gnu-f95... no
checking for powerpc-unknown-linux-gnu-fort... no
checking for powerpc-unknown-linux-gnu-xlf95... no
checking for powerpc-unknown-linux-gnu-ifc... no
checking for powerpc-unknown-linux-gnu-efc... no
checking for powerpc-unknown-linux-gnu-pgf95... no
checking for powerpc-unknown-linux-gnu-lf95... no
checking for powerpc-unknown-linux-gnu-gfortran... no
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse ppc_82xx-nm output from ppc_82xx-gcc object...
ok
checking for objdir... .libs
checking for powerpc-unknown-linux-gnu-ar... ppc_82xx-ar
checking for powerpc-unknown-linux-gnu-ranlib... ppc_82xx-ranlib
checking for powerpc-unknown-linux-gnu-strip... (cached) ppc_82xx-strip
checking if ppc_82xx-gcc static flag  works... yes
checking if ppc_82xx-gcc supports -fno-rtti -fno-exceptions... no
checking for ppc_82xx-gcc option to produce PIC... -fPIC
checking if ppc_82xx-gcc PIC flag -fPIC works... yes
checking if ppc_82xx-gcc supports -c -o file.o... yes
checking whether the ppc_82xx-gcc linker (ppc_82xx-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
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by ppc_82xx-g++... ppc_82xx-ld
checking if the linker (ppc_82xx-ld) is GNU ld... yes
checking whether the ppc_82xx-g++ linker (ppc_82xx-ld) supports shared
libraries... yes
checking for ppc_82xx-g++ option to produce PIC... -fPIC
checking if ppc_82xx-g++ PIC flag -fPIC works... yes
checking if ppc_82xx-g++ supports -c -o file.o... yes
checking whether the ppc_82xx-g++ linker (ppc_82xx-ld) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (ppc_82xx-ld) supports shared
libraries... yes
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 for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for Xenomai installation directory... /usr/realtime
checking for MVM debug support... no
checking for MVM atomic core mode... no
checking for statistics collection in nucleus... y
checking for Xenomai nucleus debug support... no
checking for GCC tarball... /tmp/gcc-2.95.3.tar.bz2
checking Wrap Tcl-scripts in executables... no
checking for pSOS+ simulator... y
checking for VxWorks simulator... y
checking for VRTX simulator... y
checking for uITRON simulator... y
checking for POSIX simulator... y
checking for native API simulator... y
checking for RTAI simulator... y
checking if C compiler is GNU C... yes
checking if C compiler supports -fwritable-strings
-fdollars-in-identifiers... yes
checking if C++ compiler is GNU C++... yes
checking if C++ compiler supports -fno-exceptions... yes
checking if C++ compiler supports -fnonnull-objects... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for XOpenDisplay in -lX11... no
configure: error: The X11 library '-lX11' could not be found,
 so I won't go further. Please use the configure
 options '--x-includes=DIR' and '--x-libraries=DIR'
 to specify the X location. See the file 'config.log'
 for further diagnostics.
configure: error: /bin/sh
'/opt/src_eldk3.1.1/xenomai/xenomai-2.0.1/sim/configure' failed for sim
make: *** [config.status] Error 1

*************************
>From config.log file:
*************************
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Xenomai configure 2.0.1, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ /opt/src_eldk3.1.1/xenomai/xenomai-2.0.1/configure
CROSS_COMPILE=ppc_82xx- CC=ppc_82xx-gcc CXX=ppc_82xx-g++ LD=ppc_82xx-ld
AR=ppc_82xx-ar RANLIB=ppc_82xx-ranlib STRIP=ppc_82xx-strip
NM=ppc_82xx-nm --build=i686-pc-linux-gnu
--host=powerpc-unknown-linux-gnu --with-kconfig-file=.xeno_config
--with-linux-dir= --prefix=/usr/realtime

## --------- ##
## Platform. ##
## --------- ##

hostname = sashri-lin
uname -m = i686
uname -r = 2.4.21-32.EL
uname -s = Linux
uname -v = #1 Fri Apr 15 21:29:19 EDT 2005

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /users/sashri/bin
PATH: /home/oracle/orahome/bin
PATH: /usr/kerberos/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/bin/X11
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: ../bin
PATH: /usr/bin/X11
PATH: /usr/contrib/bin/X11
PATH: /users/bin
PATH: .
PATH: /usr/softbench/bin
PATH: /etc
PATH: /sbin
PATH: /opt/eldk/eldk3.1.1/usr/bin
PATH: /opt/eldk/eldk3.1.1/bin
PATH: //opt/eldk/eldk3.1.1/ppc_82xx/usr/realtime/bin
PATH: /sbin
...
config.status:1546: executing depfiles commands
configure:25617: configuring in sim
configure:25734: running /bin/sh
'/opt/src_eldk3.1.1/xenomai/xenomai-2.0.1/sim/configure'
--prefix=/usr/realtime  'CROSS_COMPILE=ppc_82xx-' 'CC=ppc_82xx-gcc'
'CXX=ppc_82xx-g++' 'LD=ppc_82xx-ld' 'AR=ppc_82xx-ar'
'RANLIB=ppc_82xx-ranlib' 'STRIP=ppc_82xx-strip' 'NM=ppc_82xx-nm'
'--build=i686-pc-linux-gnu' '--host=powerpc-unknown-linux-gnu'
'--with-kconfig-file=.xeno_config' '--with-linux-dir='
'--prefix=/usr/realtime' 'build_alias=i686-pc-linux-gnu'
'host_alias=powerpc-unknown-linux-gnu' --cache-file=/dev/null
--srcdir=/opt/src_eldk3.1.1/xenomai/xenomai-2.0.1/sim
configure:25739: error: /bin/sh
'/opt/src_eldk3.1.1/xenomai/xenomai-2.0.1/sim/configure' failed for sim
...
configure: exit 1

I'll appreciate any help you can give me
Thanks,
Sarit.


***********************************************************************************
This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@domain.hid and destroy the original message.
***********************************************************************************


^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: [Xenomai-help] Problem building MVM: "error: The X11 library '-lX11' could not be found"
@ 2005-12-01 11:14 Ashri, Sarit
  2005-12-01 11:22 ` Philippe Gerum
  2005-12-01 12:24 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 10+ messages in thread
From: Ashri, Sarit @ 2005-12-01 11:14 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

Hi Philippe,

I did read the files. What I don't understand is how to build the
Xenomai
With Simulator support?
When I build Xenomai without simulator support - everything works just
fine
(crossed compiled to work on PPC with Linux 2.6.13.4).
As soon as I mark Simulator->Minute Virtual Machine I get that error
(X11 library..).
I understood from reading previous mails on the internet that I should
be able to 
build the MVM on my host computer which is NOT patched by Adeos (RHEL3.0
Linux on i686)
through Regular Xenomai CROSS_COMPILING and installation.

If I try using the unpatched host Linux version (2.4) I get the
following error message from
Xenomai configuration: 
...
checking for Linux build tree... /lib/modules/2.4.21-32.EL/build (kernel
2.4.21-32.ELcustom)
checking for Linux source tree... /lib/modules/2.4.21-32.EL/build
checking for interrupt pipeline extension... configure: error: No
interrupt pipeline extension enabled in your kernel.
        You need to apply an Adeos patch first.
make: *** [config.status] Error 1

Should I:
1. Try compiling with my patched Linux 2.6 - won't I have problems
running programs 
compiled for Linux 2.6 on Linux 2.4?
2. compile Xenomai without Simulator support and then try installing the
simulator separately?
BTW when I try to install the simulator separately:
I ran sim/configure it passed and so did make and make install of the
simulator directly in sim directory, but when I tried to compile the
demos with gcic (make sim) I received the error message:
"gcic:instrumenter/compiler is missing -- please check your
installation."
So I thought this might not be the correct way to do it. Maybe I should
continue on this
road?
3. Something else?

I'm new to Xenomai and Linux so excuse me if I'm missing something
basic.
I appreciate your help!
Sarit
 
> Philippe Gerum wrote:
> > Ashri, Sarit wrote:
> > 
> >> Hi,
> >>
> >> I'm trying to build Xenomai 2.0.1 with MVM support.
> >> My target board is PPC and I use patched Linux 2.6.13.4 with it + 
> >> Xenomai 2.0.1 , cross compiled with the flags: ARCH=ppc
> >> CROSS_COMPILE=ppc_82xx:
> > 
> > 
> > The simulator is a _host_ based tool, not a target one, so 
> you don't 
> > want to cross-compile it for your target, it's a native compilation 
> > from and for your build system. Make sure to read sim/README to get 
> > the software package deps, then select the simulation build in the 
> > config menu, and specify a valid path to a GCC-2.95.3 
> archive as specified.
> 
> While you are at it, also make sure to read 
> sim/doc/mvm-manual.txt to get a detailed explanation about 
> what the simulator does and how it does it. It's an 
> event-driven simulation engine working at source code level, 
> not a CPU emulator.
> 
> -- 
> 
> Philippe.
> 
***********************************************************************************
This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@domain.hid and destroy the original message.
***********************************************************************************


^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: [Xenomai-help] Problem building MVM: "error: The X11 library '-lX11' could not be found"
@ 2005-12-01 12:34 Ashri, Sarit
  2005-12-01 12:51 ` Philippe Gerum
  0 siblings, 1 reply; 10+ messages in thread
From: Ashri, Sarit @ 2005-12-01 12:34 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

> 
> Ashri, Sarit wrote:
> > Hi Philippe,
> > 
> > I did read the files. What I don't understand is how to build the 
> > Xenomai With Simulator support?
> > When I build Xenomai without simulator support - everything 
> works just 
> > fine (crossed compiled to work on PPC with Linux 2.6.13.4).
> > As soon as I mark Simulator->Minute Virtual Machine I get that error
> > (X11 library..).
> > I understood from reading previous mails on the internet 
> that I should 
> > be able to build the MVM on my host computer which is NOT 
> patched by 
> > Adeos (RHEL3.0 Linux on i686) through Regular Xenomai 
> CROSS_COMPILING 
> > and installation.
> 
> Try this:
> 
> - Build your target system first without the simulator using 
> cross-compilation for ppc. Let's say that you installed the 
> results under /usr/realtime, which is the default.
> 
> - Then, build the simulator separately for the host:
> 
> $ mkdir sim-build && cd sim-build
> $ .../xenomai/sim/configure --with-xeno-dir=/usr/realtime
> --with-gcc-tarball=/something/gcc-2.95.3.tar.bz2
> $ make install
> 
Everything compiled fine, but when I tried to compile the native demo
for the
Simulator I received the following error:
cd .../skins/native/demos
[demos]$ /usr/realtime/bin/gcic -o satch_s.o -c satch.c -g -I
/opt/nfs_root/usr/realtime/include
In file included from
/opt/nfs_root/usr/realtime/include/nucleus/asm/atomic.h:23,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/system.h:33,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/asm-generic/system.h:560,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/asm/system.h:23,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/types.h:40,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/queue.h:23,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:23,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:23,
                 from
/opt/nfs_root/usr/realtime/include/native/task.h:26,
                 from satch.c:4:
/usr/include/asm/atomic.h:40: warning: #warning Using kernel header in
userland program. BAD!
In file included from
/opt/nfs_root/usr/realtime/include/nucleus/system.h:33,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/asm-generic/system.h:560,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/asm/system.h:23,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/types.h:40,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/queue.h:23,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:23,
                 from
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:23,
                 from
/opt/nfs_root/usr/realtime/include/native/task.h:26,
                 from satch.c:4:
/opt/nfs_root/usr/realtime/include/nucleus/asm/atomic.h: In function
`atomic_set_mask':
/opt/nfs_root/usr/realtime/include/nucleus/asm/atomic.h:191: unknown
register name `r5' in `asm'
/opt/nfs_root/usr/realtime/include/nucleus/asm/atomic.h: In function
`atomic_clear_mask':
/opt/nfs_root/usr/realtime/include/nucleus/asm/atomic.h:205: unknown
register name `r5' in `asm'
In file included from
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:23,
                 from
/opt/nfs_root/usr/realtime/include/native/task.h:26,
                 from satch.c:4:
/opt/nfs_root/usr/realtime/include/nucleus/timer.h: At top level:
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:79: syntax error
before `XNARCH_DECL_DISPLAY_CONTEXT'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:79: warning: no
semicolon at end of struct or union
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:81: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:93: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h: In function
`xntimer_active_p':
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:94: `timer'
undeclared (first use in this function)
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:94: (Each undeclared
identifier is reported only once
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:94: for each function
it appears in.)
/opt/nfs_root/usr/realtime/include/nucleus/timer.h: At top level:
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:97: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h: In function
`xntimer_running_p':
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:98: `timer'
undeclared (first use in this function)
/opt/nfs_root/usr/realtime/include/nucleus/timer.h: At top level:
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:105: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:108: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:109: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:110: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:111: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:122: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:123: `xntimer_init'
declared as function returning a function
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:124: syntax error
before `void'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:126: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:128: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:155: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h: In function
`xntimer_stop':
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:157: `timer'
undeclared (first use in this function)
/opt/nfs_root/usr/realtime/include/nucleus/timer.h: At top level:
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:163: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/timer.h:165: syntax error
before `*'
In file included from
/opt/nfs_root/usr/realtime/include/native/task.h:26,
                 from satch.c:4:
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:106: syntax error
before `xnarchtcb_t'
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:106: warning: no
semicolon at end of struct or union
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:112: syntax error
before `affinity'
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:112: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:134: syntax error
before `rtimer'
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:134: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:136: syntax error
before `ptimer'
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:136: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:182: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:184: syntax error
before `}'
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:184: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:197: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:243: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:249: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:253: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/thread.h: In function
`xnthread_get_timeout':
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:257: `thread'
undeclared (first use in this function)
/opt/nfs_root/usr/realtime/include/nucleus/thread.h:262: `now'
undeclared (first use in this function)
In file included from
/opt/nfs_root/usr/realtime/include/native/task.h:27,
                 from satch.c:4:
/opt/nfs_root/usr/realtime/include/nucleus/synch.h: At top level:
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:67: syntax error
before `XNARCH_DECL_DISPLAY_CONTEXT'
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:67: warning: no
semicolon at end of struct or union
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:69: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:82: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:88: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/synch.h: In function
`xnsynch_set_owner':
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:89: `synch'
undeclared (first use in this function)
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:89: `thread'
undeclared (first use in this function)
/opt/nfs_root/usr/realtime/include/nucleus/synch.h: At top level:
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:92: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:95: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:97: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:100: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/synch.h:109: syntax error
before `*'
In file included from satch.c:4:
/opt/nfs_root/usr/realtime/include/native/task.h:110: syntax error
before `xntimer_t'
/opt/nfs_root/usr/realtime/include/native/task.h:110: warning: no
semicolon at end of struct or union
/opt/nfs_root/usr/realtime/include/native/task.h:112: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/native/task.h:120: syntax error
before `affinity'
/opt/nfs_root/usr/realtime/include/native/task.h:120: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/native/task.h:150: syntax error
before `mrecv'
/opt/nfs_root/usr/realtime/include/native/task.h:151: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/native/task.h:156: syntax error
before `}'
/opt/nfs_root/usr/realtime/include/native/task.h:156: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/native/task.h:158: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:158: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h: In function
`thread2rtask':
/opt/nfs_root/usr/realtime/include/native/task.h:160: `t' undeclared
(first use in this function)
/opt/nfs_root/usr/realtime/include/native/task.h:160: syntax error
before `)'
/opt/nfs_root/usr/realtime/include/native/task.h:160: syntax error
before `)'
/opt/nfs_root/usr/realtime/include/native/task.h: At top level:
/opt/nfs_root/usr/realtime/include/native/task.h:221: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:227: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:228: `rt_task_start'
declared as function returning a function
/opt/nfs_root/usr/realtime/include/native/task.h:229: syntax error
before `void'
/opt/nfs_root/usr/realtime/include/native/task.h:231: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:233: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:235: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:239: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:245: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:252: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:254: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:259: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:266: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:266: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/native/task.h:268: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:273: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:286: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/task.h:291: `rt_task_spawn'
declared as function returning a function
/opt/nfs_root/usr/realtime/include/native/task.h:292: syntax error
before `void'
In file included from
/opt/nfs_root/usr/realtime/include/native/queue.h:26,
                 from satch.c:5:
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:98: syntax error
before `xnarch_heapcb_t'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:98: warning: no
semicolon at end of struct or union
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:100: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:102: syntax error
before `}'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:102: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:104: syntax error
before `kheap'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:104: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:156: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:161: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:162: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:165: `xnheap_destroy'
declared as function returning a function
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:168: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:172: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:175: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:177: syntax error
before `)'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:179: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:182: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:186: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:188: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/nucleus/heap.h: In function
`xnheap_finalize_free':
/opt/nfs_root/usr/realtime/include/nucleus/heap.h:190: `heap' undeclared
(first use in this function)
In file included from satch.c:5:
/opt/nfs_root/usr/realtime/include/native/queue.h: At top level:
/opt/nfs_root/usr/realtime/include/native/queue.h:78: syntax error
before `xnsynch_t'
/opt/nfs_root/usr/realtime/include/native/queue.h:78: warning: no
semicolon at end of struct or union
/opt/nfs_root/usr/realtime/include/native/queue.h:82: syntax error
before `bufpool'
/opt/nfs_root/usr/realtime/include/native/queue.h:82: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/native/queue.h:96: syntax error
before `}'
/opt/nfs_root/usr/realtime/include/native/queue.h:96: warning: data
definition has no type or storage class
/opt/nfs_root/usr/realtime/include/native/queue.h:149: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/queue.h:155: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/queue.h:157: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/queue.h:160: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/queue.h:163: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/queue.h:168: syntax error
before `*'
/opt/nfs_root/usr/realtime/include/native/queue.h:172: syntax error
before `*'
satch.c:37: syntax error before `producer_task'
satch.c:38: warning: data definition has no type or storage class


> 
> Philippe.
> 

Thanks a lot for you help,
Sarit.
***********************************************************************************
This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@domain.hid and destroy the original message.
***********************************************************************************


^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: [Xenomai-help] Problem building MVM: "error: The X11 library '-lX11' could not be found"
@ 2005-12-04 12:45 Ashri, Sarit
  2005-12-04 18:16 ` Philippe Gerum
  0 siblings, 1 reply; 10+ messages in thread
From: Ashri, Sarit @ 2005-12-04 12:45 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

Hi Philippe,
Do you think I should wait for the v2.1 to be released 
or is it stable enough To start playing with it now?

Thanks a lot for all your help!
Sarit.

> -----Original Message-----
> From: Philippe Gerum [mailto:rpm@xenomai.org
> Sent: Thursday, December 01, 2005 2:52 PM
> To: Ashri, Sarit
> Cc: xenomai@xenomai.org
> Subject: Re: [Xenomai-help] Problem building MVM: "error: The 
> X11 library '-lX11' could not be found"
> 
> Ashri, Sarit wrote:
> >>Ashri, Sarit wrote:
> >>
> >>>Hi Philippe,
> >>>
> >>>I did read the files. What I don't understand is how to build the 
> >>>Xenomai With Simulator support?
> >>>When I build Xenomai without simulator support - everything
> >>
> >>works just
> >>
> >>>fine (crossed compiled to work on PPC with Linux 2.6.13.4).
> >>>As soon as I mark Simulator->Minute Virtual Machine I get 
> that error
> >>>(X11 library..).
> >>>I understood from reading previous mails on the internet
> >>
> >>that I should
> >>
> >>>be able to build the MVM on my host computer which is NOT
> >>
> >>patched by
> >>
> >>>Adeos (RHEL3.0 Linux on i686) through Regular Xenomai
> >>
> >>CROSS_COMPILING
> >>
> >>>and installation.
> >>
> >>Try this:
> >>
> >>- Build your target system first without the simulator using 
> >>cross-compilation for ppc. Let's say that you installed the results 
> >>under /usr/realtime, which is the default.
> >>
> >>- Then, build the simulator separately for the host:
> >>
> >>$ mkdir sim-build && cd sim-build
> >>$ .../xenomai/sim/configure --with-xeno-dir=/usr/realtime
> >>--with-gcc-tarball=/something/gcc-2.95.3.tar.bz2
> >>$ make install
> >>
> > 
> > Everything compiled fine, but when I tried to compile the 
> native demo 
> > for the Simulator I received the following error:
> > cd .../skins/native/demos
> > [demos]$ /usr/realtime/bin/gcic -o satch_s.o -c satch.c -g -I 
> > /opt/nfs_root/usr/realtime/include
> > In file included from
> > /opt/nfs_root/usr/realtime/include/nucleus/asm/atomic.h:23,
> >                  from
> > /opt/nfs_root/usr/realtime/include/nucleus/system.h:33,
> >                  from
> > /opt/nfs_root/usr/realtime/include/nucleus/asm-generic/system.h:560,
> >                  from
> > /opt/nfs_root/usr/realtime/include/nucleus/asm/system.h:23,
> >                  from
> > /opt/nfs_root/usr/realtime/include/nucleus/types.h:40,
> >                  from
> > /opt/nfs_root/usr/realtime/include/nucleus/queue.h:23,
> >                  from
> > /opt/nfs_root/usr/realtime/include/nucleus/timer.h:23,
> >                  from
> > /opt/nfs_root/usr/realtime/include/nucleus/thread.h:23,
> >                  from
> > /opt/nfs_root/usr/realtime/include/native/task.h:26,
> >                  from satch.c:4:
> > /usr/include/asm/atomic.h:40: warning: #warning Using 
> kernel header in 
> > userland program. BAD!
> > In file included from
> > /opt/nfs_root/usr/realtime/include/nucleus/system.h:33,
> >                  from
> 
> Gah. Ok, my mistake. Since you are cross-compiling for your 
> target, you need to have two Xenomai installations, once for 
> the ppc target to run the real stuff, another one to run the 
> virtual simulation environment for the x86 host.
> 
> So, ...
> 
> - Configure and cross-compile Xenomai for ppc without 
> simulation support for installing to /opt/nfsroot
> - Configure and compile Xenomai natively for x86 with 
> simulation support for installing to, e.g. /opt/local
> 
> This way at least, you won't need to build the simulator 
> apart, it will be built as part of the second step. Most of 
> the native x86 support won't be used (aside of the simulator, 
> of course), but at least, this will work. On the host, you 
> will need to set your PATH and LD_LIBRARY_PATH to 
> /opt/local/bin, and /opt/local/lib respectively, so that the 
> simulation libs and tools are found.
> 
> The #warning won't go away though; only v2.1 gets rid of this 
> by avoiding any kernel header inclusion in user-space. Debian 
> systems would not bother you with this (at least sarge 
> doesn't), but RH actually do.
> 
> -- 
> 
> Philippe.
> 
***********************************************************************************
This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@domain.hid and destroy the original message.
***********************************************************************************


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

end of thread, other threads:[~2005-12-04 18:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-01  9:48 [Xenomai-help] Problem building MVM: "error: The X11 library '-lX11' could not be found" Ashri, Sarit
2005-12-01 10:17 ` Philippe Gerum
2005-12-01 10:23   ` Philippe Gerum
  -- strict thread matches above, loose matches on Subject: below --
2005-12-01 11:14 Ashri, Sarit
2005-12-01 11:22 ` Philippe Gerum
2005-12-01 12:24 ` Gilles Chanteperdrix
2005-12-01 12:34 Ashri, Sarit
2005-12-01 12:51 ` Philippe Gerum
2005-12-04 12:45 Ashri, Sarit
2005-12-04 18:16 ` Philippe Gerum

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.