Hi everybody.

I'd like to be able to compile the hello_word tutorial on Ubuntu.

What I've tried so far is:
1) Downloading emscripten 1.2 from Synaptic => not working. 

I removed it and downloaded emsdk looking for an* embedded and portable (or 
better "movable") i*nstallation.
Then I tried:
2) ./emsdk install emscripten-1.34.1
./emsdk activate --embedded emscripten-1.34.1
 But after that and after setting the new $PATH environment variables,* 
emcc -v* gave me an error similiar to 1).
3) ./emsdk ununstall emscripten-1.34.1
./emsdk install sdk-tag-1.34.1-64bit
After nearly a hour (where my 4 cores went more than 70° C hot) I could 
write:
./emsdk activate --embedded sdk-tag-1.34.1-64bit
I saw that in the new $PATH now was present the path of Clang3.7 and I 
thought: now it should work, but after setting the new $PATH, emcc -v still 
gives me a similiar error to 1) and 2):

 WARNING  root: (Emscripten: system change: 
> 1.34.1|asmjs-unknown-emscripten|/usr/bin|3.6 vs 
> 1.22.1|le32-unknown-nacl|/usr/bin|3.6.0-2ubuntu1, clearing cache)
> WARNING  root: LLVM version appears incorrect (seeing "3.6", expected 
> "3.7")
> CRITICAL root: fastcomp in use, but LLVM has not been built with the 
> JavaScript backend as a target, llc reports:
> ===========================================================================
> LLVM (http://llvm.org/):
>   LLVM version 3.6.0
>   
>   Optimized build.
>   Built Mar 13 2015 (21:22:31).
>   Default target: x86_64-pc-linux-gnu
>   Host CPU: core-avx2
>
>   Registered Targets:
>     aarch64    - AArch64 (little endian)
>     aarch64_be - AArch64 (big endian)
>     amdgcn     - AMD GCN GPUs
>     arm        - ARM
>     arm64      - ARM64 (little endian)
>     armeb      - ARM (big endian)
>     cpp        - C++ backend
>     hexagon    - Hexagon
>     mips       - Mips
>     mips64     - Mips64 [experimental]
>     mips64el   - Mips64el [experimental]
>     mipsel     - Mipsel
>     msp430     - MSP430 [experimental]
>     nvptx      - NVIDIA PTX 32-bit
>     nvptx64    - NVIDIA PTX 64-bit
>     ppc32      - PowerPC 32
>     ppc64      - PowerPC 64
>     ppc64le    - PowerPC 64 LE
>     r600       - AMD GPUs HD2XXX-HD6XXX
>     sparc      - Sparc
>     sparcv9    - Sparc V9
>     systemz    - SystemZ
>     thumb      - Thumb
>     thumbeb    - Thumb (big endian)
>     x86        - 32-bit X86: Pentium-Pro and above
>     x86-64     - 64-bit X86: EM64T and AMD64
>     xcore      - XCore
> ===========================================================================
> CRITICAL root: you can fall back to the older (pre-fastcomp) compiler 
> core, although that is not recommended, see 
> http://kripken.github.io/emscripten-site/docs/building_from_source/LLVM-Backend.html
> INFO     root: (Emscripten: Running sanity checks)
> CRITICAL root: failing sanity checks due to previous fastcomp failure
>

Basically what I think is happening is that emcc still uses the system 
Clang3.6, instead the new compiled version 3.7, even if its bin path has 
been added to $PATH. 

Any hint please ?



-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to