From: "Roman Mashak" <mrv@corecom.co.kr>
To: <linux-mips@linux-mips.org>
Subject: compiling C++ app for RM9150 board
Date: Fri, 26 May 2006 17:57:52 +0900 [thread overview]
Message-ID: <003601c680a2$7946d3e0$9d0ba8c0@mrv> (raw)
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@corecom.co.kr
WARNING: multiple messages have this Message-ID (diff)
From: "Roman Mashak" <mrv@corecom.co.kr>
To: linux-mips@linux-mips.org
Subject: compiling C++ app for RM9150 board
Date: Fri, 26 May 2006 17:57:52 +0900 [thread overview]
Message-ID: <003601c680a2$7946d3e0$9d0ba8c0@mrv> (raw)
Message-ID: <20060526085752.eLL2DTtDaaZv-dexMe_e6Medv6R19sAreK58eZgwjaI@z> (raw)
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@corecom.co.kr
next reply other threads:[~2006-05-26 8:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-26 8:57 Roman Mashak [this message]
2006-05-26 8:57 ` compiling C++ app for RM9150 board Roman Mashak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003601c680a2$7946d3e0$9d0ba8c0@mrv' \
--to=mrv@corecom.co.kr \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox