webperl icon indicating copy to clipboard operation
webperl copied to clipboard

Please edit 'emperl_config.sh' to point it to the correct location of 'emsdk_env.sh'

Open jezwhite opened this issue 4 years ago • 3 comments

Probably a school boy error on my part, but I get the error:

Please edit 'emperl_config.sh' to point it to the correct location of 'emsdk_env.sh'

However, I have set 'emperl_config.sh' to point it to the correct location. As I can manually run it, which gives the following output:

Setting environment variables:
EMSDK = /home/dev/emsdk
EM_CACHE = /home/dev/emsdk/upstream/emscripten/cache

It seems that the environment variable EMSCRIPTEN isn't being set?

I am new to emscripten, I followed the steps to create a basic example which worked so I assume my emscripten environment is set up correctly?

My environment:

Clean Ubuntu: Ubuntu 18.04.4 LTS Perl: v5.26.1 webperl: Latest from git emscripten: Latest.

jezwhite avatar May 20 '20 09:05 jezwhite

Hi, thanks for the report, I don't have time to look at this in detail right now, I will later, but for starters I would suggest trying with emscripten-1.38.31 and node-9.8.1, that's what I'm currently using. I know I'll need to look at updating to the latest Emscripten when I get the chance.

haukex avatar May 20 '20 12:05 haukex

Hi,

Thanks for the quick reply. I'll need to spend more time with Emscripten to get my head around things before I attempt to downgrade. Below is the environment when doing a clean install (if that helps).

~/emsdk/upstream/emscripten$ node -v v12.9.1

~/emsdk/upstream/emscripten$ ./emcc -v cache:INFO: generating system asset: is_vanilla.txt... (this will be cached in "/home/dev/emsdk/upstream/emscripten/cache/is_vanilla.txt" for subsequent builds) cache:INFO: - ok emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.39.16 clang version 11.0.0 (/b/s/w/ir/cache/git/chromium.googlesource.com-external-github.com-llvm-llvm--project 3774bcf9f84520a8c35bf765d9a528040d68a14b) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /home/dev/emsdk/upstream/bin Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8 Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0 Candidate multilib: .;@m64 Selected multilib: .;@m64 shared:INFO: (Emscripten: Running sanity checks)

jezwhite avatar May 21 '20 08:05 jezwhite

I've encountered the same problem. EMSCRIPTEN is not being set. Can I set EMSCRIPTEN manually? What should it be set to?

Neimhin avatar Apr 03 '22 19:04 Neimhin