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

See the CrossGCC FAQ for lots more information.


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

Arm Port of Newlib


Hello Everyone,
   I am trying to use newlib for the arm processor. I am using binutils
2.11.93, gcc.4.0.0 and newlib 1.13.
The GCC was configured as follows:

../gcc-4.0.0/configure --target=arm-elf --prefix=/tmp/opt/arm
--with-local-prefix=/tmp/opt/arm/arm --with-gnu-as --with-gnu-ld
--with-newlib --enable-languages="c"




I just compiled this simple program below:

#include <stdio.h>
int main(void)
{
  printf("Hello World\n");
  return 0;
}

I get these errors (pasted below). I think it is not able to find any
memory routines. My aim is to get a standard benchmark through this
compiler and run it on a simulator. What am I missing here?

Any form of help is highly appreciated.


Thanks,

Balaji V. Iyer.

PS. Please CC me when responding since I am not a member of this mailing
list.

/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(callocr.o):
In function `init_mparams':
/tmp/b-b/arm-elf/newlib/libc/stdlib/../../../../../gcc-4.0.0/newlib/libc/stdlib/mallocr.c:2395:
undefined reference to `sysconf'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(callocr.o):
In function `sys_trim':
/tmp/b-b/arm-elf/newlib/libc/stdlib/../../../../../gcc-4.0.0/newlib/libc/stdlib/mallocr.c:3448:
undefined reference to `munmap'
/tmp/b-b/arm-elf/newlib/libc/stdlib/../../../../../gcc-4.0.0/newlib/libc/stdlib/mallocr.c:3505:
undefined reference to `munmap'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(callocr.o):
In function `free':
/tmp/b-b/arm-elf/newlib/libc/stdlib/../../../../../gcc-4.0.0/newlib/libc/stdlib/mallocr.c:4098:
undefined reference to `munmap'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(callocr.o):
In function `malloc':
/tmp/b-b/arm-elf/newlib/libc/stdlib/../../../../../gcc-4.0.0/newlib/libc/stdlib/mallocr.c:3053:
undefined reference to `mmap'
/tmp/b-b/arm-elf/newlib/libc/stdlib/../../../../../gcc-4.0.0/newlib/libc/stdlib/mallocr.c:3337:
undefined reference to `mmap'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(findfp.o):
In function `__sfmoreglue':
/tmp/b-b/arm-elf/newlib/libc/stdio/../../../../../gcc-4.0.0/newlib/libc/stdio/findfp.c:71:
undefined reference to `_malloc_r'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(fvwrite.o):
In function `__sfvwrite':
/tmp/b-b/arm-elf/newlib/libc/stdio/../../../../../gcc-4.0.0/newlib/libc/stdio/fvwrite.c:128:
undefined reference to `_realloc_r'
/tmp/b-b/arm-elf/newlib/libc/stdio/../../../../../gcc-4.0.0/newlib/libc/stdio/fvwrite.c:134:
undefined reference to `_free_r'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(vfprintf.o):
In function `_vfprintf_r':
/tmp/b-b/arm-elf/newlib/libc/stdio/../../../../../gcc-4.0.0/newlib/libc/stdio/vfprintf.c:1209:
undefined reference to `_free_r'
/tmp/b-b/arm-elf/newlib/libc/stdio/../../../../../gcc-4.0.0/newlib/libc/stdio/vfprintf.c:977:
undefined reference to `_malloc_r'
/tmp/b-b/arm-elf/newlib/libc/stdio/../../../../../gcc-4.0.0/newlib/libc/stdio/vfprintf.c:1217:
undefined reference to `_free_r'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(wsetup.o):
In function `__swsetup':
/tmp/b-b/arm-elf/newlib/libc/stdio/../../../../../gcc-4.0.0/newlib/libc/stdio/wsetup.c:51:
undefined reference to `_free_r'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(fclose.o):
In function `_fclose_r':
/tmp/b-b/arm-elf/newlib/libc/stdio/../../../../../gcc-4.0.0/newlib/libc/stdio/fclose.c:95:
undefined reference to `_free_r'
/tmp/b-b/arm-elf/newlib/libc/stdio/../../../../../gcc-4.0.0/newlib/libc/stdio/fclose.c:97:
undefined reference to `_free_r'
/tmp/b-b/arm-elf/newlib/libc/stdio/../../../../../gcc-4.0.0/newlib/libc/stdio/fclose.c:93:
undefined reference to `_free_r'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(makebuf.o):
In function `__smakebuf':
/tmp/b-b/arm-elf/newlib/libc/stdio/../../../../../gcc-4.0.0/newlib/libc/stdio/makebuf.c:84:
undefined reference to `_malloc_r'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(mprec.o):
In function `_Balloc':
/tmp/b-b/arm-elf/newlib/libc/stdlib/../../../../../gcc-4.0.0/newlib/libc/stdlib/mprec.c:102:
undefined reference to `_calloc_r'
/tmp/b-b/arm-elf/newlib/libc/stdlib/../../../../../gcc-4.0.0/newlib/libc/stdlib/mprec.c:119:
undefined reference to `_calloc_r'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(reent.o):
In function `cleanup_glue':
/tmp/b-b/arm-elf/newlib/libc/reent/../../../../../gcc-4.0.0/newlib/libc/reent/reent.c:41:
undefined reference to `_free_r'
/tmp/opt/arm/lib/gcc/arm-elf/4.0.0/../../../../arm-elf/lib/libc.a(reent.o):
In function `_reclaim_reent':
/tmp/b-b/arm-elf/newlib/libc/reent/../../../../../gcc-4.0.0/newlib/libc/reent/reent.c:66:
undefined reference to `_free_r'
/tmp/b-b/arm-elf/newlib/libc/reent/../../../../../gcc-4.0.0/newlib/libc/reent/reent.c:70:
undefined reference to `_free_r'
/tmp/b-b/arm-elf/newlib/libc/reent/../../../../../gcc-4.0.0/newlib/libc/reent/reent.c:95:
undefined reference to `_free_r'
/tmp/b-b/arm-elf/newlib/libc/reent/../../../../../gcc-4.0.0/newlib/libc/reent/reent.c:101:
undefined reference to `_free_r'
collect2: ld returned 1 exit status



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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