FS#52874 - [emscripten] emcc is not in $PATH by default

Attached to Project: Community Packages
Opened by Anonymous (kouteiheika) - Monday, 06 February 2017, 17:42 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 08 February 2017, 00:37 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
It'd be nice to have emcc available on $PATH by default.

My motivation for this is as follows: I like programming in Rust[1]; Rust has built-in support for targeting asm.js where I can do this:

cargo build --target=asmjs-unknown-emscripten

and I get a nicely compiled js file. One of the requirements to use that is to have Emscripten installed and accessible, so I was pretty happy to see an Arch Linux package for it. Unfortunately Arch's Emscripten package doesn't expose emcc on the $PATH, so instead of my `cargo build` working nicely out-of-box I get a nasty error that it can't find emcc.

After I did this however:

sudo ln -s /usr/lib/emscripten/emcc /usr/local/bin/
sudo ln -s /usr/lib/emscripten/emcc.py /usr/local/bin/

it starts working again. (Although if I clear the build artifacts and delete all of the `.emscripten*` in my home directory then I need to trigger the build twice for some reason - on the first try it looks like it generates the .emscripten stuff and only on the second it actually builds my project; it's hard to tell if that's a Rust/Cargo bug or an Emscripten one, but nevertheless that's unrelated to this bug report.).

[1]: https://www.rust-lang.org/

Additional info:
* package version: emscripten 1.37.2-1

Steps to reproduce:
1. Install emscripten.
2. Try to launch 'emcc'.
3. Get a 'command not found' error.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 08 February 2017, 00:37 GMT
Reason for closing:  Not a bug
Additional comments about closing:  This is added to $PATH in /etc/profile.d/emscripten.sh

Loading...