Arm compile

53 views
Skip to first unread message

Dan Ormsby

unread,
Jul 31, 2019, 4:21:24 AM7/31/19
to emscripten-discuss
I tried and failed to compile emscripten on a Raspberry Pi 4. Seems the emsdk install from github tried to download a Node build compiled for x86.

Is arm not a supported platform for emscripten? Or is there any advise to compile the latest emscripten on arm?

Cheers,
Dan.

Alon Zakai

unread,
Jul 31, 2019, 9:27:15 AM7/31/19
to emscripte...@googlegroups.com
That's correct, the emsdk only supports x64, as that's all we have builders for atm.

For arm, currently you need to build LLVM and Binaryen from source (unless there are arm builds for them somewhere - those would work, as emscripten has no local modifications to those projects, when using the upstream wasm backend).

- Alon


--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/329fb69f-badb-41e0-a4b0-e61b1ab57018%40googlegroups.com.

Dan Ormsby

unread,
Jul 31, 2019, 9:58:50 AM7/31/19
to emscripten-discuss
Thanks for the quick reply Alon. I’ve found an old build of emscripten is bundled in Raspbian, the Debian fork for Raspberry pi. Unfortunately it doesn’t compile code throwing a python error.

If I get a working compilation I’ll report back to the community on this forum.

Cheers,
Dan.

Brion Vibber

unread,
Jul 31, 2019, 11:32:06 AM7/31/19
to emscripten Mailing List
I have a provisional patch for emsdk which may help, please give a shout if you have troubles with it and I'll try to update it.


Note that the llvm/clang compile takes a long time on rpi. :)

-- brion

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.

Dan Ormsby

unread,
Aug 4, 2019, 5:35:22 AM8/4/19
to emscripten-discuss
Hi All,

I have successfully build emscripten from source on my Raspberry Pi 4 on the latest build of Raspbian. As the main repositories were updated I didn’t need to apply the patch Brion kindly suggested. Build time was about 3 hours.

Command lines after the git clone were simply...

./emsdk install sdk-incoming-32bit
./emsdk activate sdk-incoming-32bit
source ./emsdk_env.sh

Cheers,
Dan.
Reply all
Reply to author
Forward
0 new messages