binutils-2.19.51.0.3.20090310 gcc-4.3.3 tested on i386-pc-solaris2.10, sparc-sun-solaris2.10, x86_64-unknown-linux-gnu: === x86_64-unknown-linux-gnu $ uname -a Linux amdlnx-2 2.4.21-58.ELsmp #1 SMP Tue Nov 4 11:38:48 EST 2008 x86_64 GNU/Linux === i386-pc-solaris2.10 $ uname -a SunOS amdsol-1 5.10 Generic_138889-06 i86pc i386 i86pc Solaris === sparc-sun-solaris2.10 $ uname -a SunOS m5000-1 5.10 Generic_138888-01 sun4u sparc SUNW,SPARC-Enterprise Solaris ===
"ar rc" seems to work fine on all platforms. "ar t" seems to work fine on all platforms (output looks right). "at tv" reports wrong permissions on i386-pc-solaris2.10 / sparc-sun-solaris2.10! "ar xv" extracts invalid archives with wrong permissions on i386-pc-solaris2.10 / sparc-sun-solaris2.10! === x86_64-unknown-linux-gnu $ for i in libhello_world.a-i386-pc-solaris2.10 libhello_world.a-sparc-sun-solaris2.10 libhello_world.a-x86_64-unknown-linux-gnu; do ar -tv $i; done rw-r----- 1062/64000 780 Mar 24 15:21 2009 hello_world.o rw-r----- 1062/64000 796 Mar 24 15:22 2009 hello_world.o rw-r----- 1062/64000 1480 Mar 24 15:20 2009 hello_world.o === i386-pc-solaris2.10 $ for i in libhello_world.a-i386-pc-solaris2.10 libhello_world.a-sparc-sun-solaris2.10 libhello_world.a-x86_64-unknown-linux-gnu; do ar -tv $i; done rwx--x--T 64000/12 -18250948 Jan 1 01:00 1970 hello_world.o rwx--x--T 64000/12 -18250948 Jan 1 01:00 1970 hello_world.o rw-rwx--T 64000/12 -18250948 Jan 1 01:00 1970 hello_world.o === sparc-sun-solaris2.10 $ for i in libhello_world.a-i386-pc-solaris2.10 libhello_world.a-sparc-sun-solaris2.10 libhello_world.a-x86_64-unknown-linux-gnu; do ar -tv $i; done --------- 64000/68855 0 Jan 1 01:00 1970 hello_world.o --------- 64000/68855 0 Nov 13 10:29 1969 hello_world.o --------- 64000/68855 0 Jan 1 01:00 1970 hello_world.o === === x86_64-unknown-linux-gnu $ for i in libhello_world.a-i386-pc-solaris2.10 libhello_world.a-sparc-sun-solaris2.10 libhello_world.a-x86_64-unknown-linux-gnu; do ar -xv $i; ls -l hello_world.o; rm -f hello_world.o; done x - hello_world.o -rw-r----- 1 nwaibel nlstaff 780 2009-03-24 15:34 hello_world.o x - hello_world.o -rw-r----- 1 nwaibel nlstaff 796 2009-03-24 15:34 hello_world.o x - hello_world.o -rw-r----- 1 nwaibel nlstaff 1480 2009-03-24 15:34 hello_world.o === i386-pc-solaris2.10 $ for i in libhello_world.a-i386-pc-solaris2.10 libhello_world.a-sparc-sun-solaris2.10 libhello_world.a-x86_64-unknown-linux-gnu; do ar -xv $i; ls -l hello_world.o; rm -f hello_world.o; done x - hello_world.o ar: libhello_world.a-i386-pc-solaris2.10 is not a valid archive ls: cannot access hello_world.o: No such file or directory x - hello_world.o ar: libhello_world.a-sparc-sun-solaris2.10 is not a valid archive ls: cannot access hello_world.o: No such file or directory x - hello_world.o ar: libhello_world.a-x86_64-unknown-linux-gnu is not a valid archive ls: cannot access hello_world.o: No such file or directory === sparc-sun-solaris2.10 $ for i in libhello_world.a-i386-pc-solaris2.10 libhello_world.a-sparc-sun-solaris2.10 libhello_world.a-x86_64-unknown-linux-gnu; do ar -xv $i; ls -l hello_world.o; rm -f hello_world.o; done x - hello_world.o ar: libhello_world.a-i386-pc-solaris2.10 is not a valid archive ls: cannot access hello_world.o: No such file or directory x - hello_world.o -r-xrw--w- 1 nwaibel nlstaff 0 2009-03-24 15:35 hello_world.o* x - hello_world.o ar: libhello_world.a-x86_64-unknown-linux-gnu is not a valid archive ls: cannot access hello_world.o: No such file or directory === ... could be an endian issue ... this bug causes issues when compiling programs that create and extract archives during their compile process (recognized with gcc-4.3.3 and libX11-1.2 --> impossible to compile with binutils-2.19.51.0.3.20090310 on i386-pc-solaris2.10 / sparc-sun-solaris2.10). things seem to be fine with binutils-2.19.50.0.1.20081007, but fail on 2.19.51.0.1.20090106 and 2.19.51.0.2.20090204. will attach test directory === $ ls -al total 33 drwxr-x--- 2 nwaibel nlstaff 1024 2009-03-24 15:54 ./ drwx--x--x 31 nwaibel nlstaff 2048 2009-03-24 13:22 ../ -rw-r----- 1 nwaibel nlstaff 86 2009-03-24 13:24 hello_world.c -rwxr-x--- 1 nwaibel nlstaff 6046 2009-03-24 15:21 hello_world-i386-pc-solaris2.10* -rw-r----- 1 nwaibel nlstaff 780 2009-03-24 15:21 hello_world.o-i386-pc-solaris2.10 -rw-r----- 1 nwaibel nlstaff 796 2009-03-24 15:22 hello_world.o-sparc-sun-solaris2.10 -rw-r----- 1 nwaibel nlstaff 1480 2009-03-24 15:20 hello_world.o-x86_64-unknown-linux-gnu -rwxr-x--- 1 nwaibel nlstaff 6554 2009-03-24 15:22 hello_world-sparc-sun-solaris2.10* -rwxr-x--- 1 nwaibel nlstaff 6653 2009-03-24 15:20 hello_world-x86_64-unknown-linux-gnu* -rw-r----- 1 nwaibel nlstaff 922 2009-03-24 15:21 libhello_world.a-i386-pc-solaris2.10 -rw-r----- 1 nwaibel nlstaff 938 2009-03-24 15:22 libhello_world.a-sparc-sun-solaris2.10 -rw-r----- 1 nwaibel nlstaff 1622 2009-03-24 15:20 libhello_world.a-x86_64-unknown-linux-gnu -rw-r----- 1 nwaibel nlstaff 203 2009-03-24 14:14 Makefile === for reference. -- Summary: ar has troubles extracting archives Product: binutils Version: 2.19 Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: niki dot waibel at gmx dot net CC: bug-binutils at gnu dot org GCC build triplet: i386-pc-solaris2.10 / sparc-sun-solaris2.10 GCC host triplet: i386-pc-solaris2.10 / sparc-sun-solaris2.10 GCC target triplet: i386-pc-solaris2.10 / sparc-sun-solaris2.10 http://sourceware.org/bugzilla/show_bug.cgi?id=9992 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils