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

<div><br></div><div><div>/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</div>
<div>collect2: error: ld returned 1 exit status</div></div><div><br></div><div><br></div><div><b>So, I would like to know, which step probably causing this problem so I can continue my job.</b></div><div><br></div><div>Here is my configure of my Tools and RTEMS.</div>
<div><br></div>
<div><div>../binutils-2.24/configure --target=${TARGET} \</div><div>    --prefix=/home/shenyouren/workspace/rtems/toolchain</div></div><div><br></div><div>../gcc-4.8.1/configure --target=${TARGET} \</div><div>    --with-gnu-as --with-newlib --verbose \</div>
<div>    --enable-threads --enable-languages="c,c++" \</div><div>    --prefix=/home/shenyouren/workspace/rtems/toolchain<br></div><div><br></div><div>../rtems/configure --target=${TARGET} \<br></div><div><div>    --disable-posix --disable-networking \</div>
<div>    --disable-cxx --enable--rtemsbsp=smdk2410</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>By the way,I has suffer more problem before, and Here is one problem impressed me.</div><div>I have been use binutils 2.20,and during te compilation of RTEMS:</div>
<div><br></div><div><div>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</div>
</div><div><div>/home/shenyouren/workspace/rtems/toolchain/bin/../lib/gcc/arm-rtems4.11/4.8.1/../../../../arm-rtems4.11/bin/ld:linkcmds.base:68: </div><div>syntax error</div></div><div><br></div><div>So I googled it,and find this:<a href="http://www.rtems.org/pipermail/rtems-devel/2013-December/005130.html">[rtems commit] bsps/arm: Use ALIGN_WITH_INPUT</a></div>
<div>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.</div><div>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.</div>
<div><br></div><div>Thanks.</div>
</div>