emscripten-2.0.3, as installed from the pkg repository links various emscripten /usr/local/bin executables to their corresponding name in ../lib/emscripten/ which are all created from boilerplate that ends with exec "$PYTHON" "$0.py" "$@" so, if you execute the /usr/local/bin/ version of the file, it produces, for example: /usr/local/bin/python3: can't open file '/usr/local/bin/emcc.py': [Errno 2] No such file or directory
Fixed. Thanks for reporting.
A commit references this bug: Author: yuri Date: Mon Dec 21 19:36:13 UTC 2020 New revision: 558854 URL: https://svnweb.freebsd.org/changeset/ports/558854 Log: devel/emscripten: Fix the problem with paths in symlinked executables PR: 252024 Reported by: Nick Briggs <nicholas.h.briggs@gmail.com> Changes: head/devel/emscripten/Makefile head/devel/emscripten/distinfo head/devel/emscripten/pkg-plist
A commit references this bug: Author: yuri Date: Mon Dec 21 19:41:06 UTC 2020 New revision: 558855 URL: https://svnweb.freebsd.org/changeset/ports/558855 Log: MFH: r558854 devel/emscripten: Fix the problem with paths in symlinked executables PR: 252024 Reported by: Nick Briggs <nicholas.h.briggs@gmail.com> Changes: _U branches/2020Q4/ branches/2020Q4/devel/emscripten/Makefile branches/2020Q4/devel/emscripten/distinfo branches/2020Q4/devel/emscripten/pkg-plist