This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
2.15 problem building GCC arm-elf cross-compiler on Solaris/HP-UX
- From: Albert Chin <binutils at mlists dot thewrittenword dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 29 Sep 2004 10:35:40 -0500
- Subject: 2.15 problem building GCC arm-elf cross-compiler on Solaris/HP-UX
- Reply-to: binutils at sources dot redhat dot com
I've built a GCC cross-compiler for C with --target=arm-elf
successfully on RH 7.1, 9.0, and Solaris 9/SPARC. However, when
building on HP-UX 11i, I get an error running arm-elf-ranlib on
libgcc.a:
...
arm-elf-ar rc ./libgcc.a libgcc/./_udivsi3.o libgcc/./_divsi3.o ...
arm-elf-ranlib ./libgcc.a
arm-elf-ranlib: ./libgcc.a: File format not recognized
binutils-2.12.1 works on HP-UX 11i.
I built libgcc.a with arm-elf-ar using 2.12.1/2.15 on the RH platforms
above and only two lines changed. On the other platforms, *every* line
changed. From the RH 9 platform:
$ diff -u /tmp/binut212 /tmp/binut215
--- /tmp/binut212 2004-09-29 10:03:55.000000000 -0500
+++ /tmp/binut215 2004-09-29 10:04:04.000000000 -0500
@@ -1,6 +1,6 @@
0000000 3c21 7261 6863 0a3e 202f 2020 2020 2020
0000020 2020 2020 2020 2020 3031 3639 3734 3230
-0000040 3932 2020 2030 2020 2020 2030 2020 2020
+0000040 3134 2020 2030 2020 2020 2030 2020 2020
0000060 2030 2020 2020 2020 3033 3236 2020 2020
0000100 2020 0a60 0000 a600 0000 bc0c 0000 bc14
0000120 0000 f81c 0000 c824 0000 bc2c 0000 da36
Doing the same on HP-UX 11i gave:
$ diff -u /tmp/binut212 /tmp/binut215
--- /tmp/binut212 2004-09-29 10:03:55.000000000 -0500
+++ /tmp/binut215 2004-09-29 10:04:04.000000000 -0500
@@ -1,16221 +1,16221 @@
-0000000 213c 6172 6368 3e0a 2f20 2020 2020 2020
-0000020 2020 2020 2020 2020 3130 3936 3437 3032
-0000040 3534 2020 3020 2020 2020 3020 2020 2020
-0000060 3020 2020 2020 2020 3330 3632 2020 2020
-0000100 2020 600a 0000 00a6 0000 0cbc 0000 14bc
-0000120 0000 1cf8 0000 24c8 0000 2cbc 0000 36da
+0000000 2f20 2020 2020 2020 2020 2020 2020 2020
+0000020 3130 3936 3437 3032 3636 2020 3020 2020
+0000040 2020 3020 2020 2020 3020 2020 2020 2020
+0000060 3330 3632 2020 2020 2020 600a 0000 00a6
+0000100 0000 0cbc 0000 14bc 0000 1cf8 0000 24c8
+0000120 0000 2cbc 0000 36da 0000 36da 0000 36da
0000140 0000 36da 0000 36da 0000 36da 0000 36da
...
Any ideas?
--
albert chin (china@thewrittenword.com)