Open robertaboukhalil opened 1 year ago
@orangeSi I'll take a look, can you share the instructions you used to compile t coffee to WebAssembly?
ok, the main process is:
## go into docker container of emscripten/emsdk:2.0.34
cd /fsxlustre1/skw/software/biowasm/
wget https://github.com/biowasm/biowasm/archive/refs/heads/main.zip
unzip main.zip
cd biowasm-main
## add t_cofffee to biowasm.json
python3 bin/compile.py --tools t_coffee --versions 13.46.0
## ok , then got t_coffee.js and t_coffee.wasm in ./build/t_coffee/13.46.0
## then run it in Chrome, and I removed some thow(e) in ```t_coffee.js``` to make ```t_coffee -version``` works,
#### but ```t_coffee iput.fa``` not work and output above raw error!
and the some detail is:
cat tools/t_coffee/compile.sh
set -eu
cd /fsxlustre1/skw/software/biowasm/biowasm-main/tools/t_coffee
cd tcoffee-Version_13.46.0.919e8c6b/t_coffee/src/
emmake make t_coffee \
GPP=emcc CXX=em++ CC=em++ EM_FLAGS="$EM_FLAGS"
the t_coffee
source code is in http://tcoffee-packages.s3-website.eu-central-1.amazonaws.com/#Stable/Latest/
FOR reproduce my same error:
The test-biowasm.html
+ test-biowasm.js
+ t_coffee.js
+ t_coffee.wasm
which output the raw error can be downlad at
github_debug.zip
I get the same error. For some reason it really doesn't like set_nproc
, which is weird because all it does is set a variable to a number.
But if I comment that out from t_coffee.c
, it keeps going further BUT gives a different error:
Sounds like tcoffee creates a child process to run some other program? That's not supported in WebAssembly. So I don't think tcoffee will be compilable, unless you modify the program to not do any forking.
@robertaboukhalil thanks a lot! I will try to give up the t_coffee
later~
Originally posted by @orangeSi in https://github.com/biowasm/aioli/issues/40#issuecomment-1752002835
detail of
at set_nproc(int) (t_coffee.wasm:0x1689fa)
is as below:Do you occur the silimar error as above?
t_coffee.wasm
andt_coffee.js
is in t_coffee.wasm.js.zipThanks~ Si