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

emcc -v: Exec format error #8622

Closed
LucienXian opened this issue May 16, 2019 · 3 comments
Closed

emcc -v: Exec format error #8622

LucienXian opened this issue May 16, 2019 · 3 comments

Comments

@LucienXian
Copy link

LucienXian commented May 16, 2019

With the docker image ubuntu:16.04, after install the emsdk, I type the emcc -v, it outputs an errro. How can I fix it?

type:
emcc -v
Ouput:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.38.31
Traceback (most recent call last):
File "/home/emscripten/emscripten/1.38.31/emcc.py", line 3308, in
sys.exit(run(sys.argv))
File "/home/emscripten/emscripten/1.38.31/emcc.py", line 477, in run
code = run_process([shared.CLANG_CC, '-v'], check=False).returncode
File "/home/emscripten/emscripten/1.38.31/tools/shared.py", line 163, in run_process
ret = subprocess.run(cmd, check=check, input=input, *args, **kw)
File "/usr/lib/python3.5/subprocess.py", line 693, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.5/subprocess.py", line 947, in init
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error

type:
file /home/emscripten/clang/e1.38.31_64bit/clang++
Output:
home/emscripten/clang/e1.38.31_64bit/clang++: Mach-O 64-bit x86_64 executable

@sbc100
Copy link
Collaborator

sbc100 commented May 16, 2019

Oh.. you somehow installed the Mac version of clang "Mach-O" is the mac binary format.

@sbc100
Copy link
Collaborator

sbc100 commented May 16, 2019

Did you perhaps run the emsdk install command in your mac and them share the contents with docker somehow?

@LucienXian
Copy link
Author

@sbc100 Yeah, you're right! Thx for your answer!

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

2 participants