No subject

André Neves andre-c-neves at criticalsoftware.com
Wed Sep 12 11:20:05 UTC 2007


Hi all.

I cave in and admit that the system outsmarted me.
Here goes newbie question. :)
Compiling RTEMS for a LEON2 simulator in a Linux (Ubuntu 7.04) machine.
autoconf 2.61, automake 1.10, gcc 4,1,2.

I'm in the last step of the compilation described in the wiki's Quick Start:
> cd rtems
> export PATH=/opt/rtems-4.8/bin:$PATH
> ./bootstrap
> cd ..
> mkdir b-sis
> cd b-sis
> ../rtems/configure --target=sparc-rtems --enable-rtemsbsp=sis
--enable-tests=samples --disable-posix --disable-itron
> make

Doing 'make all'.
> (...)
> Making all in capture
> make[5]: Entering directory
`/home/ac-neves/workdir/sparc-rtems/c/leon2/testsuites/samples/capture'
> sparc-rtems-gcc -B../../../../../leon2/lib/ -specs bsp_specs -qrtems
-mcpu=cypress -msoft-float -O2 -g      -o capture.exe init.o test1.o
> ../../../../../leon2/lib/librtemscpu.a(libposix_a-usleep.o): In function
`usleep':
> /home/ac-neves/workdir/sparc-rtems/c/leon2/cpukit/posix/../../../../../../rtems-leon2/c/src/../../cpukit/posix/src/usleep.c:29:
undefined reference to `nanosleep'
> collect2: ld returned 1 exit status
> make[5]: *** [capture.exe] Error 1
> make[5]: Leaving directory
`/home/ac-neves/workdir/sparc-rtems/c/leon2/testsuites/samples/capture'
> (...)

I've been trying to fix it myself, but failed to understand how everything
is well except for nanosleep.
Can something not have been included properly?

Any pointers?
Thank you. :)
 Andre´ Neves





More information about the users mailing list