[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mips ld error reports



A couple of link errors have crept in on the mips BSPs.  Hopefully
someone 
recognizes these.  This is with newlib 1.8.2 and binutils-990901.

(1) p4000: Truncation related link error.  This also happened with
newlib 1.8.1 and this binutils,
    so it is not a newlib version problem.

/usr2/tools_install/gcc-2.95.1-binutils-990901-newlib-1.8.2-1099/mips64orion-rtems/bin/mips64orion-rtems-gcc
--pipe -B../../../../../../p4600/lib/ -specs bsp_specs -qrtems -DP4000
-DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 -mcpu=4600 -G0     -g -Wall
-ansi -fasm  -O4 -fomit-frame-pointer    -c -o o-p4600/init.o
../../../../../../../rtems-current/c/src/tests/samples/hello/init.c
/usr2/tools_install/gcc-2.95.1-binutils-990901-newlib-1.8.2-1099/mips64orion-rtems/bin/mips64orion-rtems-gcc
--pipe -B../../../../../../p4600/lib/ -specs bsp_specs -qrtems -DP4000
-DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 -mcpu=4600 -G0     -g -Wall
-ansi -fasm  -O4 -fomit-frame-pointer     -o o-p4600/hello.exe 
o-p4600/init.o ../../../../../../p4600/lib/no-dpmem.rel
../../../../../../p4600/lib/no-event.rel
../../../../../../p4600/lib/no-msg.rel
../../../../../../p4600/lib/no-mp.rel
../../../../../../p4600/lib/no-part.rel
../../../../../../p4600/lib/no-signal.rel
../../../../../../p4600/lib/no-timer.rel
../../../../../../p4600/lib/no-rtmon.rel
/usr2/tools_install/gcc-2.95.1-binutils-990901-newlib-1.8.2-1099/mips64orion-rtems/mips64orion-rtems/lib/libc.a(dtoa.o):
In function `_dtoa_r':
/usr1/rtems/work/tools/build-mips64orion-tools/mips64orion-rtems/newlib/libc/stdlib/../../../../../src/newlib/libc/stdlib/dtoa.c:348:
relocation truncated to fit: R_MIPS_LITERAL no symbol
/usr1/rtems/work/tools/build-mips64orion-tools/mips64orion-rtems/newlib/libc/stdlib/../../../../../src/newlib/libc/stdlib/dtoa.c:348:
relocation truncated to fit: R_MIPS_LITERAL no symbol
/usr1/rtems/work/tools/build-mips64orion-tools/mips64orion-rtems/newlib/libc/stdlib/../../../../../src/newlib/libc/stdlib/dtoa.c:348:
relocation truncated to fit: R_MIPS_LITERAL no symbol
collect2: ld returned 1 exit status


(2) p4650: I suspect we are just picking up the wrong version of at
    least libgcc.a and libc.a.  Something must not be consistent.

/usr2/tools_install/gcc-2.95.1-binutils-990901-newlib-1.8.2-1099/mips64orion-rtems/bin/mips64orion-rtems-gcc
--pipe -B../../../../../../p4650/lib/ -specs bsp_specs -qrtems -DP4000
-DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 -m4650 -G0     -g -Wall -ansi
-fasm  -O4 -fomit-frame-pointer    -c -o o-p4650/init.o
../../../../../../../rtems-current/c/src/tests/samples/hello/init.c
/usr2/tools_install/gcc-2.95.1-binutils-990901-newlib-1.8.2-1099/mips64orion-rtems/bin/mips64orion-rtems-gcc
--pipe -B../../../../../../p4650/lib/ -specs bsp_specs -qrtems -DP4000
-DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 -m4650 -G0     -g -Wall -ansi
-fasm  -O4 -fomit-frame-pointer     -o o-p4650/hello.exe  o-p4650/init.o
../../../../../../p4650/lib/no-dpmem.rel
../../../../../../p4650/lib/no-event.rel
../../../../../../p4650/lib/no-msg.rel
../../../../../../p4650/lib/no-mp.rel
../../../../../../p4650/lib/no-part.rel
../../../../../../p4650/lib/no-signal.rel
../../../../../../p4650/lib/no-timer.rel
../../../../../../p4650/lib/no-rtmon.rel
/usr2/tools_install/gcc-2.95.1-binutils-990901-newlib-1.8.2-1099/mips64orion-rtems/mips64orion-rtems/bin/ld:
_exit.o: ISA mismatch (-mips1) with previous modules (-mips3)
Bad value: failed to merge target specific data of file
/usr2/tools_install/gcc-2.95.1-binutils-990901-newlib-1.8.2-1099/mips64orion-rtems/lib/gcc-lib/mips64orion-rtems/2.95.1/single/libgcc.a(_exit.o)
/usr2/tools_install/gcc-2.95.1-binutils-990901-newlib-1.8.2-1099/mips64orion-rtems/mips64orion-rtems/bin/ld:
__main.o: ISA mismatch (-mips1) with previous modules (-mips3)
Bad value: failed to merge target specific data of file
/usr2/tools_install/gcc-2.95.1-binutils-990901-newlib-1.8.2-1099/mips64orion-rtems/lib/gcc-lib/mips64orion-rtems/2.95.1/single/libgcc.a(__main.o)




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