[go: nahoru, domu]

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

Garbage #673

Open
adimetrius opened this issue Dec 27, 2020 · 1 comment
Open

Garbage #673

adimetrius opened this issue Dec 27, 2020 · 1 comment

Comments

@adimetrius
Copy link

Downloaded and installed following the instructions for Linux. SDK from git, then activate latest, source emsdk_env.sh.

Then did

./emcc tests/hello_world.c
bash: ./emcc: No such file or directory

Found the emcc script in upstream/emscripten, ran
./emcc hello_world.c

Traceback (most recent call last):
File "/home/antonio/dev/emsdk/upstream/emscripten/emcc.py", line 40, in
import emscripten
File "/home/antonio/dev/emsdk/upstream/emscripten/emscripten.py", line 463
args.append(f'--separate-data-segments={memfile}')
^
SyntaxError: invalid syntax

rukozhopi!

@sbc100
Copy link
Collaborator
sbc100 commented Dec 28, 2020

The ./ as the beginning on emcc should not be used when trying to run emcc from your PATH. If you use emsdk you should just run emcc without the ./ since emcc is not in that current working directory.

The second issue you have looks like you are missing a version of python that supports f-strings. Emscripten requires python3.6 or above.

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