Cinder-Emscripten icon indicating copy to clipboard operation
Cinder-Emscripten copied to clipboard

Undefined symbol error _Znaj/_Znwj

Open albalab opened this issue 6 years ago • 0 comments

When I compile I get this error:


MacBook-Pro:emscripten alexander$ ./cibuild
Building a app...
Cleaning Debug ...
...deleted dir: /Users/alexander/Cinder-Emscripten/samples/_opengl/CubeMapping/emscripten/Debug/es2
---------------------------------------------------------------------------------
Building Cinder in Debug mode with 8 compile processes
...created dir: /Users/alexander/Cinder-Emscripten/samples/_opengl/CubeMapping/emscripten/Debug/es2
CMAKE COMMAND: cmake .. -DCMAKE_TOOLCHAIN_FILE=/Users/alexander/emsdk/emscripten/1.38.30/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Debug -DCINDER_GL_ES_2=1 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/alexander/Cinder-Emscripten/samples/_opengl/CubeMapping/emscripten/Debug/es2
Scanning dependencies of target CubeMapping
[ 50%] Building CXX object CMakeFiles/CubeMapping.dir/Users/alexander/Cinder-Emscripten/samples/_opengl/CubeMapping/src/CubeMappingApp.cpp.o
[100%] Linking CXX executable CubeMapping.html
warning: unexpected argument type i64 at index 1 in call to '__fseeko', should be i32
warning: unexpected return type i64 in call to '__ftello', should be i32
warning: unexpected argument type i64 at index 1 in call to '__fseeko', should be i32
warning: unexpected argument type i64 at index 1 in call to '__fseeko', should be i32
error: undefined symbol: _ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5rfindEcj
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
error: undefined symbol: _ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEjjPKcj
error: undefined symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5eraseEjj
error: undefined symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj
error: undefined symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcj
error: undefined symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEjjjjjj
error: undefined symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_jjRKS4_
error: undefined symbol: _Znaj
error: undefined symbol: _Znwj
Error: Aborting compilation due to previous errors
shared:ERROR: '/Users/alexander/emsdk/node/8.9.1_64bit/bin/node /Users/alexander/emsdk/emscripten/1.38.30/src/compiler.js /tmp/tmpgu4jy_.txt /Users/alexander/emsdk/emscripten/1.38.30/src/library_pthread_stub.js' failed (1)
make[2]: *** [CubeMapping.html] Error 1
make[1]: *** [CMakeFiles/CubeMapping.dir/all] Error 2
make: *** [all] Error 2

The error is reproducible:

  • emscripten version 1.38.30 or incoming
  • OS version linux(ubuntu 16) or mac (mojave)

How I can resolve this? Help me, please

albalab avatar May 04 '19 11:05 albalab