This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

undefined reference to `__trunctfdf2'


Hi,

Could anybody offer some advise to get rid of this linking error? What
am I missing?

 Thanks,
 Alex

 Output follows:

 /opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/bin/mips64-linux-gnu-gcc
 -fno-strict-aliasing -Wall -I include -I ../../pub/include -mips4
-march=rm9000 -nostdinc -I ../../libc/trunk/mips64-elf/include -I
/opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/lib/gcc-lib/mips64-linux-gnu/3.3-mips64linux-031001/include
-DSTANDALONE -DPV_SOFT_MAYOR=1 -DPV_SOFT_MINOR=0 -O2 -D__ASSEMBLY__ -c
src/start.S -o obj/start.o
 /opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/bin/mips64-linux-gnu-gcc
-fno-strict-aliasing -Wall -I include -I ../../pub/include -mips4
-march=rm9000 -nostdinc -I ../../libc/trunk/mips64-elf/include -I
/opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/lib/gcc-lib/mips64-linux-gnu/3.3-mips64linux-031001/include
-DSTANDALONE -DPV_SOFT_MAYOR=1 -DPV_SOFT_MINOR=0 -O2 -c src/pvmain.c
-o obj/pvmain.o
 /opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/bin/mips64-linux-gnu-gcc
 obj/start.o obj/pvmain.o -Llib -EB -N -G0 -nostdlib -static
-Wl,-Ttext=0x81000000 -Wl,-Map,pv1000_p1.map -lpvos -lpveth
-L../../pub/lib -L../../libc/trunk/mips64-elf/lib -lc
-L../../libc/trunk/build/mips64-elf/lib/ -lnosys -Wl,-t  -o
pv1000_p1.elf
 ../../libc/trunk/mips64-elf/lib/libc.a(closer.o): In function `_close_r':
 /tftpboot/pv-rootfs/usr/src/repository/pktvsn/libc/trunk/build/mips64-elf/newlib/libc/reent/../../../../../src/newlib/libc/reent/closer.c:53:
_close is not implemented and will always fail
 ../../libc/trunk/mips64-elf/lib/libc.a(fstatr.o): In function `_fstat_r':
 /tftpboot/pv-rootfs/usr/src/repository/pktvsn/libc/trunk/build/mips64-elf/newlib/libc/reent/../../../../../src/newlib/libc/reent/fstatr.c:62:
_fstat is not implemented and will always fail
 ../../libc/trunk/mips64-elf/lib/libc.a(makebuf.o): In function `__smakebuf':
 /tftpboot/pv-rootfs/usr/src/repository/pktvsn/libc/trunk/build/mips64-elf/newlib/libc/stdio/../../../../../src/newlib/libc/stdio/makebuf.c:96:
isatty is not implemented and will always fail
 ../../libc/trunk/mips64-elf/lib/libc.a(lseekr.o): In function `_lseek_r':
 /tftpboot/pv-rootfs/usr/src/repository/pktvsn/libc/trunk/build/mips64-elf/newlib/libc/reent/../../../../../src/newlib/libc/reent/lseekr.c:58:
_lseek is not implemented and will always fail
 ../../libc/trunk/mips64-elf/lib/libc.a(readr.o): In function `_read_r':
 /tftpboot/pv-rootfs/usr/src/repository/pktvsn/libc/trunk/build/mips64-elf/newlib/libc/reent/../../../../../src/newlib/libc/reent/readr.c:58:
_read is not implemented and will always fail
 ../../libc/trunk/mips64-elf/lib/libc.a(writer.o): In function `_write_r':
 /tftpboot/pv-rootfs/usr/src/repository/pktvsn/libc/trunk/build/mips64-elf/newlib/libc/reent/../../../../../src/newlib/libc/reent/writer.c:58:
_write is not implemented and will always fail
 ../../libc/trunk/mips64-elf/lib/libc.a(vfprintf.o): In function `_vfprintf_r':
 /tftpboot/pv-rootfs/usr/src/repository/pktvsn/libc/trunk/build/mips64-elf/newlib/libc/stdio/../../../../../src/newlib/libc/stdio/vfprintf.c:815:
undefined reference to `__trunctfdf2'
 /opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/lib/gcc-lib/mips64-linux-gnu/3.3-mips64linux-031001/../../../../mips64-linux-gnu/bin/ld:
link errors found, deleting executable `pv1000_p1.elf'
 /opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/lib/gcc-lib/mips64-linux-gnu/3.3-mips64linux-031001/../../../../mips64-linux-gnu/bin/ld:
