The .a files appear to be empty, I'll try digging deeper...

/home/vagrant/clang-3.2/bin/llvm-ar: error loading 
'/tmp/tmpvGudYc/libfoundation_7.a': invalid file member signature!
DEBUG    root: Archive /tmp/tmpvGudYc/libfoundation_7.a appears to be empty 
(recommendation: link an .so instead of .a)

Here's a more complete error dump:

DEBUG    root: invocation: /home/vagrant/emscripten/emcc -fPIC 
-fno-exceptions -fno-rtti -fstrict-aliasing -Wall -Wno-warn-absolute-paths 
-Wno-multichar -Wextra -Wno-unused-parameter -Wno-unknown-pragmas 
-Wno-ignored-qualifiers -Wno-long-long -Wno-overloaded-virtual 
-Wno-deprecated-writable-strings -Wno-unused-volatile-lvalue 
-D__EMSCRIPTEN__=1 -D__LINUX__=1 -O2 -DNDEBUG -D__EMSCRIPTEN_ASMJS__=1 
-shared --memory-init-file 0 -s WARN_ON_UNDEFINED_SYMBOLS=1 -s 
TOTAL_MEMORY=16777216 -s BUILD_AS_WORKER=1 -s 
EXPORTED_FUNCTIONS=["_dowork"] -s DISABLE_EXCEPTION_CATCHING=1 -O2 
--llvm-lto 1 -s VERBOSE=1 -s ASM_JS=1 -s ASSERTIONS=0 -s 
OUTLINING_LIMIT=20000 -s PRECISE_F32=0 --closure 0 -shared 
-Wl,-soname,libworker_asmjs.js -o 
/home/vagrant/nebula3/bin/emsc/libworker_asmjs.js 
CMakeFiles/worker.dir/foundation/parallel/worker/stdworker.cc.o 
CMakeFiles/worker.dir/foundation/io/worker/stduncompressworker.cc.o 
CMakeFiles/worker.dir/render/coregraphics2/worker/crnutil.cc.o 
CMakeFiles/worker.dir/render/coregraphics2/worker/crunchdecodeworker.cc.o 
CMakeFiles/worker.dir/addons/cdlodterrain/worker/cdlodheightmapdata.cc.o 
CMakeFiles/worker.dir/addons/cdlodterrain/worker/cdlodmeshgenerator.cc.o 
CMakeFiles/worker.dir/addons/cdlodterrain/worker/cdlodmeshworker.cc.o 
-L/home/vagrant/nebula3/lib foundation/libfoundation.a 
extlibs/zlib/libZLIB.a -Wl,-rpath,/home/vagrant/nebula3/lib
INFO     root: (Emscripten: Running sanity checks)
DEBUG    root: compiling to bitcode
DEBUG    root: copying bitcode file: 
CMakeFiles/worker.dir/foundation/parallel/worker/stdworker.cc.o
DEBUG    root: copying bitcode file: 
CMakeFiles/worker.dir/foundation/io/worker/stduncompressworker.cc.o
DEBUG    root: copying bitcode file: 
CMakeFiles/worker.dir/render/coregraphics2/worker/crnutil.cc.o
DEBUG    root: copying bitcode file: 
CMakeFiles/worker.dir/render/coregraphics2/worker/crunchdecodeworker.cc.o
DEBUG    root: copying bitcode file: 
CMakeFiles/worker.dir/addons/cdlodterrain/worker/cdlodheightmapdata.cc.o
DEBUG    root: copying bitcode file: 
CMakeFiles/worker.dir/addons/cdlodterrain/worker/cdlodmeshgenerator.cc.o
DEBUG    root: copying bitcode file: 
CMakeFiles/worker.dir/addons/cdlodterrain/worker/cdlodmeshworker.cc.o
DEBUG    root: copying library file: foundation/libfoundation.a
DEBUG    root: copying library file: extlibs/zlib/libZLIB.a
DEBUG    root: will generate JavaScript
DEBUG    root: considering libcxx: we need set([]) and have set([])
DEBUG    root: considering libcextra: we need set([]) and have set([])
DEBUG    root: considering libcxxabi: we need set([]) and have set([])
DEBUG    root: considering sdl: we need set([]) and have set([])
DEBUG    root: considering libc: we need set(['malloc', 'realloc', 
'_ZdaPv', 'free', 'malloc_usable_size', '_Znaj']) and have set([])
DEBUG    root: including libc
DEBUG    root: linking: ['/tmp/tmpvGudYc/stdworker.cc_0.o', 
'/tmp/tmpvGudYc/stduncompressworker.cc_1.o', 
'/tmp/tmpvGudYc/crnutil.cc_2.o', 
'/tmp/tmpvGudYc/crunchdecodeworker.cc_3.o', 
'/tmp/tmpvGudYc/cdlodheightmapdata.cc_4.o', 
'/tmp/tmpvGudYc/cdlodmeshgenerator.cc_5.o', 
'/tmp/tmpvGudYc/cdlodmeshworker.cc_6.o', 
'/tmp/tmpvGudYc/libfoundation_7.a', '/tmp/tmpvGudYc/libZLIB_8.a', 
'/home/vagrant/.emscripten_cache/libc.bc']
/home/vagrant/clang-3.2/bin/llvm-ar: error loading 
'/tmp/tmpvGudYc/libfoundation_7.a': invalid file member signature!
DEBUG    root: Archive /tmp/tmpvGudYc/libfoundation_7.a appears to be empty 
(recommendation: link an .so instead of .a)
/home/vagrant/clang-3.2/bin/llvm-ar: error loading 
'/tmp/tmpvGudYc/libZLIB_8.a': invalid file member signature!
DEBUG    root: Archive /tmp/tmpvGudYc/libZLIB_8.a appears to be empty 
(recommendation: link an .so instead of .a)
DEBUG    root: emcc: llvm-linking: ['/tmp/tmpvGudYc/stdworker.cc_0.o', 
'/tmp/tmpvGudYc/stduncompressworker.cc_1.o', 
'/tmp/tmpvGudYc/crnutil.cc_2.o', 
'/tmp/tmpvGudYc/crunchdecodeworker.cc_3.o', 
'/tmp/tmpvGudYc/cdlodheightmapdata.cc_4.o', 
'/tmp/tmpvGudYc/cdlodmeshgenerator.cc_5.o', 
'/tmp/tmpvGudYc/cdlodmeshworker.cc_6.o', 
'/home/vagrant/.emscripten_cache/libc.bc'] to 
/tmp/tmpvGudYc/libworker_asmjs.bc
DEBUG    root:     linking took 0.05 seconds
DEBUG    root: saving intermediate processing steps to /tmp/emscripten_temp
DEBUG    root: emcc: LLVM opts: ['-strip-debug', '-disable-internalize', 
'-internalize', '-internalize-public-api-list=dowork,malloc,free', 
'-std-link-opts', '-S']

