On Tue, Feb 5, 2013 at 9:00 PM, Ian Lance Taylor <[email protected]> wrote:
> On Thu, Jan 3, 2013 at 1:26 AM, Uros Bizjak <[email protected]> wrote:
>> Hello!
>>
>>> I've committed a patch to upgrade libgo to the current version of the
>>> master Go library. As usual, this mail message only includes the
>>> changes to files that are specific to gccgo. Bootstrapped and ran Go
>>> testsuite on x86_64-unknown-linux-gnu. Committed to mainline.
>>
>> This caused massive testsuite problems on CentOS 5.8 due to missing
>> utimensat.
>
> This should be fixed now. Please let me know if it is not.
Thanks, I have tested it on CentOS 5.9. However, for some reason, I
got unrelated linker errors that prevents further testing:
=== libgo tests ===
./a.out: error while loading shared libraries:
/home/uros/gcc-build/x86_64-unknown-linux-gnu/libgo/.libs/libgo.so.3:
ELF file OS ABI invalid
FAIL: bufio
../../../gcc-svn/trunk/libgo/testsuite/gotest: line 482:
gotest-timeout: No such file or directory
./a.out: error while loading shared libraries:
/home/uros/gcc-build/x86_64-unknown-linux-gnu/libgo/.libs/libgo.so.3:
ELF file OS ABI invalid
FAIL: bytes
...
where:
$ readelf -h libgo.so.3.0.1
ELF Header:
Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - Linux
ABI Version: 0
Type: DYN (Shared object file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x559190
Start of program headers: 64 (bytes into file)
Start of section headers: 24466488 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 6
Size of section headers: 64 (bytes)
Number of section headers: 38
Section header string table index: 35
and
$ readelf -h /lib64/libc-2.5.so
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: DYN (Shared object file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x31c441dac0
Start of program headers: 64 (bytes into file)
Start of section headers: 1721392 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 10
Size of section headers: 64 (bytes)
Number of section headers: 77
Section header string table index: 76
ld --version
GNU ld (Linux/GNU Binutils) 2.21.52.0.2.20110610
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
I don't know why linker treats "UNIX - Linux" OS/ABI as incompatible...
BTW: The same problem happens with libatomic:
./atomic-compare-exchange-1.exe: error while loading shared libraries:
/home/uros/gcc-build/x86_64-unknown-linux-gnu/./libatomic/.libs/libatomic.so.1:
ELF file OS ABI invalid
FAIL: libatomic.c/atomic-compare-exchange-1.c execution test
Is libatomic library incompatible in some way to libc?
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 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.
Compiled by GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-52).
Compiled on a Linux 2.6.9 system on 2013-01-08.
Available extensions:
The C stubs add-on version 2.1.2.
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
GNU libio by Per Bothner
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
RT using linux kernel aio
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
Uros.