mode elf32btsmipn32
 obj/start.o
 obj/pvmain.o
 (../../pub/lib/libpvos.a)pvintr.o
 (../../pub/lib/libpvos.a)pvirq.o
 (../../pub/lib/libpvos.a)pvtraps.o
 (../../pub/lib/libpvos.a)pvuart.o
 (../../pub/lib/libpvos.a)pvirqasm.o
 (../../pub/lib/libpvos.a)pventry.o
 (../../pub/lib/libpveth.a)pveth_dev.o
 (../../pub/lib/libpveth.a)pveth_high.o
 (../../pub/lib/libpveth.a)pveth_low.o
 (../../pub/lib/libpveth.a)pveth_mdio.o
 (../../libc/trunk/mips64-elf/lib/libc.a)fprintf.o
 (../../libc/trunk/mips64-elf/lib/libc.a)impure.o
 (../../libc/trunk/mips64-elf/lib/libc.a)malloc.o
 (../../libc/trunk/mips64-elf/lib/libc.a)mallocr.o
 (../../libc/trunk/mips64-elf/lib/libc.a)mlock.o
 (../../libc/trunk/mips64-elf/lib/libc.a)sbrkr.o
 (../../libc/trunk/mips64-elf/lib/libc.a)sprintf.o
 (../../libc/trunk/mips64-elf/lib/libc.a)strcpy.o
 (../../libc/trunk/mips64-elf/lib/libc.a)vfprintf.o
 (../../libc/trunk/mips64-elf/lib/libc.a)wcrtomb.o
 (../../libc/trunk/mips64-elf/lib/libc.a)wcsrtombs.o
 (../../libc/trunk/mips64-elf/lib/libc.a)wctomb_r.o
 (../../libc/trunk/mips64-elf/lib/libc.a)wsetup.o
 (../../libc/trunk/mips64-elf/lib/libc.a)dtoa.o
 (../../libc/trunk/mips64-elf/lib/libc.a)fflush.o
 (../../libc/trunk/mips64-elf/lib/libc.a)findfp.o
 (../../libc/trunk/mips64-elf/lib/libc.a)freer.o
 (../../libc/trunk/mips64-elf/lib/libc.a)fvwrite.o
 (../../libc/trunk/mips64-elf/lib/libc.a)fwalk.o
 (../../libc/trunk/mips64-elf/lib/libc.a)locale.o
 (../../libc/trunk/mips64-elf/lib/libc.a)makebuf.o
 (../../libc/trunk/mips64-elf/lib/libc.a)memchr.o
 (../../libc/trunk/mips64-elf/lib/libc.a)memcpy.o
 (../../libc/trunk/mips64-elf/lib/libc.a)memmove.o
 (../../libc/trunk/mips64-elf/lib/libc.a)memset.o
 (../../libc/trunk/mips64-elf/lib/libc.a)mprec.o
 (../../libc/trunk/mips64-elf/lib/libc.a)reallocr.o
 (../../libc/trunk/mips64-elf/lib/libc.a)reent.o
 (../../libc/trunk/mips64-elf/lib/libc.a)s_isinf.o
 (../../libc/trunk/mips64-elf/lib/libc.a)s_isnan.o
 (../../libc/trunk/mips64-elf/lib/libc.a)stdio.o
 (../../libc/trunk/mips64-elf/lib/libc.a)strcmp.o
 (../../libc/trunk/mips64-elf/lib/libc.a)strlen.o
 (../../libc/trunk/mips64-elf/lib/libc.a)writer.o
 (../../libc/trunk/mips64-elf/lib/libc.a)callocr.o
 (../../libc/trunk/mips64-elf/lib/libc.a)closer.o
 (../../libc/trunk/mips64-elf/lib/libc.a)fclose.o
 (../../libc/trunk/mips64-elf/lib/libc.a)fstatr.o
 (../../libc/trunk/mips64-elf/lib/libc.a)lseekr.o
 (../../libc/trunk/mips64-elf/lib/libc.a)readr.o
 (../../libc/trunk/build/mips64-elf/lib//libnosys.a)close.o
 (../../libc/trunk/build/mips64-elf/lib//libnosys.a)fstat.o
 (../../libc/trunk/build/mips64-elf/lib//libnosys.a)isatty.o
 (../../libc/trunk/build/mips64-elf/lib//libnosys.a)lseek.o
 (../../libc/trunk/build/mips64-elf/lib//libnosys.a)read.o
 (../../libc/trunk/build/mips64-elf/lib//libnosys.a)sbrk.o
 (../../libc/trunk/build/mips64-elf/lib//libnosys.a)write.o
 collect2: ld returned 1 exit status
 make: *** [pv1000_p1] Error 1

 Using,

 mips64-linux-gnu-gcc (GCC) 3.3-mips64linux-031001
 Copyright (C) 2002 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 and newlib 1.14.0 configured with

 ../src/configure --host=i686-pc-linux-gnulibc2.2 --target=mips64-elf
--prefix=../../


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]