This is the mail archive of the crossgcc@sourceware.org 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]

[crosstool-ng-1.6.0] mips64-octeon-linux-gnu


Hi,

I am trying to compile a mips64 cross toolchain. the attached file
ctng.1.6.0.mips64.patch contains some patches I made to crosstool-ng
1.6.0. the build process finished successfully with this patch, but
while compiling some source codes, mips64-octeon-linux-gnu-ld failed
with the following message:
......
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/mips64-octeon-linux-gnu-gcc
-I../ -I../..  -g -O2 -o cf-parse.tab.o -c cf-parse.tab.c
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/mips64-octeon-linux-gnu-gcc
-I../ -I../..  -g -O2 -o cf-lex.o -c cf-lex.c
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/mips64-octeon-linux-gnu-gcc
-I../ -I../..  -g -O2 -o conf.o -c conf.c
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/mips64-octeon-linux-gnu-ld
-r -o all.o cf-parse.tab.o cf-lex.o conf.o
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
cf-parse.tab.o: ABI is incompatible with that of the selected
emulation
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
failed to merge target specific data of file cf-parse.tab.o
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
cf-lex.o: ABI is incompatible with that of the selected emulation
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
failed to merge target specific data of file cf-lex.o
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
conf.o: ABI is incompatible with that of the selected emulation
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
failed to merge target specific data of file conf.o
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
BFD (GNU Binutils) 2.19.1 assertion fail
/root/ctng-1.6.0/mips64-octeon-linux-gnu/targets/src/binutils-2.19.1/bfd/elflink.c:10117
......
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
Attempt to do relocatable link with elf64-tradbigmips input and
elf32-ntradbigmips output
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
final link failed: File in wrong format


#/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/mips64-octeon-linux-gnu-ld
--help
....
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
supported targets: elf32-ntradbigmips elf32-ntradlittlemips
elf32-tradbigmips elf32-tradlittlemips elf64-tradbigmips
elf64-tradlittlemips elf64-little elf64-big elf32-little elf32-big
srec symbolsrec tekhex binary ihex
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
supported emulations: elf32btsmipn32 elf32ltsmipn32 elf32btsmip
elf32ltsmip elf64btsmip elf64ltsmip
/opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/.mips64-octeon-linux-gnu-ld:
emulation specific options:
elf32btsmipn32:
....

as you can see, the 'emulation specific options' is elf32btsmipn32 but
i think it should be elf64btsmip.

the ctng config file for mips64-octeon-linux-gnu is also attached to this mail.

my host:
#uname -a
Linux R710 2.6.30-2-686 #1 SMP Sat Sep 26 01:16:22 UTC 2009 i686 GNU/Linux

#gcc --version
gcc (Debian 4.4.2-9) 4.4.3 20100108 (prerelease)
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

my question is:
1) mips64 is not supported by crosstool-ng 1.6.0, why?
2) how can i change the emulation specific options of
mips64-octeon-linux-gnu-ld to elf64btsmip?

sorry for bad english, any help will be appreciated.

Thanks very much.


Zhuang Yuyao

Attachment: ctng.1.6.0.mips64.patch
Description: Binary data

Attachment: config-mips64-octeon-linux-gnu
Description: Binary data

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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