I was using v2.6.  I moved my environment to OSX and I am now able to 
compile and work with fastcomp.  It doesn't really solve the issue on 
CentOS but I've moved on.

On Monday, April 14, 2014 3:22:22 PM UTC-6, Alon Zakai wrote:
>
> Looks like the issue is `ImportError: No module named argparse`. What 
> version of python do you have? Perhaps argparse was not included in it.
>
> - Alon
>
>
>
> On Fri, Apr 11, 2014 at 9:20 AM, Seth Hays <[email protected]<javascript:>
> > wrote:
>
>> Version: emcc (Emscripten GCC-like replacement) 1.12.0 (commit 
>> 6960d2296299e96d43e694806f5d35799ef8d39c)
>>
>> On Friday, April 11, 2014 10:16:17 AM UTC-6, Seth Hays wrote:
>>>
>>> I've been using the instruction @ https://github.com/kripken/
>>> emscripten/wiki/LLVM-Backend.  I am using CentOS 6.  I've compiled and 
>>> installed emscripten-fastcomp and emscripten.  I have Python 2.6 installed. 
>>>  I have jre 7.51 installed.  I have my .bashrc file setup as:
>>>
>>> export PATH=$PATH:/usr/local/bin:/dist/emscripten
>>> export LLVM=/usr/local/bin
>>> export PYTHON=/usr/bin/python2
>>> export NODE=/usr/local/bin/node
>>> export EMSCRIPTEN=/dist/emscripten
>>>
>>>
>>> When I try to compile a simple program I get:
>>>
>>> $ em++ -v test.cpp 
>>>
>>> DEBUG    root: invocation: /dist/emscripten/emcc -v test.cpp
>>>
>>> DEBUG    root: compiling to bitcode
>>>
>>> DEBUG    root: emcc step "parse arguments and setup" took 0.00 seconds
>>>
>>> DEBUG    root: compiling source file: test.cpp
>>>
>>> DEBUG    root: running: /usr/local/bin/clang++ -DEMSCRIPTEN 
>>> -D__EMSCRIPTEN__ -fno-math-errno -target le32-unknown-nacl 
>>> -U__native_client__ -U__pnacl__ -U__ELF__ -nostdinc -Xclang -nobuiltininc 
>>> -Xclang -nostdsysteminc -Xclang 
>>> -isystem/dist/emscripten/system/local/include 
>>> -Xclang -isystem/dist/emscripten/system/include/compat -Xclang 
>>> -isystem/dist/emscripten/system/include/libcxx -Xclang 
>>> -isystem/dist/emscripten/system/include -Xclang 
>>> -isystem/dist/emscripten/system/include/emscripten -Xclang 
>>> -isystem/dist/emscripten/system/include/bsd -Xclang 
>>> -isystem/dist/emscripten/system/include/libc -Xclang 
>>> -isystem/dist/emscripten/system/include/gfx -Xclang 
>>> -isystem/dist/emscripten/system/include/net -Xclang 
>>> -isystem/dist/emscripten/system/include/SDL -U__i386__ -U__i386 -Ui386 
>>> -U__STRICT_ANSI__ -D__IEEE_LITTLE_ENDIAN -U__SSE__ -U__SSE_MATH__ 
>>> -U__SSE2__ -U__SSE2_MATH__ -U__MMX__ -U__APPLE__ -U__linux__ -v -std=c++03 
>>> -emit-llvm -c test.cpp -o /tmp/tmpdBbyEQ/test_0.o
>>>
>>> clang version 3.3 
>>>
>>> Target: le32-unknown-nacl
>>>
>>> Thread model: posix
>>>
>>>  "/usr/local/bin/clang++" -cc1 -triple le32-unknown-nacl -emit-llvm-bc 
>>> -disable-free -main-file-name test.cpp -mrelocation-model static 
>>> -mdisable-fp-elim -mconstructor-aliases -v -coverage-file 
>>> /tmp/tmpdBbyEQ/test_0.o -nostdsysteminc -nobuiltininc -resource-dir 
>>> /usr/local/bin/../lib/clang/3.3 -D EMSCRIPTEN -D __EMSCRIPTEN__ -U 
>>> __native_client__ -U __pnacl__ -U __ELF__ -U __i386__ -U __i386 -U i386 -U 
>>> __STRICT_ANSI__ -D __IEEE_LITTLE_ENDIAN -U __SSE__ -U __SSE_MATH__ -U 
>>> __SSE2__ -U __SSE2_MATH__ -U __MMX__ -U __APPLE__ -U __linux__ -std=c++03 
>>> -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir 
>>> /dist/simplifile -ferror-limit 19 -fmessage-length 142 -mstackrealign 
>>> -fobjc-runtime=gcc -fobjc-default-synthesize-properties 
>>> -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics 
>>> -backend-option -vectorize-loops -nobuiltininc -nostdsysteminc 
>>> -isystem/dist/emscripten/system/local/include 
>>> -isystem/dist/emscripten/system/include/compat 
>>> -isystem/dist/emscripten/system/include/libcxx 
>>> -isystem/dist/emscripten/system/include 
>>> -isystem/dist/emscripten/system/include/emscripten 
>>> -isystem/dist/emscripten/system/include/bsd 
>>> -isystem/dist/emscripten/system/include/libc 
>>> -isystem/dist/emscripten/system/include/gfx 
>>> -isystem/dist/emscripten/system/include/net 
>>> -isystem/dist/emscripten/system/include/SDL -o /tmp/tmpdBbyEQ/test_0.o 
>>> -x c++ test.cpp
>>>
>>> clang -cc1 version 3.3 based upon LLVM 3.3svn default target 
>>> x86_64-unknown-linux-gnu
>>>
>>> ignoring nonexistent directory "/dist/emscripten/system/local/include"
>>>
>>> ignoring nonexistent directory "/dist/emscripten/system/include/bsd"
>>>
>>> ignoring nonexistent directory "/dist/emscripten/system/include/net"
>>>
>>> #include "..." search starts here:
>>>
>>> #include <...> search starts here:
>>>
>>>  /dist/emscripten/system/include/compat
>>>
>>>  /dist/emscripten/system/include/libcxx
>>>
>>>  /dist/emscripten/system/include
>>>
>>>  /dist/emscripten/system/include/emscripten
>>>
>>>  /dist/emscripten/system/include/libc
>>>
>>>  /dist/emscripten/system/include/gfx
>>>
>>>  /dist/emscripten/system/include/SDL
>>>
>>> End of search list.
>>>
>>> DEBUG    root: emcc step "bitcodeize inputs" took 0.02 seconds
>>>
>>> DEBUG    root: emcc step "bitcodeize inputs" took 0.00 seconds
>>>
>>> DEBUG    root: will generate JavaScript
>>>
>>> DEBUG    root: emcc step "calculate system libraries" took 0.01 seconds
>>>
>>> DEBUG    root: emcc step "link" took 0.00 seconds
>>>
>>> DEBUG    root: saving intermediate processing steps to 
>>> /tmp/emscripten_temp
>>>
>>> DEBUG    root: emcc: LLVM opts: -internalize 
>>> -internalize-public-api-list=main,malloc,free -globaldce -S
>>>
>>> DEBUG    root: emcc step "post-link" took 0.01 seconds
>>>
>>> DEBUG    root: LLVM => JS
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "/dist/emscripten/emscripten.py", line 1405, in <module>
>>>
>>>     _main(environ=os.environ)
>>>
>>>   File "/dist/emscripten/emscripten.py", line 1393, in _main
>>>
>>>     temp_files.run_and_clean(lambda: main(
>>>
>>>   File "/dist/emscripten/tools/tempfiles.py", line 39, in run_and_clean
>>>
>>>     return func()
>>>
>>>   File "/dist/emscripten/emscripten.py", line 1401, in <lambda>
>>>
>>>     DEBUG_CACHE=DEBUG_CACHE,
>>>
>>>   File "/dist/emscripten/emscripten.py", line 1285, in main
>>>
>>>     shared.Building.ensure_struct_info(struct_info)
>>>
>>>   File "/dist/emscripten/tools/shared.py", line 1528, in 
>>> ensure_struct_info
>>>
>>>     import gen_struct_info
>>>
>>>   File "/dist/emscripten/tools/gen_struct_info.py", line 78, in <module>
>>>
>>>     import sys, os, re, json, argparse, tempfile, subprocess
>>>
>>> ImportError: No module named argparse
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "/dist/emscripten/emcc", line 1525, in <module>
>>>
>>>     final = shared.Building.emscripten(final, append_ext=False, 
>>> extra_args=extra_args)
>>>
>>>   File "/dist/emscripten/tools/shared.py", line 1276, in emscripten
>>>
>>>     assert os.path.exists(filename + '.o.js') and len(open(filename + 
>>> '.o.js', 'r').read()) > 0, 'Emscripten failed to generate .js: ' + 
>>> str(compiler_output)
>>>
>>> AssertionError: Emscripten failed to generate .js: 
>>>
>>  -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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