several missing references ????

Henri henri@broadbandnetdevices.com
Tue Nov 5 10:26:00 GMT 2002


Hi All,

I get several missing references while trying to link to a newlib library as 
per the README . Does anyone know what library name they would be in so I can 
add a path to that or those files 
the gcc (3.2) is a recently build cross compiler for a target = mipsisa32-elf 
the host is on redhat 7.2 


thanks

Henri 

[henri@localhost temporaire]$ mipsisa32-elf-gcc -nostdlib $tlib/crt0.o 
hello.c -I$tinc -L$tlib -lc -lm -lgcc
cc1: warning: changing search order for system directory 
"/home/henri/tools/mipsisa32-elf/include"
cc1: warning:   as it has already been specified as a non-system directory
hello.c: In function `main':
hello.c:3: warning: return type of `main' is not `int'
/home/henri/tools/mipsisa32-elf/lib/crt0.o: In function `zerobss':
../../../../newlib-1.10.0/libgloss/mips/crt0.S:131: undefined reference to 
`get_mem_info'
../../../../newlib-1.10.0/libgloss/mips/crt0.S:135: undefined reference to 
`__stack'
../../../../newlib-1.10.0/libgloss/mips/crt0.S:135: undefined reference to 
`__stack'
/home/henri/tools/mipsisa32-elf/lib/crt0.o: In function `init':
../../../../newlib-1.10.0/libgloss/mips/crt0.S:171: undefined reference to 
`hardware_init_hook'
../../../../newlib-1.10.0/libgloss/mips/crt0.S:171: undefined reference to 
`hardware_init_hook'
../../../../newlib-1.10.0/libgloss/mips/crt0.S:177: undefined reference to 
`software_init_hook'
../../../../newlib-1.10.0/libgloss/mips/crt0.S:177: undefined reference to 
`software_init_hook'
../../../../newlib-1.10.0/libgloss/mips/crt0.S:183: undefined reference to 
`_fini'
../../../../newlib-1.10.0/libgloss/mips/crt0.S:183: undefined reference to 
`_fini'
../../../../newlib-1.10.0/libgloss/mips/crt0.S:196: undefined reference to 
`_init'
/home/henri/tools/mipsisa32-elf/lib/libc.a(sbrkr.o): In function `_sbrk_r':
/home/henri/temporaire/build-newlib/mipsisa32-elf/newlib/libc/reent/../../../../../newlib-1.10.0/newlib/libc/reent/sbrkr.c(.text+0x14): 
undefined reference to `sbrk'
/home/henri/tools/mipsisa32-elf/lib/libc.a(makebuf.o): In function 
`__smakebuf':
/home/henri/temporaire/build-newlib/mipsisa32-elf/newlib/libc/stdio/../../../../../newlib-1.10.0/newlib/libc/stdio/makebuf.c(.text+0xd4): 
undefined reference to `isatty'
/home/henri/tools/mipsisa32-elf/lib/libc.a(writer.o): In function `_write_r':
/home/henri/temporaire/build-newlib/mipsisa32-elf/newlib/libc/reent/../../../../../newlib-1.10.0/newlib/libc/reent/writer.c(.text+0x20): 
undefined reference to `write'
/home/henri/tools/mipsisa32-elf/lib/libc.a(closer.o): In function `_close_r':
/home/henri/temporaire/build-newlib/mipsisa32-elf/newlib/libc/reent/../../../../../newlib-1.10.0/newlib/libc/reent/closer.c(.text+0x14): 
undefined reference to `close'
/home/henri/tools/mipsisa32-elf/lib/libc.a(fstatr.o): In function `_fstat_r':
/home/henri/temporaire/build-newlib/mipsisa32-elf/newlib/libc/reent/../../../../../newlib-1.10.0/newlib/libc/reent/fstatr.c(.text+0x1c): 
undefined reference to `fstat'
/home/henri/tools/mipsisa32-elf/lib/libc.a(lseekr.o): In function `_lseek_r':
/home/henri/temporaire/build-newlib/mipsisa32-elf/newlib/libc/reent/../../../../../newlib-1.10.0/newlib/libc/reent/lseekr.c(.text+0x20): 
undefined reference to `lseek'
/home/henri/tools/mipsisa32-elf/lib/libc.a(readr.o): In function `_read_r':
/home/henri/temporaire/build-newlib/mipsisa32-elf/newlib/libc/reent/../../../../../newlib-1.10.0/newlib/libc/reent/readr.c(.text+0x20): 
undefined reference to `read'
collect2: ld returned 1 exit status



More information about the Newlib mailing list