From mboxrd@z Thu Jan 1 00:00:00 1970 From: moretony@163.net To: crossgcc@sourceware.cygnus.com Subject: please help me. ;-) Date: Wed, 25 Oct 2000 03:26:00 -0000 Message-id: <39F6B529.01439@bjapp6.163.net> X-SW-Source: 2000-10/msg00105.html Hello, everyone! Now I am building the mips64vr4300-elf GNU tools, the steps blow: 1. first build cross binutils tools, version 2.10; 2. then the cross gcc tools, using 20000313 snapshot with option --with-newlib; 3. installing the newlib 1.8.2 as the C library. the platform is redhat linux 6.2 on i686. It seems OK when I apply the above steps, but unfortunately, when I compile a C source file, the error message blow shows to me. It really pains me, I think that the reason is when I compile the newlib as the C library, some function entries are not compiled successfully and are ignored by cross gcc during building. If it is the true reason, how could I compile a C file and execute the output file in mips target board? I am now have no way and feel sad, ;-), wish to get assistant, thanks! The error message: /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/../../../../mips64vr4300-elf/lib/crt0.o: In function `zerobss': ../../../../newlib-1.8.2/libgloss/mips/crt0.S:126: undefined reference to `get_mem_info' ../../../../newlib-1.8.2/libgloss/mips/crt0.S:130: undefined reference to `__stack' ../../../../newlib-1.8.2/libgloss/mips/crt0.S:130: undefined reference to `__stack' /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/../../../../mips64vr4300-elf/lib/crt0.o: In function `init': ../../../../newlib-1.8.2/libgloss/mips/crt0.S:166: undefined reference to `hardware_init_hook' ../../../../newlib-1.8.2/libgloss/mips/crt0.S:166: undefined reference to `hardware_init_hook' ../../../../newlib-1.8.2/libgloss/mips/crt0.S:172: undefined reference to `software_init_hook' ../../../../newlib-1.8.2/libgloss/mips/crt0.S:172: undefined reference to `software_init_hook' ../../../../newlib-1.8.2/libgloss/mips/crt0.S:179: undefined reference to `atexit' ../../../../newlib-1.8.2/libgloss/mips/crt0.S:196: undefined reference to `exit' /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/libgcc.a(__main.o): In function `__do_global_ctors': ../../egcs-20000313/gcc/libgcc2.c(.text+0x108): undefined reference to `atexit' /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/libgcc.a(frame.o): In function `end_fde_sort': ../../egcs-20000313/gcc/frame.c(.text+0x194): undefined reference to `abort' ../../egcs-20000313/gcc/frame.c(.text+0x2f0): undefined reference to `abort' ../../egcs-20000313/gcc/frame.c(.text+0x4d4): undefined reference to `free' /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/libgcc.a(frame.o): In function `frame_init': ../../egcs-20000313/gcc/frame.c(.text+0x870): undefined reference to `malloc' ../../egcs-20000313/gcc/frame.c(.text+0x880): undefined reference to `malloc' /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/libgcc.a(frame.o): In function `extract_cie_info': ../../egcs-20000313/gcc/frame.c(.text+0xae4): undefined reference to `strcmp' ../../egcs-20000313/gcc/frame.c(.text+0xaf8): undefined reference to `strcmp' ../../egcs-20000313/gcc/frame.c(.text+0xb18): undefined reference to `strlen' ../../egcs-20000313/gcc/frame.c(.text+0xb2c): undefined reference to `strcmp' /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/libgcc.a(frame.o): In function `execute_cfa_insn': ../../egcs-20000313/gcc/frame.c(.text+0xe00): undefined reference to `malloc' ../../egcs-20000313/gcc/frame.c(.text+0xfbc): undefined reference to `free' ../../egcs-20000313/gcc/frame.c(.text+0x1098): undefined reference to `abort' /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/libgcc.a(frame.o): In function `__register_frame': ../../egcs-20000313/gcc/frame.c(.text+0x10f8): undefined reference to `malloc' /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/libgcc.a(frame.o): In function `__register_frame_table': ../../egcs-20000313/gcc/frame.c(.text+0x1158): undefined reference to `malloc' /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/libgcc.a(frame.o): In function `__deregister_frame_info': ../../egcs-20000313/gcc/frame.c(.text+0x11c4): undefined reference to `free' ../../egcs-20000313/gcc/frame.c(.text+0x11e8): undefined reference to `abort' /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/libgcc.a(frame.o): In function `__deregister_frame': ../../egcs-20000313/gcc/frame.c(.text+0x1200): undefined reference to `free' /usr/local/mips/H-i686-pc-linux-gnu/lib/gcc-lib/mips64vr4300-elf/2.96/libgcc.a(frame.o): In function `__frame_state_for': ../../egcs-20000313/gcc/frame.c(.text+0x126c): undefined reference to `memset' collect2: ld returned 1 exit status I am waiting eagerly for your help, thanks. More. ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com