Hi,

I am aiming at building a custom version of StockfishJS 
<https://github.com/nmrugg/stockfish.js/> in order to use it with 
React-Native.

I am using 

   - Kubuntu 19.04 64 bits
   - a recent version a Emscripten SDK (downloaded today) : not the 
   incoming, but the standard version


So, I started to install emscripten sdk and try to build it in a standard 
way :

   1. I went inside src subfolder of the repository sources
   2. Launched the command 
   
   make build ARCH=wasm COMP=emscripten
   
   .
   
But it fails, the errors are joined in the output.txt.

The main error is 

shared:ERROR: '/home/laurent-bernabe/Programmes/emsdk/node/8.9.1_64bit/bin/node 
/home/laurent-bernabe/Programmes/emsdk/fastcomp/emscripten/src/compiler.js 
/tmp/tmpbZp3OW.txt /home/laurent-bernabe/Programmes/emsdk/fastcomp/ems
cripten/src/library_pthread_stub.js' failed (1) 



Thanks in advance,

Regards

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/7fbf46e7-6b2f-4d08-b608-dd9f9af185d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Config:
debug: 'no'
sanitize: 'no'
optimize: 'yes'
arch: 'any'
bits: '32'
kernel: 'Linux'
os: 'GNU/Linux'
prefetch: 'no'
popcnt: 'no'
sse: 'no'
pext: 'no'

Flags:
CXX: em++
CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto
LDFLAGS:  -s WASM=1 -s BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s 
NO_FILESYSTEM=1 -s EXPORTED_FUNCTIONS=[_init, _uci_command] --memory-init-file 
0 -s NO_EXIT_RUNTIME=1 --pre-js pre.js --post-js post.js -O3 -O3 -Wall 
-Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto

Testing config sanity. If this fails, try 'make help' ...

make ARCH=wasm COMP=emscripten all
make[1] : on entre dans le répertoire « 
/home/laurent-bernabe/Documents/Programmation/ProjetsRecuperes/stockfish.js/src 
»
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o bitbase.o bitbase.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o bitboard.o bitboard.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o endgame.o endgame.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o evaluate.o evaluate.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o main.o main.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o material.o material.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o misc.o misc.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o movegen.o movegen.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o movepick.o movepick.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o pawns.o pawns.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o position.o position.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o psqt.o psqt.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o search.o search.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o thread.o thread.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o timeman.o timeman.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o tt.o tt.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o uci.o uci.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -Wall -Wcast-qual -fno-exceptions -std=c++11  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI 
-DATOMIC -DCRAZYHOUSE -DHORDE -DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 
-DNO_PREFETCH -flto   -c -o ucioption.o ucioption.cpp
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
em++ -o stockfish.js bitbase.o bitboard.o endgame.o evaluate.o main.o 
material.o misc.o movegen.o movepick.o pawns.o position.o psqt.o search.o 
thread.o timeman.o tt.o uci.o ucioption.o  -s WASM=1 -s 
BINARYEN_ASYNC_COMPILATION=0 -s TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -s 
EXPORTED_FUNCTIONS="['_init', '_uci_command']" --memory-init-file 0 -s 
NO_EXIT_RUNTIME=1 --pre-js pre.js --post-js post.js -O3 -O3 -Wall -Wcast-qual 
-fno-exceptions -std=c++11  -s WASM=1 -s BINARYEN_ASYNC_COMPILATION=0 -s 
TOTAL_MEMORY=67108864 -s NO_FILESYSTEM=1 -DANTI -DATOMIC -DCRAZYHOUSE -DHORDE 
-DKOTH -DRACE -DRELAY -DTHREECHECK -DNDEBUG -O3 -DNO_PREFETCH -flto
emcc:WARNING: WASM_ASYNC_COMPILATION disabled due to user options. This will 
reduce performance and compatibility (some browsers limit synchronous 
compilation), see 
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#codegen-effects
error: undefined symbol: __cxa_uncaught_exception
warning: To disable errors for undefined symbols use `-s 
ERROR_ON_UNDEFINED_SYMBOLS=0`
Error: Aborting compilation due to previous errors
shared:ERROR: '/home/laurent-bernabe/Programmes/emsdk/node/8.9.1_64bit/bin/node 
/home/laurent-bernabe/Programmes/emsdk/fastcomp/emscripten/src/compiler.js 
/tmp/tmpPhDD9a.txt 
/home/laurent-bernabe/Programmes/emsdk/fastcomp/emscripten/src/library_pthread_stub.js'
 failed (1)
make[1]: *** [Makefile:647: stockfish.js] Error 1
make[1] : on quitte le répertoire « 
/home/laurent-bernabe/Documents/Programmation/ProjetsRecuperes/stockfish.js/src 
»
make: *** [Makefile:564: build] Error 2

Reply via email to