Unforunately I don't see any specific clues in that area, but I'm adding a
few more DEBUG lines above the error (see below).
It seems to happens only when Emscripten does the sanity check stuff (such
as after an activation), hence why subsequent runs are ok.
DEBUG root: emcc step "link" took 28.30 seconds
DEBUG root: saving intermediate processing steps to
D:/dev/project/lib/emscripten-1.34.6-r0/.tmp\emscripten_temp
DEBUG root: (not saving intermediate
D:/dev/project/lib/emscripten-1.34.6-r0/.tmp\emscripten_temp\emcc-0-basebc.bc
because deferring linking)
DEBUG root: emcc: LLVM opts: -strip-debug -disable-verify -internalize
-internalize-public-api-list=main,malloc,free,__errno_location,fflush,__cxa_
can_catch,__cxa_is_pointer_type,malloc,malloc,htonl,htons,ntohs,malloc,realloc,htonl,htons,ntohs,malloc,free,emscripten_GetProcAddress,malloc,strstr,m
alloc,malloc,free,free -globaldce -pnacl-abi-simplify-preopt
-pnacl-abi-simplify-postopt -disable-loop-vectorization
-disable-slp-vectorization -vecto
rize-loops=false -vectorize-slp=false -vectorize-slp-aggressive=false [num
inputs: 1]
DEBUG root: emcc step "post-link" took 30.49 seconds
DEBUG root: LLVM => JS
DEBUG root: emscript: bootstrapping struct info...
WARNING root: invocation:
D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\emcc
-D_GNU_SOURCE -o c:\users\gouletr\appdata\local\temp\tm
pkyunwk.js c:\users\gouletr\appdata\local\temp\tmptdmaqy.c -s
BOOTSTRAPPING_STRUCT_INFO=1 -s WARN_ON_UNDEFINED_SYMBOLS=0 -Oz --js-opts 0
--memory-init
-file 0 (in D:\dev\project\source\develop\build\engine\webgl\main_webgl)
INFO root: (Emscripten: Running sanity checks)
DEBUG root: compiling to bitcode
DEBUG root: emcc step "parse arguments and setup" took 0.00 seconds
DEBUG root: compiling source file:
c:\users\gouletr\appdata\local\temp\tmptdmaqy.c
DEBUG root: running:
D:/dev/project/lib/emscripten-1.34.6-r0/clang/tag-e1.34.6/build_tag-e1.34.6_vs2013_64/Release/bin\clang
-target asmjs-unknown
-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=34
-D__EMSCRIPTEN_tiny__=6 -Werror=implicit-function-declaration -nostdinc
-Xclang -nobuil
tininc -Xclang -nostdsysteminc -Xclang
-isystemD:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\system\local\include
-Xclang -isystemD:\
dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\system\include\compat
-Xclang -isystemD:\dev\project\lib\emscripten-1.34.6-r0\emscripten\
tag-1.34.6\system\include -Xclang
-isystemD:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\system\include\emscripten
-Xclang -isystemD:\
dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\system\include\libc
-Xclang -isystemD:\dev\project\lib\emscripten-1.34.6-r0\emscripten\ta
g-1.34.6\system\lib\libc\musl\arch\emscripten -Xclang
-isystemD:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\system\include\libcxx
-D_
GNU_SOURCE -Oz -mllvm -disable-llvm-optzns
c:\users\gouletr\appdata\local\temp\tmptdmaqy.c -Xclang
-isystemD:\dev\project\lib\emscripten-1.34.6-r0\em
scripten\tag-1.34.6\system\include\SDL -emit-llvm -c -o
D:/dev/project/lib/emscripten-1.34.6-r0/.tmp\tmpbf3cch\tmptdmaqy_0.o
DEBUG root: emcc step "bitcodeize inputs" took 0.37 seconds
DEBUG root: optimizing c:\users\gouletr\appdata\local\temp\tmptdmaqy.c
DEBUG root: emcc: LLVM opts: -Oz -disable-loop-vectorization
-disable-slp-vectorization -vectorize-loops=false -vectorize-slp=false
-vectorize-slp-
aggressive=false [num inputs: 1]
DEBUG root: emcc step "process inputs" took 0.14 seconds
DEBUG root: will generate JavaScript
DEBUG root: emcc step "calculate system libraries" took 0.00 seconds
DEBUG root: emcc step "link" took 0.00 seconds
DEBUG root: saving intermediate processing steps to
D:/dev/project/lib/emscripten-1.34.6-r0/.tmp\emscripten_temp
DEBUG root: emcc: LLVM opts: -strip-debug -disable-verify -internalize
-internalize-public-api-list=main,malloc,free,__errno_location,fflush -globa
ldce -pnacl-abi-simplify-preopt -pnacl-abi-simplify-postopt
-disable-loop-vectorization -disable-slp-vectorization
-vectorize-loops=false -vectorize-s
lp=false -vectorize-slp-aggressive=false [num inputs: 1]
DEBUG root: emcc step "post-link" took 0.10 seconds
DEBUG root: LLVM => JS
DEBUG root: emscript: llvm backend:
D:/dev/project/lib/emscripten-1.34.6-r0/clang/tag-e1.34.6/build_tag-e1.34.6_vs2013_64/Release/bin\llc
D:\dev\s
tingray\lib\emscripten-1.34.6-r0\.tmp\tmpbf3cch\tmpkyunwk.bc -march=js
-filetype=asm -o
D:\dev\project\lib\emscripten-1.34.6-r0\.tmp\emscripten_temp\
tmpbxxadi.4.js -O2
DEBUG root: emscript: llvm backend took 0.0980000495911 seconds
DEBUG root: emscript: js compiler glue
DEBUG root: emscript: glue took 0.25400018692 seconds
DEBUG root: asm text sizes[[189289], 0, 130, 838, 0, 0, 32, 230, 268,
296, 106]
DEBUG root: emscript: final python processing took 0.0259997844696
seconds
DEBUG root: emcc step "emscript (llvm=>js)" took 0.42 seconds
DEBUG root: optimizing memory initialization
DEBUG root: emcc step "source transforms" took 0.03 seconds
DEBUG root: emcc step "js opts" took 0.00 seconds
DEBUG root: emcc step "final emitting" took 0.03 seconds
DEBUG root: total time: 1.09 seconds
gen_struct_info: Generating C code...
gen_struct_info: Compiling generated code...
gen_struct_info: Calling generated program...
DEBUG root: emscript: bootstrapping struct info complete
DEBUG root: emscript: llvm backend:
D:/dev/project/lib/emscripten-1.34.6-r0/clang/tag-e1.34.6/build_tag-e1.34.6_vs2013_64/Release/bin\llc
D:\dev\s
tingray\lib\emscripten-1.34.6-r0\.tmp\tmpfezxdh\project_webgl_dev.bc
-march=js -filetype=asm -o
D:\dev\project\lib\emscripten-1.34.6-r0\.tmp\emscrip
ten_temp\tmpt9hezs.4.js -emscripten-enable-pthreads -O2
DEBUG root: emscript: llvm backend took 15.2250001431 seconds
DEBUG root: emscript: js compiler glue
warning: unresolved symbol: _ZN5project26SomethingC1Ev
Traceback (most recent call last):
File
"D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\emcc", line
1303, in <module>
final = shared.Building.emscripten(final, append_ext=False,
extra_args=extra_args)
File
"D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\tools\shared.py",
line 1512, in emscripten
call_emscripten(cmdline)
File
"D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\emscripten.py",
line 1079, in _main
temp_files.run_and_clean(lambda: main(
File
"D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\tools\tempfiles.py",
line 47, in run_and_clean
return func()
File
"D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\emscripten.py",
line 1085, in <lambda>
DEBUG_CACHE=DEBUG_CACHE,
File
"D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\emscripten.py",
line 983, in main
temp_files=temp_files, DEBUG=DEBUG, DEBUG_CACHE=DEBUG_CACHE)
File
"D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\emscripten.py",
line 199, in emscript
cwd=path_from_root('src'), error_limit=300)
File
"D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\tools\jsrun.py",
line 75, in run_js
raise Exception('Expected the command ' + str(command) + ' to finish
with return code ' + str(assert_returncode) + ', but it returned with code '
+ str(proc.returncode) + ' instead! Output: ' + str(ret)[:error_limit])
Exception: Expected the command
['D:/dev/project/lib/emscripten-1.34.6-r0/node/0.10.17_64bit/node.exe',
'D:\\dev\\project\\lib\\emscripten-1.34.6-r0
\\emscripten\\tag-1.34.6\\src\\compiler.js',
'D:\\dev\\project\\lib\\emscripten-1.34.6-r0\\.tmp\\emscripten_temp\\tmpiuwghs.txt',
'D:\\dev\\project\
\lib\\emscripten-1.34.6-r0\\emscripten\\tag-1.34.6\\src\\library_pthread.js']
to finish with return code 0, but it returned with code 8 instead! Outpu
t: // The Module object: Our interface to the outside world. We import
// and export values on it, and do the work to get that through
// closure compiler if necessary. There are various ways Module can be used:
// 1. Not defined. We create it here
// 2. A function parameter, function(Module) { ..gener
On Thursday, August 27, 2015 at 2:25:38 PM UTC-4, Alon Zakai wrote:
>
> Very strange. What is the full output when EMCC_DEBUG=1 in the env, when
> this error occurs? Might be something helpful there.
>
> On Thu, Aug 27, 2015 at 10:33 AM, Robert Goulet <[email protected]
> <javascript:>> wrote:
>
>> Using the tag 1.34.6 from the incoming branch, at link time I get this
>> error when emcc reports the first linker warning:
>>
>> warning: unresolved symbol: _ZN5project26SomethingC1Ev
>> Traceback (most recent call last):
>> File
>> "D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\emcc", line
>> 1303, in <module>
>> final = shared.Building.emscripten(final, append_ext=False,
>> extra_args=extra_args)
>> File
>> "D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\tools\shared.py",
>>
>> line 1512, in emscripten
>> call_emscripten(cmdline)
>> File
>> "D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\emscripten.py",
>>
>> line 1079, in _main
>> temp_files.run_and_clean(lambda: main(
>> File
>> "D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\tools\tempfiles.py",
>>
>> line 47, in run_and_clean
>> return func()
>> File
>> "D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\emscripten.py",
>>
>> line 1085, in <lambda>
>> DEBUG_CACHE=DEBUG_CACHE,
>> File
>> "D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\emscripten.py",
>>
>> line 983, in main
>> temp_files=temp_files, DEBUG=DEBUG, DEBUG_CACHE=DEBUG_CACHE)
>> File
>> "D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\emscripten.py",
>>
>> line 199, in emscript
>> cwd=path_from_root('src'), error_limit=300)
>> File
>> "D:\dev\project\lib\emscripten-1.34.6-r0\emscripten\tag-1.34.6\tools\jsrun.py",
>>
>> line 75, in run_js
>> raise Exception('Expected the command ' + str(command) + ' to finish
>> with return code ' + str(assert_returncode) + ', but it returned with code '
>> + str(proc.returncode) + ' instead! Output: ' + str(ret)[:error_limit])
>> Exception: Expected the command
>> ['D:/dev/project/lib/emscripten-1.34.6-r0/node/0.10.17_64bit/node.exe',
>> 'D:\\dev\\project\\lib\\emscripten-1.34.6-r0
>> \\emscripten\\tag-1.34.6\\src\\compiler.js',
>> 'D:\\dev\\project\\lib\\emscripten-1.34.6-r0\\.tmp\\tmp4chxcu.txt',
>> 'D:\\dev\\project\\lib\\emscripten-
>> 1.34.6-r0\\emscripten\\tag-1.34.6\\src\\library_pthread.js'] to finish
>> with return code 0, but it returned with code 8 instead! Output: // The
>> Module
>> object: Our interface to the outside world. We import
>> // and export values on it, and do the work to get that through
>> // closure compiler if necessary. There are various ways Module can be
>> used:
>> // 1. Not defined. We create it here
>> // 2. A function parameter, function(Module) { ..gener
>>
>> Launching another build without cleaning anything, after getting this
>> error, will properly output the list of symbols that couldn't be found,
>> without issues.
>>
>> Wasn't happening in 1.34.1.
>>
>> Anyone else seen this? Doesn't seems related to the project I'm building.
>>
>> Thanks!
>>
>> --
>> 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.