Am Donnerstag, 9. Januar 2014 19:38:33 UTC+1 schrieb Floh:
>
> Hmm could be, unfortunately that tmp file is gone after the build. The 
> actual libfoundation.a *is* an archive, at least it starts with something 
> like this:
>
> !<arch>
> #_LLVM_SYM_TAB_#1389292218  1000  1000  644     135457
>
> But the temp file which throws the error is gone. Wasn't there some debug 
> option where tmp files are not deleted after the build is finished?
>
> I'll try the vagrant setup mentioned in the Wiki tomorrow (
> https://github.com/rhelmer/emscripten-vagrant), and see if that works.
>
> Cheers,
> -Floh.
>
> Am Donnerstag, 9. Januar 2014 18:57:44 UTC+1 schrieb jj:
>
>> This sounds like the file is not an archive file. Perhaps it's an LLVM 
>> bitcode (.bc) file instead with just an .a suffix?
>>
>>
>> 2014/1/9 Floh <[email protected]>
>>
>>> I'm currently trying to setup a Linux dev-env for emscripten (Ubuntu 
>>> Precise 64-bit, running in Virtual Box on OSX), and I'm getting an error 
>>> which I haven't seen yet on my OSX setup when linking:
>>>
>>> [218/218] Linking CXX shared library 
>>> /home/vagrant/nebula3/bin/emsc/libworker_asmjs.js
>>> /home/vagrant/clang-3.2/bin/llvm-ar: error loading 
>>> '/tmp/tmp1Nnzep/libfoundation_7.a': invalid file member signature!
>>> /home/vagrant/clang-3.2/bin/llvm-ar: error loading 
>>> '/tmp/tmp1Nnzep/libZLIB_8.a': invalid file member signature!
>>>
>>> Anyone seen this error and knows what's the problem?
>>>
>>> Cheers,
>>> -Floh.
>>>
>>>  -- 
>>> 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/groups/opt_out.
>>>
>>
>>

-- 
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/groups/opt_out.

Reply via email to