Build failure on SH

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Apr 29 07:49:19 UTC 2014


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?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list