GeertJohan / openwrt-go

Fork of the openwrt project to add gccgo and libgo
GNU General Public License v2.0
243 stars 38 forks source link

compilation error on x86_64 host machine #22

Open hbl0307106015 opened 8 years ago

hbl0307106015 commented 8 years ago

export GOOS=linux export GOARCH=mips32

xxxxx@server:~/work/test/go-mips32-dev.github/src$ ./make.bash

Building C bootstrap tool.

cmd/dist

Building compilers and Go bootstrap tool for host, linux/amd64.

lib9 libbio liblink cmd/cc cmd/gc cmd/6l cmd/vl cmd/6a cmd/va cmd/6c cmd/vc cmd/6g cmd/vg runtime errors sync/atomic sync io unicode unicode/utf8 unicode/utf16 bytes math strings strconv bufio sort container/heap encoding/base64 syscall time os reflect fmt encoding encoding/json flag path/filepath path io/ioutil log regexp/syntax regexp go/token go/scanner go/ast go/parser os/exec os/signal net/url text/template/parse text/template go/doc go/build cmd/go runtime (linux/mips32)

Building packages and commands for host, linux/amd64.

runtime errors sync/atomic unicode unicode/utf8 math sort encoding unicode/utf16 container/list crypto/subtle container/ring image/color runtime/race image/color/palette sync container/heap io syscall bytes strings hash crypto/cipher hash/crc32 crypto/hmac hash/adler32 hash/crc64 hash/fnv bufio text/tabwriter path html compress/bzip2 strconv math/rand math/cmplx time internal/syscall reflect regexp/syntax crypto encoding/base64 net/url crypto/aes crypto/rc4 encoding/ascii85 encoding/base32 image crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 encoding/pem os image/draw image/jpeg regexp path/filepath os/signal fmt encoding/binary io/ioutil os/exec cmd/pprof/internal/svg crypto/des index/suffixarray cmd/internal/goobj cmd/internal/rsc.io/arm/armasm cmd/internal/rsc.io/x86/x86asm debug/dwarf debug/gosym debug/plan9obj flag log go/token encoding/json encoding/xml text/template/parse compress/flate math/big encoding/hex mime net/http/internal go/scanner runtime/pprof cmd/pprof/internal/tempfile archive/tar compress/lzw cmd/pack database/sql/driver go/ast encoding/csv encoding/gob compress/gzip archive/zip compress/zlib debug/elf debug/macho debug/pe database/sql image/gif text/template cmd/pprof/internal/profile image/png runtime/debug testing testing/iotest testing/quick text/scanner crypto/elliptic encoding/asn1 crypto/rand crypto/dsa go/parser go/printer crypto/rsa cmd/internal/objfile crypto/x509/pkix crypto/ecdsa go/doc html/template cmd/pprof/internal/plugin cmd/pprof/internal/symbolz cmd/addr2line cmd/nm cmd/objdump cmd/pprof/internal/symbolizer go/build cmd/cgo go/format cmd/gofmt cmd/pprof/internal/report cmd/fix cmd/yacc cmd/pprof/internal/commands cmd/pprof/internal/driver runtime/cgo net os/user crypto/x509 net/textproto log/syslog mime/multipart net/mail crypto/tls net/http net/smtp cmd/go cmd/pprof/internal/fetch expvar net/http/cgi net/http/cookiejar net/http/httptest net/http/httputil net/http/pprof net/rpc cmd/pprof net/http/fcgi net/rpc/jsonrpc

cmd/pprof

/home/tymon/work/test/go-mips32-dev.github/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic? /home/tymon/work/test/go-mips32-dev.github/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic? runtime/cgo(.text): unexpected relocation type 298 runtime/cgo(.text): unexpected relocation type 298

cmd/go

/home/tymon/work/test/go-mips32-dev.github/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic? /home/tymon/work/test/go-mips32-dev.github/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic? runtime/cgo(.text): unexpected relocation type 298 runtime/cgo(.text): unexpected relocation type 298