public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/52557] New: Timex undefined on arm-linux-gnueabi
@ 2012-03-11 17:33 doko at gcc dot gnu.org
2012-03-11 20:36 ` [Bug go/52557] " doko at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: doko at gcc dot gnu.org @ 2012-03-11 17:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52557
Bug #: 52557
Summary: Timex undefined on arm-linux-gnueabi
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
AssignedTo: ian@airs.com
ReportedBy: doko@gcc.gnu.org
libgo r185183 fails to build on arm-linux-gnueabi,
libcalls.go:1662:22: error: use of undefined type 'Timex'
make[6]: *** [syscall/syscall.lo] Error 1
build/arm-linux-gnueabi/libgo/gen-sysinfo.go has:
// type _timex struct { modes uint32; offset int32; freq int32; maxerror int32;
esterror int32; status int32; constant int32; precision int32; tolerance int32;
time _timeval; tick int32; ppsfreq int32; jitter int32; shift int32; stabil
int32; jitcnt int32; calcnt int32; errcnt int32; stbcnt int32; tai int32;
Godump_0 INVALID-bit-field; Godump_1 INVALID-bit-field; Godump_2
INVALID-bit-field; Godump_3 INVALID-bit-field; Godump_4 INVALID-bit-field;
Godump_5 INVALID-bit-field; Godump_6 INVALID-bit-field; Godump_7
INVALID-bit-field; Godump_8 INVALID-bit-field; Godump_9 INVALID-bit-field;
Godump_10 INVALID-bit-field; }
the invalid fields correspond to bits/timex.h in the timex struct:
int tai; /* TAI offset (ro) */
/* ??? */
int :32; int :32; int :32; int :32;
int :32; int :32; int :32; int :32;
int :32; int :32; int :32;
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug go/52557] Timex undefined on arm-linux-gnueabi
2012-03-11 17:33 [Bug go/52557] New: Timex undefined on arm-linux-gnueabi doko at gcc dot gnu.org
@ 2012-03-11 20:36 ` doko at gcc dot gnu.org
2012-03-13 20:59 ` ian at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: doko at gcc dot gnu.org @ 2012-03-11 20:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52557
--- Comment #1 from Matthias Klose <doko at gcc dot gnu.org> 2012-03-11 20:35:42 UTC ---
with the following hack, I'm able to build on arm, and run the tests.
--- libgo/mksysinfo.sh~ 2012-03-11 00:36:59.000000000 +0000
+++ libgo/mksysinfo.sh 2012-03-11 19:17:15.000000000 +0000
@@ -137,6 +137,9 @@
${CC} -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c
+# ARM
+sed -i '/type _timex/s/INVALID-bit-field/int32/g;/type _timex/s,^// ,,'
gen-sysinfo.go
+
echo 'package syscall' > ${OUT}
echo 'import "unsafe"' >> ${OUT}
echo 'type _ unsafe.Pointer' >> ${OUT}
$ grep -v ^PASS libgo.sum
Test Run By doko on Sun Mar 11 19:35:35 UTC 2012
Native configuration is arm-unknown-linux-gnueabi
=== libgo tests ===
Schedule of variations:
unix
Running target unix
Running ../../../src/libgo/libgo.exp ...
FAIL: fmt
FAIL: log
FAIL: reflect
FAIL: sync
FAIL: time
FAIL: archive/zip
FAIL: debug/dwarf
FAIL: encoding/gob
FAIL: encoding/json
FAIL: html/template
FAIL: go/printer
FAIL: math/big
FAIL: net/http
FAIL: net/rpc
FAIL: old/regexp
FAIL: old/template
FAIL: text/template
FAIL: text/template/parse
=== libgo Summary ===
# of expected passes 105
# of unexpected failures 18
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug go/52557] Timex undefined on arm-linux-gnueabi
2012-03-11 17:33 [Bug go/52557] New: Timex undefined on arm-linux-gnueabi doko at gcc dot gnu.org
2012-03-11 20:36 ` [Bug go/52557] " doko at gcc dot gnu.org
@ 2012-03-13 20:59 ` ian at gcc dot gnu.org
2012-03-13 21:11 ` ian at airs dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ian at gcc dot gnu.org @ 2012-03-13 20:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52557
--- Comment #2 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2012-03-13 20:56:29 UTC ---
Author: ian
Date: Tue Mar 13 20:56:23 2012
New Revision: 185354
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185354
Log:
PR go/52557
mksysinfo: Fix handling of timex for ARM GNU/Linux.
Modified:
trunk/libgo/mksysinfo.sh
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug go/52557] Timex undefined on arm-linux-gnueabi
2012-03-11 17:33 [Bug go/52557] New: Timex undefined on arm-linux-gnueabi doko at gcc dot gnu.org
2012-03-11 20:36 ` [Bug go/52557] " doko at gcc dot gnu.org
2012-03-13 20:59 ` ian at gcc dot gnu.org
@ 2012-03-13 21:11 ` ian at airs dot com
2012-03-13 21:12 ` doko at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ian at airs dot com @ 2012-03-13 21:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52557
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2012-03-13
Ever Confirmed|0 |1
--- Comment #3 from Ian Lance Taylor <ian at airs dot com> 2012-03-13 20:58:41 UTC ---
Fixed on mainline, waiting for approval for 4.7 branch.
Thanks for reporting it.
Can you attach the complete libgo.sum file, either here or in a different PR?
It may have some clues as to why those tests are failing.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug go/52557] Timex undefined on arm-linux-gnueabi
2012-03-11 17:33 [Bug go/52557] New: Timex undefined on arm-linux-gnueabi doko at gcc dot gnu.org
` (2 preceding siblings ...)
2012-03-13 21:11 ` ian at airs dot com
@ 2012-03-13 21:12 ` doko at gcc dot gnu.org
2012-03-13 21:13 ` doko at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: doko at gcc dot gnu.org @ 2012-03-13 21:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52557
--- Comment #4 from Matthias Klose <doko at gcc dot gnu.org> 2012-03-13 21:10:38 UTC ---
Created attachment 26887
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26887
libgo.log
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug go/52557] Timex undefined on arm-linux-gnueabi
2012-03-11 17:33 [Bug go/52557] New: Timex undefined on arm-linux-gnueabi doko at gcc dot gnu.org
` (3 preceding siblings ...)
2012-03-13 21:12 ` doko at gcc dot gnu.org
@ 2012-03-13 21:13 ` doko at gcc dot gnu.org
2012-03-13 22:06 ` ian at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: doko at gcc dot gnu.org @ 2012-03-13 21:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52557
--- Comment #5 from Matthias Klose <doko at gcc dot gnu.org> 2012-03-13 21:11:06 UTC ---
Created attachment 26888
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26888
libgo.sum
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug go/52557] Timex undefined on arm-linux-gnueabi
2012-03-11 17:33 [Bug go/52557] New: Timex undefined on arm-linux-gnueabi doko at gcc dot gnu.org
` (4 preceding siblings ...)
2012-03-13 21:13 ` doko at gcc dot gnu.org
@ 2012-03-13 22:06 ` ian at gcc dot gnu.org
2012-03-13 22:08 ` ian at airs dot com
2012-03-13 22:16 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: ian at gcc dot gnu.org @ 2012-03-13 22:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52557
--- Comment #6 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2012-03-13 22:03:38 UTC ---
Author: ian
Date: Tue Mar 13 22:03:30 2012
New Revision: 185359
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185359
Log:
PR go/52557
mksysinfo: Fix handling of timex for ARM GNU/Linux.
Modified:
branches/gcc-4_7-branch/libgo/mksysinfo.sh
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug go/52557] Timex undefined on arm-linux-gnueabi
2012-03-11 17:33 [Bug go/52557] New: Timex undefined on arm-linux-gnueabi doko at gcc dot gnu.org
` (5 preceding siblings ...)
2012-03-13 22:06 ` ian at gcc dot gnu.org
@ 2012-03-13 22:08 ` ian at airs dot com
2012-03-13 22:16 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: ian at airs dot com @ 2012-03-13 22:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52557
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #7 from Ian Lance Taylor <ian at airs dot com> 2012-03-13 22:05:42 UTC ---
Original problem should be fixed now.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug go/52557] Timex undefined on arm-linux-gnueabi
2012-03-11 17:33 [Bug go/52557] New: Timex undefined on arm-linux-gnueabi doko at gcc dot gnu.org
` (6 preceding siblings ...)
2012-03-13 22:08 ` ian at airs dot com
@ 2012-03-13 22:16 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: ian at airs dot com @ 2012-03-13 22:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52557
--- Comment #8 from Ian Lance Taylor <ian at airs dot com> 2012-03-13 22:13:24 UTC ---
>From the log files, looks like there is some problem with unwinding the stack.
My first guess would be that there is something wrong with the ARM-specific
code in libgo/runtime/go-unwind.c.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-03-13 22:14 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-11 17:33 [Bug go/52557] New: Timex undefined on arm-linux-gnueabi doko at gcc dot gnu.org
2012-03-11 20:36 ` [Bug go/52557] " doko at gcc dot gnu.org
2012-03-13 20:59 ` ian at gcc dot gnu.org
2012-03-13 21:11 ` ian at airs dot com
2012-03-13 21:12 ` doko at gcc dot gnu.org
2012-03-13 21:13 ` doko at gcc dot gnu.org
2012-03-13 22:06 ` ian at gcc dot gnu.org
2012-03-13 22:08 ` ian at airs dot com
2012-03-13 22:16 ` ian at airs dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).