Fail to build hello.exe sample on NetBSD for BSP MIPS jmr3904.
Steven Grunza
steven.grunza at gmail.com
Tue Aug 27 01:49:52 UTC 2013
Can you send us the commands you used to configure the tools?
On 8/26/2013 6:17 PM, Chris Johns wrote:
> Ivan Temp wrote:
>> I am trying to get a RTEMS up for MIPS on a NetBSD host.
>
> Nice.
>
>> I followed the instructions on building tools from source and finally
>> I was able to compile "f.c" and create object file with:
>>
>> VirtualNetBSD# mips-rtems4.11-gcc -v -c f.c
>>
>> I have then tried to build RTEMS for BSP jmr3904 and this is all I can
>> get after gmake:
>>
>
> Try adding --enable-posix to the configure command line.
>
> Which thread model is your RTEMS MIPs tool chain built with ?
>
> Chris
>
>> quote->>
>> gmake[3]: Leaving directory
>> `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/wrapup'
>> Making all in testsuites
>> gmake[3]: Entering directory
>> `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites'
>> Making all in samples
>> gmake[4]: Entering directory
>> `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples'
>> gmake all-recursive
>> gmake[5]: Entering directory
>> `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples'
>> Making all in hello
>> gmake[6]: Entering directory
>> `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples/hello'
>>
>> 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
>>
>> mv -f .deps/init.Tpo .deps/init.Po
>> 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
>> /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':
>> (.text+0x60): undefined reference to `pthread_setcancelstate'
>> /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':
>> (.text+0xac): undefined reference to `pthread_setcancelstate'
>> /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':
>> (.text+0x308): undefined reference to `pthread_setcancelstate'
>> /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':
>> (.text+0x324): undefined reference to `pthread_setcancelstate'
>> /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':
>> (.text+0x254): undefined reference to `pthread_setcancelstate'
>> /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
>> collect2: error: ld returned 1 exit status
>> gmake[6]: *** [hello.exe] Error 1
>> gmake[6]: Leaving directory
>> `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples/hello'
>>
>> gmake[5]: *** [all-recursive] Error 1
>> gmake[5]: Leaving directory
>> `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples'
>> gmake[4]: *** [all] Error 2
>> gmake[4]: Leaving directory
>> `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites/samples'
>> gmake[3]: *** [all-recursive] Error 1
>> gmake[3]: Leaving directory
>> `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904/testsuites'
>> gmake[2]: *** [all-recursive] Error 1
>> gmake[2]: Leaving directory
>> `/usr/rtems/archive/b-mips/mips-rtems4.11/c/jmr3904'
>> gmake[1]: *** [all-recursive] Error 1
>> gmake[1]: Leaving directory `/usr/rtems/archive/b-mips/mips-rtems4.11/c'
>> gmake: *** [all-recursive] Error 1
>>
>> end quote ->>
>>
>> I have not made any update of the toolsuite, just downloaded, patched
>> and built.
>>
>> Could you please give me a clue on what I have done wrongly?
>>
>> Regards,
>> Ivan.
>>
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-users
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
>
More information about the users
mailing list