This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Re: Format of ld error message


 > Which version of the linker produces this error message ?  If it is not 
 > the latest released version (2.17) or the current mainline development 
 > sources then please could you try them.  If you can still produce this 
 > message then please could you file an error report with the bugzilla 
 > system (http://sourceware.org/bugzilla).  We definitely want our error 
 > messages to follow the proper conventions.

Sorry, I should have told you:

nickrob/21 ld -v
GNU ld version 2.16.91.0.6 20060212

I've not used ld directly but gcc:

nickrob/22 gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)

I get the output I mentioned with the following simple recipe:

myprog.c
----------------
main ()
{
  myprint ();
}


myprint.c
---------------
void myprint ()
{
  mysquare6();
}


cc -g -c myprint.c
cc -g myprog.c myprint.o

If current ld gives different output, could you please post it so that I can
check that Emacs can indeed parse it.


Thanks,

Nick


PS cc -v -g myprog.c myprint.o gives:

Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)
 /usr/libexec/gcc/i386-redhat-linux/4.1.0/cc1 -quiet -v myprog.c -quiet -dumpbase myprog.c -mtune=generic -auxbase myprog -g -version -o /tmp/cczcuvQM.s
ignoring nonexistent directory "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/i386-redhat-linux/4.1.0/include
 /usr/include
End of search list.
GNU C version 4.1.0 20060304 (Red Hat 4.1.0-3) (i386-redhat-linux)
	compiled by GNU C version 4.1.0 20060304 (Red Hat 4.1.0-3).
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=31876
Compiler executable checksum: bba44d5df49c85f0bc824786061245c8
 as -V -Qy -o /tmp/ccq5tiDw.o /tmp/cczcuvQM.s
GNU assembler version 2.16.91.0.6 (i386-redhat-linux) using BFD version 2.16.91.0.6 20060212
 /usr/libexec/gcc/i386-redhat-linux/4.1.0/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcc/i386-redhat-linux/4.1.0/../../../crt1.o /usr/lib/gcc/i386-redhat-linux/4.1.0/../../../crti.o /usr/lib/gcc/i386-redhat-linux/4.1.0/crtbegin.o -L/usr/lib/gcc/i386-redhat-linux/4.1.0 -L/usr/lib/gcc/i386-redhat-linux/4.1.0 -L/usr/lib/gcc/i386-redhat-linux/4.1.0/../../.. /tmp/ccq5tiDw.o myprint.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i386-redhat-linux/4.1.0/crtend.o /usr/lib/gcc/i386-redhat-linux/4.1.0/../../../crtn.o
myprint.o: In function `myprint':/home/nickrob/myprint.c:3: undefined reference to `mysquare6'


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