Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

32-bit binaries compilation failed #241

Closed
iikira opened this issue Feb 22, 2018 · 1 comment
Closed

32-bit binaries compilation failed #241

iikira opened this issue Feb 22, 2018 · 1 comment

Comments

@iikira
Copy link

iikira commented Feb 22, 2018

  • Complete sample:
package main

import (
	"fmt"
	"github.com/json-iterator/go"
)

func main() {
	v := &struct {
		L string
	}{
		L: "2",
	}
	data, _ := jsoniter.Marshal(v)
	fmt.Printf("%s\n", data)
}
  • Terminal Emulator: Terminal.app
appledeiMac:jsoniter apple$ go run main.go
{"L":"2"}
appledeiMac:jsoniter apple$ go build
appledeiMac:jsoniter apple$ GOARCH=386 go build
# github.com/v2pro/plz/reflect2
../../src/github.com/v2pro/plz/reflect2/go_above_17.go:8:6: missing function body
../../src/github.com/v2pro/plz/reflect2/go_above_19.go:10:6: missing function body
../../src/github.com/v2pro/plz/reflect2/type_map.go:12:6: missing function body
../../src/github.com/v2pro/plz/reflect2/type_map.go:16:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:6:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:9:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:12:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:18:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:22:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:26:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:26:6: too many errors
appledeiMac:jsoniter apple$ GOARCH=386 GOOS=linux go build
# github.com/v2pro/plz/reflect2
../../src/github.com/v2pro/plz/reflect2/go_above_17.go:8:6: missing function body
../../src/github.com/v2pro/plz/reflect2/go_above_19.go:10:6: missing function body
../../src/github.com/v2pro/plz/reflect2/type_map.go:12:6: missing function body
../../src/github.com/v2pro/plz/reflect2/type_map.go:16:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:6:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:9:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:12:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:18:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:22:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:26:6: missing function body
../../src/github.com/v2pro/plz/reflect2/unsafe_link.go:26:6: too many errors
@iikira
Copy link
Author

iikira commented Feb 22, 2018

@taowen 测试在 github.com/v2pro/plz/reflect2 加上对应的空汇编文件可以正常运行, 可以加上吗

@taowen taowen closed this as completed in ebe943a Feb 23, 2018
zhenzou pushed a commit to zhenzou/jsoniter that referenced this issue Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant