Some problem during the compilation of RTEMS.

Youren Shen shenyouren at gmail.com
Thu Feb 20 02:21:31 UTC 2014


Hi,
I am trying to transplant RTEMS to my mini24440 board(with S3C2440
processor,ARM 9).
However , I have meet some problem during compilation.
I've followed the RTEMS instructions and build my arm-rtems4.11-*
 tools,and when I compile RTEMS,This happened:

/home/shenyouren/workspace/rtems/toolchain/lib/gcc/arm-rtems4.11/4.8.1/../../../../arm-rtems4.11/lib/libc.a(lib_a-puts.o):/home/shenyouren/workspace/rtems/rtems-ubuntu/b-gcc/arm-rtems4.11/newlib/libc/stdio/../../../../../gcc-4.8.1/newlib/libc/stdio/puts.c:97:
more undefined references to `pthread_setcancelstate' follow
collect2: error: ld returned 1 exit status


*So, I would like to know, which step probably causing this problem so I
can continue my job.*

Here is my configure of my Tools and RTEMS.

../binutils-2.24/configure --target=${TARGET} \
    --prefix=/home/shenyouren/workspace/rtems/toolchain

../gcc-4.8.1/configure --target=${TARGET} \
    --with-gnu-as --with-newlib --verbose \
    --enable-threads --enable-languages="c,c++" \
    --prefix=/home/shenyouren/workspace/rtems/toolchain

../rtems/configure --target=${TARGET} \
    --disable-posix --disable-networking \
    --disable-cxx --enable--rtemsbsp=smdk2410




By the way,I has suffer more problem before, and Here is one problem
impressed me.
I have been use binutils 2.20,and during te compilation of RTEMS:

arm-rtems4.11-gcc -B../../../../../smdk2410/lib/ -specs bsp_specs -qrtems
-mstructure-size-boundary=32 -mcpu=arm920t -mfpu=vfp -mfloat-abi=soft
-DCPU_S3C2410 -O2 -g -Wall -Wmissing-prototypes
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs
 -mstructure-size-boundary=32 -mcpu=arm920t -mfpu=vfp -mfloat-abi=soft
-DCPU_S3C2410   -o hello.exe init.o
/home/shenyouren/workspace/rtems/toolchain/bin/../lib/gcc/arm-rtems4.11/4.8.1/../../../../arm-rtems4.11/bin/ld:linkcmds.base:68:
syntax error

So I googled it,and find this:[rtems commit] bsps/arm: Use
ALIGN_WITH_INPUT<http://www.rtems.org/pipermail/rtems-devel/2013-December/005130.html>
So I guess It's because of the version.Then I change the binutils to 2.24.
Then this problem seems not occur again for now.
The version of tools and there patches really confused me and I consider
that if we picked out the version information, there might be less
difficult.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140220/287ed845/attachment.html>


More information about the users mailing list