<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,
<br>
<br>
I'm building rtems 4.11 on Ubuntu 12.04 (precise) 64-bit for the powerpc mvme5500. I have built and installed the tools successfully:<br>
<br>
ls /opt/rtems-4.11/bin/<br>
powerpc-rtems4.11-addr2line* powerpc-rtems4.11-gdb*<br>
powerpc-rtems4.11-ar* powerpc-rtems4.11-gprof*<br>
powerpc-rtems4.11-as* powerpc-rtems4.11-ld*<br>
powerpc-rtems4.11-c++* powerpc-rtems4.11-ld.bfd*<br>
powerpc-rtems4.11-c++filt* powerpc-rtems4.11-nm*<br>
powerpc-rtems4.11-cpp* powerpc-rtems4.11-objcopy*<br>
powerpc-rtems4.11-elfedit* powerpc-rtems4.11-objdump*<br>
powerpc-rtems4.11-g++* powerpc-rtems4.11-ranlib*<br>
powerpc-rtems4.11-gcc* powerpc-rtems4.11-readelf*<br>
powerpc-rtems4.11-gcc-4.8.1* powerpc-rtems4.11-run*<br>
powerpc-rtems4.11-gcc-ar* powerpc-rtems4.11-size*<br>
powerpc-rtems4.11-gcc-nm* powerpc-rtems4.11-strings*<br>
powerpc-rtems4.11-gcc-ranlib* powerpc-rtems4.11-strip*<br>
powerpc-rtems4.11-gcov*<br>
<br>
and now building rtems. I got the source from git and did the following:<br>
<br>
<pre>export PATH=/opt/rtems-4.11/bin:$PATH
./bootstrap
cd ..
mkdir b-sis
cd b-sis
../rtems/configure --target=powerpc-rtems4.11 --enable-rtemsbsp=mvme5500 --enable-tests=samples --disable-posix<br>make<br><br>on make I get the following errors: <br>powerpc-rtems4.11-gcc -B../../../../../mvme5500/lib/ -specs bsp_specs -qrtems -mcpu=7450 -mtune=7450 -Dmpc7455 -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -mcpu=7450 -mtune=7450 -Dmpc7455 -o hello.exe init.o <br>/opt/rtems-4.11/lib/gcc/powerpc-rtems4.11/4.8.1/../../../../powerpc-rtems4.11/lib/m7400/libc.a(lib_a-fflush.o): In function `_fflush_r':<br>/home/nadgru/tools/b-gcc/powerpc-rtems4.11/m7400/newlib/libc/stdio/../../../../../../gcc-4.8.1/newlib/libc/stdio/fflush.c:229: undefined reference to `pthread_setcancelstate'<br>/home/nadgru/tools/b-gcc/powerpc-rtems4.11/m7400/newlib/libc/stdio/../../../../../../gcc-4.8.1/newlib/libc/stdio/fflush.c:231: undefined reference to `pthread_setcancelstate'<br>/opt/rtems-4.11/lib/gcc/powerpc-rtems4.11/4.8.1/../../../../powerpc-rtems4.11/lib/m7400/libc.a(lib_a-findfp.o): In function `__sfp':<br>/home/nadgru/tools/b-gcc/powerpc-rtems4.11/m7400/newlib/libc/stdio/../../../../../../gcc-4.8.1/newlib/libc/stdio/findfp.c:111: undefined reference to `pthread_setcancelstate'<br>/home/nadgru/tools/b-gcc/powerpc-rtems4.11/m7400/newlib/libc/stdio/../../../../../../gcc-4.8.1/newlib/libc/stdio/findfp.c:135: undefined reference to `pthread_setcancelstate'<br>/home/nadgru/tools/b-gcc/powerpc-rtems4.11/m7400/newlib/libc/stdio/../../../../../../gcc-4.8.1/newlib/libc/stdio/findfp.c:124: undefined reference to `pthread_setcancelstate'<br>/opt/rtems-4.11/lib/gcc/powerpc-rtems4.11/4.8.1/../../../../powerpc-rtems4.11/lib/m7400/libc.a(lib_a-fwrite.o):/home/nadgru/tools/b-gcc/powerpc-rtems4.11/m7400/newlib/libc/stdio/../../../../../../gcc-4.8.1/newlib/libc/stdio/fwrite.c:122: more undefined references to `pthread_setcancelstate' follow<br>collect2: error: ld returned 1 exit status<br>make[6]: *** [hello.exe] Error 1<br>make[6]: Leaving directory `/home/nadgru/tools/b-sis/powerpc-rtems4.11/c/mvme5500/testsuites/samples/hello'<br>make[5]: *** [all-recursive] Error 1<br>make[5]: Leaving directory `/home/nadgru/tools/b-sis/powerpc-rtems4.11/c/mvme5500/testsuites/samples'<br>make[4]: *** [all] Error 2<br>make[4]: Leaving directory `/home/nadgru/tools/b-sis/powerpc-rtems4.11/c/mvme5500/testsuites/samples'<br>make[3]: *** [all-recursive] Error 1<br>make[3]: Leaving directory `/home/nadgru/tools/b-sis/powerpc-rtems4.11/c/mvme5500/testsuites'<br>make[2]: *** [all-recursive] Error 1<br>make[2]: Leaving directory `/home/nadgru/tools/b-sis/powerpc-rtems4.11/c/mvme5500'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/nadgru/tools/b-sis/powerpc-rtems4.11/c'<br>make: *** [all-recursive] Error 1<br>nadgru@lx-test:~/tools/b-sis$ <br><br>Has anyone encountered this? I tried adding --enable-posix, but that didn't help. <br><br>Thank you. <br>Nadia. <br></pre>
<br>
</div>
</body>
</html>