This is the mail archive of the crossgcc@sources.redhat.com 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]

mips-elf compiler


Hi,

I have built a mips-g++ compiler for mips-elf target in solaris host.
when i try to compile and link a sample helloworld program, it gives me
the following error,
test.o: In function `main':
test.cc(.text+0x10): undefined reference to `__gccmain'
/mnt/engr224/sankhya/gnu/release/sathyas/cross/mips/binutils2/lib/gcc-lib/mips-e
lf/2.95/libstdc++.a(iostream.o): In function `skip_ws(streambuf *)':
/mnt/engr224/sankhya/gnu/src/views/sathyas/src/gnu/gcc-2.95/libio/iostream.cc:64
: undefined reference to `_ctype_'
/mnt/engr224/sankhya/gnu/src/views/sathyas/src/gnu/gcc-2.95/libio/iostream.cc:64
: undefined reference to `_ctype_'
/mnt/engr224/sankhya/gnu/release/sathyas/cross/mips/binutils2/lib/gcc-lib/mips-e
lf/2.95/libstdc++.a(iostream.o): In function `istream::operator>>(char
*)':
/mnt/engr224/sankhya/gnu/src/views/sathyas/src/gnu/gcc-2.95/libio/iostream.cc:20
4: undefined reference to `_ctype_'
/mnt/engr224/sankhya/gnu/src/views/sathyas/src/gnu/gcc-2.95/libio/iostream.cc:20
4: undefined reference to `_ctype_'
/mnt/engr224/sankhya/gnu/release/sathyas/cross/mips/binutils2/lib/gcc-lib/mips-e
lf/2.95/libstdc++.a(iostream.o): In function `write_int(ostream &,
unsigned long
 long, int)':
/mnt/engr224/sankhya/gnu/src/views/sathyas/src/gnu/gcc-2.95/libio/iostream.cc:46
0: undefined reference to `__umoddi3'
....

ld returns with exit status 1

All the files in libstc++.a, libio has undefined symbols....
collect2 returns error when it is invoked with the following code

/mnt/engr224/sankhya/gnu/release/sathyas/cross/mips/binutils2/lib/gcc-lib/mips-e
lf/2.95/collect2 /mnt/engr224/sankhya/gnu/release/sathyas/cross/mips/binutils2/l
ib/gcc-lib/mips-elf/2.95/crtbegin.o /mnt/engr224/sankhya/gnu/release/sathyas/cro
ss/mips/binutils2/mips-elf/lib/crt0.o -L/mnt/engr224/sankhya/gnu/release/sathyas
/cross/mips/binutils2/lib/gcc-lib/mips-elf/2.95 -L/mnt/engr224/sankhya/gnu/relea
se/sathyas/cross/mips/binutils2/lib/gcc-lib -L/mnt/engr224/sankhya/gnu/release/s
athyas/cross/mips/binutils2/lib/gcc-lib/mips-elf/2.95 -L/mnt/engr224/sankhya/gnu
/release/sathyas/cross/mips/binutils2/mips-elf/lib /var/tmp/ccIjWgk1.o -lstdc++
-lgcc /mnt/engr224/sankhya/gnu/release/sathyas/cross/mips/binutils2/lib/gcc-lib
/mips-elf/2.95/crtend.o

can anybody suggest wht is wrong ...

Thanks,
sathya


------
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]