Hi Rene & List,
I have fixed most of the minor issues in Mips64 that are causing compile
errors up to building of gcc at the cross stage. However, gcc (at the
cross stage) is now bombing out with linker errors about incompatible ABI's.
Upon further investigation, it looks like nothing is being built as 64 bit:
When the toolchain glibc builds, the .o files are of this format:
ELF 32-bit MSB relocatable, MIPS, N32 MIPS64 rel2 version 1 (SYSV), not
stripped
These are the things that end up as .so files in lib64 in the format:
ELF 32-bit MSB shared object, MIPS, N32 MIPS64 rel2 version 1 (SYSV),
for GNU/Linux 2.6.16, dynamically linked (uses shared libs), stripped
I would expect it to be ELF 64-bit MSB XXXXXXX
When the glibc32 package builds, it is the same as above
.o files are: ELF 32-bit MSB relocatable, MIPS, N32 MIPS64 rel2 version
1 (SYSV), not stripped
/lib is: ELF 32-bit MSB shared object, MIPS, N32 MIPS64 rel2 version 1
(SYSV), for GNU/Linux 2.6.16, dynamically linked (uses shared libs),
stripped
When gcc is build in the "cross" stage, it's objects are of type:
ELF 32-bit MSB relocatable, MIPS, MIPS64 rel2 version 1 (SYSV), not stripped
and then there are the ABI mismatch errors on link.
When I compare the ELF format to an older gcc from the chip vendors tool
chain:
/lib64 has:
ELF 64-bit MSB shared object, MIPS, MIPS64 rel2 version 1 (SYSV),
dynamically linked, stripped
/lib has:
ELF 32-bit MSB shared object, MIPS, N32 MIPS64 rel2 version 1 (SYSV),
for GNU/Linux 2.6.10, dynamically linked (uses shared libs), not stripped
which is the format that i would be expecting.
I am building Mips64 multilib on an Ubuntu 8.10 x86 32-bit buildhost, I
wonder if the fact that my build host is 32 bit is causing toolchain-gcc
to default to 32-bit libs in /lib64
Any ideas or clues on how to solve this one would be greatly appreciated.
ErrorLog for gcc (stage cross) is attached.
Jan
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2