<div dir="ltr"><div><div><div><div>Hi,<br> I am trying to get a RTEMS up for MIPS on a NetBSD host.<br> I followed the instructions on building tools from source and finally I  was able to compile "f.c" and create object file with:<br>
<br>VirtualNetBSD# mips-rtems4.11-gcc -v -c f.c<br><br> I have then tried to build RTEMS for BSP jmr3904 and this is all I can get after gmake:<br><br>quote->><br>gmake[3]: Leaving directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/wrapup'<br>
Making all in testsuites<br>gmake[3]: Entering directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites'<br>Making all in samples<br>gmake[4]: Entering directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples'<br>
gmake  all-recursive<br>gmake[5]: Entering directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples'<br>Making all in hello<br>gmake[6]: Entering directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples/hello'<br>
mips-rtems4.11-gcc
 -B../../../../../jmr3904/lib/ -specs bsp_specs -qrtems -DHAVE_CONFIG_H 
-I. -I../../../../../../../../rtems/c/src/../../testsuites/samples/hello
 -I..     -march=r3900 -Wa,-xgot -G0 -O2 -g -Wall -Wmissing-prototypes 
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT
 init.o -MD -MP -MF .deps/init.Tpo -c -o init.o 
../../../../../../../../rtems/c/src/../../testsuites/samples/hello/init.c<br>mv -f .deps/init.Tpo .deps/init.Po<br>mips-rtems4.11-gcc
 -B../../../../../jmr3904/lib/ -specs bsp_specs -qrtems -march=r3900 
-Wa,-xgot -G0 -O2 -g -Wall -Wmissing-prototypes 
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs   
 -march=r3900 -Wa,-xgot -G0   -o hello.exe init.o<br>/usr/rtems/rtems-4.11/lib/gcc/mips-rtems4.11/4.8.1/../../../../mips-rtems4.11/lib/libc.a(lib_a-puts.o): In function `_puts_r':<br>(.text+0x60): undefined reference to `pthread_setcancelstate'<br>
/usr/rtems/rtems-4.11/lib/gcc/mips-rtems4.11/4.8.1/../../../../mips-rtems4.11/lib/libc.a(lib_a-puts.o): In function `_puts_r':<br>(.text+0xac): undefined reference to `pthread_setcancelstate'<br>/usr/rtems/rtems-4.11/lib/gcc/mips-rtems4.11/4.8.1/../../../../mips-rtems4.11/lib/libc.a(lib_a-fflush.o):
 In function `_fflush_r':<br>(.text+0x308): undefined reference to `pthread_setcancelstate'<br>/usr/rtems/rtems-4.11/lib/gcc/mips-rtems4.11/4.8.1/../../../../mips-rtems4.11/lib/libc.a(lib_a-fflush.o):
 In function `_fflush_r':<br>(.text+0x324): undefined reference to `pthread_setcancelstate'<br>/usr/rtems/rtems-4.11/lib/gcc/mips-rtems4.11/4.8.1/../../../../mips-rtems4.11/lib/libc.a(lib_a-findfp.o): In function `__sfp':<br>
(.text+0x254): undefined reference to `pthread_setcancelstate'<br>/usr/rtems/rtems-4.11/lib/gcc/mips-rtems4.11/4.8.1/../../../../mips-rtems4.11/lib/libc.a(lib_a-findfp.o):(.text+0x2cc):
 more undefined references to `pthread_setcancelstate' follow<br>collect2: error: ld returned 1 exit status<br>gmake[6]: *** [hello.exe] Error 1<br>gmake[6]: Leaving directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples/hello'<br>
gmake[5]: *** [all-recursive] Error 1<br>gmake[5]: Leaving directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples'<br>gmake[4]: *** [all] Error 2<br>gmake[4]: Leaving directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples'<br>
gmake[3]: *** [all-recursive] Error 1<br>gmake[3]: Leaving directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites'<br>gmake[2]: *** [all-recursive] Error 1<br>gmake[2]: Leaving directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904'<br>
gmake[1]: *** [all-recursive] Error 1<br>gmake[1]: Leaving directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c'<br>gmake: *** [all-recursive] Error 1<br><br></div><div>end quote ->><br><br></div><div> I have not made any update of the toolsuite, just downloaded, patched and built.<br>
<br></div><div> Could you please give me a clue on what I have done wrongly?<br><br></div><div> Regards,<br></div><div> Ivan.<br></div></div></div></div></div>