bug-gnu-utils
[Top][All Lists]
Advanced

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

linker bug.


From: Xrh simos
Subject: linker bug.
Date: Thu, 10 Jul 2003 10:41:25 -0400

When i tried to make swim.c (attached file), i got the following error. swim.c is obtained from swim.f, SPECCPU2000 FP benchmark, using f2c translator.


GNU ld version 2.13.90.0.2 20020802

gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

after make command
-----------------------
gcc -v -lm -lc -lf2c -L/home/bulldog/chinnak/ra/ss/arm-tools/arm-linux/lib -L/home/bulldog/chinnak/lib -c -o swim.o -O3 -finline-functions -funroll-loops -fomit-frame-pointer swim.c
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
/usr/lib/gcc-lib/i386-redhat-linux/3.2/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ swim.c -quiet -dumpbase swim.c -O3 -version -finline-functions -funroll-loops -fomit-frame-pointer -o /tmp/ccqNaRWn.s GNU CPP version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) (cpplib) (i386 Linux/ELF)
GNU C version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) (i386-redhat-linux)
       compiled by GNU C version 3.2 20020903 (Red Hat Linux 8.0 3.2-7).
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include
/usr/include
End of search list.
as -V -Qy -o swim.o /tmp/ccqNaRWn.s
GNU assembler version 2.13.90.0.2 (i386-redhat-linux) using BFD version 2.13.90.0.2 20020802
gcc: -lm: linker input file unused because linking not done
gcc: -lc: linker input file unused because linking not done
gcc: -lf2c: linker input file unused because linking not done
gcc -v -lm -lc -lf2c -L/home/bulldog/chinnak/ra/ss/arm-tools/arm-linux/lib -L/home/bulldog/chinnak/lib -O3 -finline-functions -funroll-loops -fomit-frame-pointer swim.o -o swim
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
/usr/lib/gcc-lib/i386-redhat-linux/3.2/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o swim /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crti.o /usr/lib/gcc-lib/i386-redhat-linux/3.2/crtbegin.o -L/home/bulldog/chinnak/ra/ss/arm-tools/arm-linux/lib -L/home/bulldog/chinnak/lib -L/usr/lib/gcc-lib/i386-redhat-linux/3.2 -L/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../.. -lm -lc -lf2c swim.o -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /usr/lib/gcc-lib/i386-redhat-linux/3.2/crtend.o /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crtn.o /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function `_start': /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0xc): undefined reference to `__libc_csu_fini' /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x11): undefined reference to `__libc_csu_init' /usr/bin/ld: BFD 2.13.90.0.2 20020802 internal error, aborting at elf32-i386.c line 2404 in elf_i386_relocate_section

/usr/bin/ld: Please report this bug.

collect2: ld returned 1 exit status
make: *** [swim] Error 1

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail

Attachment: swim.c
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]