Some problem during the compilation of RTEMS.

Gedare Bloom gedare at rtems.org
Thu Feb 20 16:14:02 UTC 2014


RTEMS compilation is dependent on the specific versions of gcc,
binutils, and newlib. For anything that says problems with "pthread",
the problem is likely that your newlib is out-dated.

You might be interested to try the RSB tool for compiling the tools
and your BSP. RSB is found at http://wiki.rtems.org/wiki/index.php/RSB

Good luck,
Gedare

On Wed, Feb 19, 2014 at 9:21 PM, Youren Shen <shenyouren at gmail.com> wrote:
> 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
> 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.
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>




More information about the users mailing list