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

build fails on arm #2

Open
donpdonp opened this issue May 12, 2020 · 2 comments
Open

build fails on arm #2

donpdonp opened this issue May 12, 2020 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@donpdonp
Copy link

I'm working on incorporating go-wasm3 into my project, compiled on an arm64 board. go build claims the m3.a file is "incompatible". Is this a supported platform for go-wasm3?

cd src/gluon; go build -o ../../bin/
# github.com/matiasinsaurralde/go-wasm3
/usr/bin/ld: skipping incompatible /home/donp/go/pkg/mod/github.com/matiasinsaurralde/go-wasm3@v0.0.0-20200430145938-3a21e6ba62e7/lib/linux/libm3.a when searching for -lm3
/usr/bin/ld: cannot find -lm3

the board is a Pine64 (Allwinner A64 CPU) and the OS is Armbian (ARM Port) of Ubuntu 18.04.

@matiasinsaurralde
Copy link
Owner

Hi, that's very interesting! I will investigate support for this architecture over the next days.
Thanks for reporting the issue

@donpdonp
Copy link
Author

donpdonp commented Jun 7, 2020

taking a second look at the out, "skipping incompatible" indicates the wrong architecture. sure enough the contents of libm3.a are

libm3.a:              current ar archive
m3_api_libc.c.o:      ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
...

I'm not sure how that happened, i didnt know this arm64 board could cross-compile for x86.

@matiasinsaurralde matiasinsaurralde added bug Something isn't working help wanted Extra attention is needed labels Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants