file(1) broken on sparc64

Koop Mast kwm at rainbow-runner.nl
Tue Feb 15 14:37:19 GMT 2005


Op zo, 23-01-2005 te 12:02 -0800, schreef Kris Kennaway:
>On Sun, Jan 23, 2005 at 06:34:31PM +0100, Koop Mast wrote:
>> Op za, 22-01-2005 te 13:35 -0800, schreef Kris Kennaway:
>> > Old file(1):
>> > 
>> > monster# file /lib/libc.so.6
>> > /lib/libc.so.6: ELF 64-bit MSB shared object, SPARC V9, version 1 (FreeBSD), stripped
>> > 
>> > New file(1):
>> > 
>> > monster# file /lib/libc.so.6
>> > /lib/libc.so.6: data, stripped
>> > 
>> > Among other things, this breaks a lot of package builds because
>> > libtool 1.3 doesn't think FreeBSD/sparc64 can build shared libraries.
>> > 
>> > Kris
>> 
>> Seems to work here:
>> 
>> # uname -a
>> FreeBSD sparkel 6.0-CURRENT FreeBSD 6.0-CURRENT #6: Sat Jan 22 13:44:59
>> CET 2005     root at sparkel:/usr/obj/usr/src/sys/SeaLion  sparc64
>> 
>> # file -v
>> file-4.12
>> magic file from /usr/share/misc/magic
>> 
>> # file /lib/libc.so.6
>> /lib/libc.so.6: ELF 64-bit MSB shared object, SPARC V9, version 1
>> (FreeBSD), stripped
>
>I wonder if the problem is with worlds cross-built from i386.
>
>Can you try a buildworld on i386 with TARGET_ARCH=sparc64 and see if
>it still works?
>
>Kris

Sorry for the wait, I filed the mail in a wrong folder.

I did a cross buildworld on a i386 machine, and copied the resulting
file binary over to my sparc box. It works just like the native file
binary. I even replaced libc.so.6 with the one from the cross build. But
that also didn't change anything.

Koop



More information about the freebsd-sparc64 mailing list