* [Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')
2012-03-14 14:22 [Bug go/52586] New: libgo fails to build for mipsel64-linux-gnu (reference to undefined name 'SYS_GETDENTS64') doko at gcc dot gnu.org
@ 2012-03-17 21:57 ` pinskia at gcc dot gnu.org
2012-04-20 7:50 ` pinskia at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-03-17 21:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |build
Target| |mips*64-linux-gnu
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-03-17
Summary|libgo fails to build for |libgo fails to build for
|mipsel64-linux-gnu |mips*64-linux-gnu
|(reference to undefined |(reference to undefined
|name 'SYS_GETDENTS64') |name 'SYS_GETDENTS64')
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-17 21:35:03 UTC ---
Confirmed on the trunk with glibc 2.15 on mips64-linux-gnu and not just the
little-endian version of mips64.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')
2012-03-14 14:22 [Bug go/52586] New: libgo fails to build for mipsel64-linux-gnu (reference to undefined name 'SYS_GETDENTS64') doko at gcc dot gnu.org
2012-03-17 21:57 ` [Bug go/52586] libgo fails to build for mips*64-linux-gnu " pinskia at gcc dot gnu.org
@ 2012-04-20 7:50 ` pinskia at gcc dot gnu.org
2012-04-20 7:53 ` pinskia at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-04-20 7:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-20 07:48:52 UTC ---
Fails still as of today:
/home/apinski/src/gcc-fsf/local/gcc/libgo/go/syscall/libcall_linux.go:206:26:
error: reference to undefined name 'SYS_GETDENTS64'
r1, _, errno := Syscall(SYS_GETDENTS64, uintptr(fd),
uintptr(unsafe.Pointer(p)), uintptr(len(buf)))
^
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')
2012-03-14 14:22 [Bug go/52586] New: libgo fails to build for mipsel64-linux-gnu (reference to undefined name 'SYS_GETDENTS64') doko at gcc dot gnu.org
2012-03-17 21:57 ` [Bug go/52586] libgo fails to build for mips*64-linux-gnu " pinskia at gcc dot gnu.org
2012-04-20 7:50 ` pinskia at gcc dot gnu.org
@ 2012-04-20 7:53 ` pinskia at gcc dot gnu.org
2012-04-30 15:45 ` ian at airs dot com
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-04-20 7:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-20 07:52:10 UTC ---
SYS_getdents64 does not exist for either N32 or N64 with the version of glibc I
have.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')
2012-03-14 14:22 [Bug go/52586] New: libgo fails to build for mipsel64-linux-gnu (reference to undefined name 'SYS_GETDENTS64') doko at gcc dot gnu.org
` (2 preceding siblings ...)
2012-04-20 7:53 ` pinskia at gcc dot gnu.org
@ 2012-04-30 15:45 ` ian at airs dot com
2012-04-30 16:04 ` ian at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ian at airs dot com @ 2012-04-30 15:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586
--- Comment #4 from Ian Lance Taylor <ian at airs dot com> 2012-04-30 15:45:06 UTC ---
Unfortunately the MIPS64 machine in the GCC compile farm, gcc42.fsffrance.org,
is running a version of glibc that is too old to build libgo. It is using
glibc 2.7, which does not have a version of getcontext/setcontext/makecontext
for MIPS. I see in the glibc-ports sources that those functions were added in
2009. So unless I find another test machine I am not going to be able to
properly test a patch.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')
2012-03-14 14:22 [Bug go/52586] New: libgo fails to build for mipsel64-linux-gnu (reference to undefined name 'SYS_GETDENTS64') doko at gcc dot gnu.org
` (3 preceding siblings ...)
2012-04-30 15:45 ` ian at airs dot com
@ 2012-04-30 16:04 ` ian at gcc dot gnu.org
2012-04-30 16:06 ` ian at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ian at gcc dot gnu.org @ 2012-04-30 16:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586
--- Comment #5 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2012-04-30 16:04:28 UTC ---
Author: ian
Date: Mon Apr 30 16:04:17 2012
New Revision: 186986
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186986
Log:
PR go/52586
mksysinfo, syscall: Make sure SYS_GETDENTS64 is defined.
Fixes build on MIPS GNU/Linux.
Modified:
trunk/libgo/go/syscall/libcall_linux.go
trunk/libgo/mksysinfo.sh
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')
2012-03-14 14:22 [Bug go/52586] New: libgo fails to build for mipsel64-linux-gnu (reference to undefined name 'SYS_GETDENTS64') doko at gcc dot gnu.org
` (4 preceding siblings ...)
2012-04-30 16:04 ` ian at gcc dot gnu.org
@ 2012-04-30 16:06 ` ian at gcc dot gnu.org
2012-04-30 16:10 ` ian at airs dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ian at gcc dot gnu.org @ 2012-04-30 16:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586
--- Comment #6 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2012-04-30 16:04:43 UTC ---
Author: ian
Date: Mon Apr 30 16:04:33 2012
New Revision: 186987
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186987
Log:
PR go/52586
mksysinfo, syscall: Make sure SYS_GETDENTS64 is defined.
Fixes build on MIPS GNU/Linux.
Modified:
branches/gcc-4_7-branch/libgo/go/syscall/libcall_linux.go
branches/gcc-4_7-branch/libgo/mksysinfo.sh
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')
2012-03-14 14:22 [Bug go/52586] New: libgo fails to build for mipsel64-linux-gnu (reference to undefined name 'SYS_GETDENTS64') doko at gcc dot gnu.org
` (5 preceding siblings ...)
2012-04-30 16:06 ` ian at gcc dot gnu.org
@ 2012-04-30 16:10 ` ian at airs dot com
2012-04-30 18:02 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ian at airs dot com @ 2012-04-30 16:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Ian Lance Taylor <ian at airs dot com> 2012-04-30 16:08:54 UTC ---
This specific build problem is fixed. I don't know if there are other
problems.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')
2012-03-14 14:22 [Bug go/52586] New: libgo fails to build for mipsel64-linux-gnu (reference to undefined name 'SYS_GETDENTS64') doko at gcc dot gnu.org
` (6 preceding siblings ...)
2012-04-30 16:10 ` ian at airs dot com
@ 2012-04-30 18:02 ` pinskia at gcc dot gnu.org
2012-05-01 23:15 ` doko at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-04-30 18:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-30 18:01:04 UTC ---
(In reply to comment #4)
> Unfortunately the MIPS64 machine in the GCC compile farm, gcc42.fsffrance.org,
> is running a version of glibc that is too old to build libgo. It is using
> glibc 2.7, which does not have a version of getcontext/setcontext/makecontext
> for MIPS. I see in the glibc-ports sources that those functions were added in
> 2009. So unless I find another test machine I am not going to be able to
> properly test a patch.
I will test the trunk later today on my machine which is currently running
glibc 2.15.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')
2012-03-14 14:22 [Bug go/52586] New: libgo fails to build for mipsel64-linux-gnu (reference to undefined name 'SYS_GETDENTS64') doko at gcc dot gnu.org
` (7 preceding siblings ...)
2012-04-30 18:02 ` pinskia at gcc dot gnu.org
@ 2012-05-01 23:15 ` doko at gcc dot gnu.org
2012-05-02 4:34 ` ian at airs dot com
2012-05-02 6:20 ` pinskia at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: doko at gcc dot gnu.org @ 2012-05-01 23:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586
--- Comment #9 from Matthias Klose <doko at gcc dot gnu.org> 2012-05-01 23:14:15 UTC ---
Native configuration is mipsel-unknown-linux-gnu
=== libgo tests ===
Running target unix
FAIL: archive/zip
=== libgo Summary for unix ===
# of expected passes 122
# of unexpected failures 1
Running target unix/-mabi=n32
FAIL: archive/zip
FAIL: os/user
=== libgo Summary for unix/-mabi=n32 ===
# of expected passes 121
# of unexpected failures 2
Running target unix/-mabi=64
FAIL: archive/zip
FAIL: os/user
=== libgo Summary for unix/-mabi=64 ===
# of expected passes 121
# of unexpected failures 2
=== libgo Summary ===
# of expected passes 364
# of unexpected failures 5
this seems to work. the fails are:
--- FAIL: zip.TestReader (2.72 seconds)
reader_test.go:254: error=open testdata/go-no-datadesc-sig.zip: No such
file or directory, want <nil>
reader_test.go:254: error=open testdata/go-with-datadesc-sig.zip: No
such file or directory, want <nil>
panic: Error reading go-with-datadesc-sig.zip: open
testdata/go-with-datadesc-sig.zip: No such file or directory
[recovered]
panic: Error reading go-with-datadesc-sig.zip: open
testdata/go-with-datadesc-sig.zip: No such file or d
irectory
FAIL: archive/zip
../../../src/libgo/testsuite/gotest: line 448: gotest-timeout: No such file or
directory
--- FAIL: user.TestCurrent (0.14 seconds)
user_test.go:35: Current: user: unknown userid 1174
--- FAIL: user.TestLookup (0.00 seconds)
user_test.go:76: Current: user: unknown userid 1174
--- FAIL: user.TestLookupId (0.00 seconds)
user_test.go:92: Current: user: unknown userid 1174
FAIL
FAIL: os/user
note that the user is not present in /etc/passwd.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')
2012-03-14 14:22 [Bug go/52586] New: libgo fails to build for mipsel64-linux-gnu (reference to undefined name 'SYS_GETDENTS64') doko at gcc dot gnu.org
` (8 preceding siblings ...)
2012-05-01 23:15 ` doko at gcc dot gnu.org
@ 2012-05-02 4:34 ` ian at airs dot com
2012-05-02 6:20 ` pinskia at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: ian at airs dot com @ 2012-05-02 4:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586
--- Comment #10 from Ian Lance Taylor <ian at airs dot com> 2012-05-02 04:33:56 UTC ---
I don't understand the archive/zip test failure. The files in question are
libgo/go/archive/zip/testdata/go-with-datadesc-sig.zip and
go-no-datadesc-sig.zip. They exist in the repository. Do they exist in your
source tree?
The os/user test will fail if run by a user ID for which the libc function
getpwuid_r does not return any information.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')
2012-03-14 14:22 [Bug go/52586] New: libgo fails to build for mipsel64-linux-gnu (reference to undefined name 'SYS_GETDENTS64') doko at gcc dot gnu.org
` (9 preceding siblings ...)
2012-05-02 4:34 ` ian at airs dot com
@ 2012-05-02 6:20 ` pinskia at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-05-02 6:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-02 06:20:16 UTC ---
>getpwuid_r does not return any information.
There is a bug in the upstream glibc with respect of setregid setresgid
setresuid setreuid. I have a patch but I have not submitted them upstream yet.
^ permalink raw reply [flat|nested] 12+ messages in thread