compiling C++ app for RM9150 board

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

 



Hello!

So, I succefully booted with PMC-sierra board RM9150. Now I need to compile and test some C++ application on it. I use toolchain provided by PMC-sierra and use the following compilation flags:

Creating .depend
mips64-linux-gnu-g++ -Wall -mips1 -mabi=32 -M main.cpp cmd.cpp ../ep.c > .depend
Compiling main.cpp
mips64-linux-gnu-g++ -c  -Wall -mips1 -mabi=32 main.cpp -o main.o
Compiling cmd.cpp
mips64-linux-gnu-g++ -c -Wall -mips1 -mabi=32 cmd.cpp -o cmd.o
Linking linkd
mips64-linux-gnu-g++ main.o cmd.o ../ep.c ../lib/api.a -o linkd -m elf32btsmip

At linking stage I get whole bunch of errors:

/opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/lib/gcc-lib/mips64-linux-gnu/3.3-mips64linux-031001/../../../../mips64-linux-gnu/bin/ld: main.o: ABI is incompatible with that of the selected emulation File format not recognized: failed to merge target specific data of file main.o /opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/lib/gcc-lib/mips64-linux-gnu/3.3-mips64linux-031001/../../../../mips64-linux-gnu/bin/ld: cmdProc.o: ABI is incompatible with that of the selected emulation File format not recognized: failed to merge target specific data of file cmdProc.o /opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/lib/gcc-lib/mips64-linux-gnu/3.3-mips64linux-031001/../../../../mips64-linux-gnu/bin/ld: ../lib/clnkapi.a(clnkethapilnx.o): ABI is incompatible with that of the selected emulation File format not recognized: failed to merge target specific data of file ../lib/clnkapi.a(clnkethapilnx.o) /opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/lib/gcc-lib/mips64-linux-gnu/3.3-mips64linux-031001/../../../../mips64-linux-gnu/bin/ld: BFD 2.13-mips64linux-031001 20020920 assertion fail /es/build/mips64linux/devo/bfd/elfxx-mips.c:1775 /opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/lib/gcc-lib/mips64-linux-gnu/3.3-mips64linux-031001/../../../../mips64-linux-gnu/bin/ld: BFD 2.13-mips64linux-031001 20020920 assertion fail /es/build/mips64linux/devo/bfd/elfxx-mips.c:1778
main.o: In function `main':
main.o(.text+0x28): relocation truncated to fit: R_MIPS_GOT16 card
/opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/lib/gcc-lib/mips64-linux-gnu/3.3-mips64linux-031001/../../../../mips64-linux-gnu/bin/ld: BFD 2.13-mips64linux-031001 20020920 assertion fail /es/build/mips64linux/devo/bfd/elfxx-mips.c:1775 /opt/redhat/mips64linux-031001/H-i686-pc-linux-gnulibc2.2/lib/gcc-lib/mips64-linux-gnu/3.3-mips64linux-031001/../../../../mips64-linux-gnu/bin/ld: BFD 2.13-mips64linux-031001 20020920 assertion fail /es/build/mips64linux/devo/bfd/elfxx-mips.c:1778 main.o(.text+0x48): relocation truncated to fit: R_MIPS_CALL16 getopt@@GLIBC_2.0

.... and so on

Seems I have some mismatch with formats?

I appreciate any hints. Thanks in advance!

With best regards, Roman Mashak. E-mail: mrv@xxxxxxxxxxxxx



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux