Build failure on SH

Joel Sherrill joel.sherrill at OARcorp.com
Tue Apr 29 18:38:19 UTC 2014


On 4/29/2014 2:49 AM, Sebastian Huber wrote:
> Hello,
>
> I have a linker error during the build of the SH BSPs:
>
> sh-rtems4.11-gcc --pipe -B../../../../.././lib/ -B../../../../.././gensh4/lib/ 
> -specs bsp_specs -qrtems -DPACKAGE_NAME=\"rtems-c-src-lib-libcpu-sh\" 
> -DPACKAGE_TARNAME=\"rtems-c-src-lib-libcpu-sh\" -DPACKAGE_VERSION=\"4.10.99.0\" 
> -DPACKAGE_STRING=\"rtems-c-src-lib-libcpu-sh\ 4.10.99.0\" 
> -DPACKAGE_BUGREPORT=\"http://www.rtems.org/bugzilla\" -DPACKAGE_URL=\"\" -I. 
> -I/home/sh/git-rtems-upstream/c/src/lib/libcpu/sh  -isystem 
> ../../../../.././gensh4/lib/include   -m4 -ml -O2 -g  -Wall 
> -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes 
> -Wnested-externs -MT sh7750/clock/sh7750_clock_rel-ckinit.o -MD -MP -MF 
> sh7750/clock/.deps/sh7750_clock_rel-ckinit.Tpo -c -o 
> sh7750/clock/sh7750_clock_rel-ckinit.o `test -f 'sh7750/clock/ckinit.c' || echo 
> '/home/sh/git-rtems-upstream/c/src/lib/libcpu/sh/'`sh7750/clock/ckinit.c
> /home/sh/git-rtems-upstream/c/src/lib/libcpu/sh/sh7750/clock/ckinit.c:107:1: 
> warning: no previous prototype for 'Install_clock' [-Wmissing-prototypes]
>   Install_clock(rtems_isr_entry clock_isr)
>   ^
> /home/sh/git-rtems-upstream/c/src/lib/libcpu/sh/sh7750/clock/ckinit.c:267:1: 
> warning: no previous prototype for 'Clock_initialize' [-Wmissing-prototypes]
>   Clock_initialize(rtems_device_major_number major,
>   ^
> mv -f sh7750/clock/.deps/sh7750_clock_rel-ckinit.Tpo 
> sh7750/clock/.deps/sh7750_clock_rel-ckinit.Po
> sh-rtems4.11-gcc --pipe -B../../../../.././lib/ -B../../../../.././gensh4/lib/ 
> -specs bsp_specs -qrtems  -m4 -ml -O2 -g  -Wall -Wmissing-prototypes 
> -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs 
> -qnolinkcmds -nostdlib -r  -o sh7750/clock.rel 
> sh7750/clock/sh7750_clock_rel-ckinit.o
> /opt/rtems-4.11/lib64/gcc/sh-rtems4.11/4.8.3/../../../../sh-rtems4.11/bin/ld: 
> sh7750/clock/sh7750_clock_rel-ckinit.o: compiled for a little endian system and 
> target is big endian
> /opt/rtems-4.11/lib64/gcc/sh-rtems4.11/4.8.3/../../../../sh-rtems4.11/bin/ld: 
> sh7750/clock/sh7750_clock_rel-ckinit.o: uses instructions which are 
> incompatible with instructions used in previous modules
> /opt/rtems-4.11/lib64/gcc/sh-rtems4.11/4.8.3/../../../../sh-rtems4.11/bin/ld: 
> failed to merge target specific data of file sh7750/clock/sh7750_clock_rel-ckinit.o
> collect2: error: ld returned 1 exit status
> make: *** [sh7750/clock.rel] Error 1
>
> This looks like a tool chain bug, do you see this also?
>
I see this but hadn't had a chance to investigate. Not sure what is
causing it.
Likely the .rel's aren't being built correctly.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the devel mailing list