Hey,

As far as I understand, your problem occurs before the actual Boost build, 
and it is related to the installation of the Emscripten Zlib port.

Follow-up to my original post: I have created a git repository for building 
Boost (1.53, 1.55 or 1.58) on Emscripten (and a few other platforms...)

https://github.com/arielm/chronotext-boost

Ariel

On Thursday, May 28, 2015 at 7:52:49 PM UTC+3, ZengRui Wang wrote:
>
> Hi, thanks for the sharing, but I encountered one issue of the 
> flag USE_ZLIB=1. If I enable this flag, the compilation will failed with 
> the error message as follows:
>
> ...failed clang-linux.compile.c++.without-pth 
> bin.v2/libs/wave/build/clang-linux-emscripten/release/link-static/threading-multi/cpplexer/re2clex/aq.o...
> clang-linux.compile.c++.without-pth 
> bin.v2/libs/wave/build/clang-linux-emscripten/release/link-static/threading-multi/cpplexer/re2clex/cpp_re.o
> INFO     root: (Emscripten: Running sanity checks)
> WARNING  root: building port: zlib...
> Traceback (most recent call last):
>   File "/home/zewang/emsdk_portable/emscripten/master/emcc", line 1067, in 
> <module>
>     args = get_bitcode_args([input_file]) + ['-emit-llvm', '-c', '-o', 
> output_file]
>   File "/home/zewang/emsdk_portable/emscripten/master/emcc", line 1050, in 
> get_bitcode_args
>     args = system_libs.process_args(args, shared.Settings)
>   File 
> "/home/zewang/emsdk_portable/emscripten/master/tools/system_libs.py", line 
> 894, in process_args
>     args = port.process_args(Ports, args, settings, shared)
>   File 
> "/home/zewang/emsdk_portable/emscripten/master/tools/ports/zlib.py", line 
> 16, in process_args
>     get(ports, settings, shared)
>   File 
> "/home/zewang/emsdk_portable/emscripten/master/tools/ports/zlib.py", line 
> 10, in get
>     ['libz.a'])]
>   File 
> "/home/zewang/emsdk_portable/emscripten/master/tools/system_libs.py", line 
> 871, in build_project
>     return shared.Cache.get(name, create)
>   File "/home/zewang/emsdk_portable/emscripten/master/tools/cache.py", 
> line 38, in get
>     shutil.copyfile(temp, cachename)
>   File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
>     with open(src, 'rb') as fsrc:
> IOError: [Errno 2] No such file or directory: 
> '/home/zewang/.emscripten_cache/ports-builds/zlib/libz.a'
>
> Did you have the same issue? Or did I missed something? 
> Thank you!
> On Wednesday, May 20, 2015 at 9:56:18 AM UTC-7, chronotext wrote:
>>
>> Hey,
>>
>> I've recently started to play with emscripten and I'm totally amazed. So 
>> first-things-first: congrats to Alon and all the contributors!
>>
>> One of the first topics I wanted to test is boost, since I'm using it 
>> intensively in my cross-platform C++11 projects (OSX, Windows, iOS, 
>> Android...)
>>
>> So far, it seems to work as intended, including modules which are not 
>> "header only" (e.g. filesystem or iostreams...)
>>
>> Everything is documented here: 
>> https://gist.github.com/arielm/69a7488172611e74bfd4
>>
>> The gist will probably evolve. Comments are welcome...
>>
>> Ariel
>> http://chronotext.org
>>
>

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