[Bug go/52557] Timex undefined on arm-linux-gnueabi

doko at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 11 20:36:00 GMT 2012


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



More information about the Gcc-bugs mailing list