Hello.
I made a clone of the repository.
Copied all modules.
But several modules did not compile.
/usr/bin/python3.8 /home/sergey/Desktop/newkind/db-control/node/biowasm/bin/compile.py --tools bcftools --versions 1.10
/usr/bin/python3.8 /home/sergey/Desktop/newkind/db-control/node/biowasm/bin/compile.py --tools bcftools --versions 1.10
git submodule update --init --recursive tools/bcftools/src/ && git submodule status tools/bcftools/src/
9f0a0a2451bb64e52a12c4a586ffa5744a4bd965 tools/bcftools/src (1.10)
git submodule update --init --recursive tools/htslib/src/ && git submodule status tools/htslib/src/
7c16b5665daf4b2af82574d24f1649f3c385fe2c tools/htslib/src (1.10)
mkdir -p /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10
bin/compile.sh tools/htslib 1.10
——————————————————————————————————————————————————
🧬 htslib, branch '1.10'
——————————————————————————————————————————————————
> Resetting code changes...
HEAD is now at 7c16b56 Release 1.10
Removing a.wasm
HEAD is now at 7c16b56 Release 1.10
> Applying patch file <../patches/1.10.patch>...
Checking patch Makefile...
Checking patch version.sh...
Applied patch Makefile cleanly.
Applied patch version.sh cleanly.
> Compiling...
Reading package lists...
Building dependency tree...
Reading state information...
autoconf is already the newest version (2.69-11.1).
libbz2-dev is already the newest version (1.0.8-2).
libcurl4-gnutls-dev is already the newest version (7.68.0-1ubuntu2.13).
liblzma-dev is already the newest version (5.2.4-1ubuntu1.1).
libssl-dev is already the newest version (1.1.1f-1ubuntu2.16).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu1.4).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
rm -f test/*.tmp test/*.tmp.* test/longrefs/*.tmp.* test/tabix/*.tmp.* test/tabix/FAIL* header-exports.txt shlib-exports-so.txt
rm -f *.o *.pico cram/*.o cram/*.pico test/*.o test/*.dSYM version.h
rm -f hts-object-files
rm -f libhts.so libhts.so.*
rm -f libhts.a bgzip htsfile tabix test/hts_endian test/fieldarith test/hfile test/pileup test/sam test/test_bgzf test/test_kstring test/test_realn test/test-regidx test/test_str2int test/test_view test/test_index test/test-vcf-api test/test-vcf-sweep test/test-bcf-sr test/fuzz/hts_open_fuzzer.o test/test-bcf-translate test/test-parse-reg test/thrash_threads1 test/thrash_threads2 test/thrash_threads3 test/thrash_threads4 test/thrash_threads5 test/thrash_threads6 test/thrash_threads7
configure: ./configure "CFLAGS=-s USE_ZLIB=1 -s USE_BZIP2=1" --disable-lzma
checking for gcc... /home/sergey/emsdk/upstream/emscripten/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/home/sergey/Desktop/newkind/db-control/node/biowasm/tools/htslib/src':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
emconfigure: error: './configure "CFLAGS=-s USE_ZLIB=1 -s USE_BZIP2=1" --disable-lzma' failed (returned 1)
make: make tabix CC=emcc AR=emar CFLAGS=-O2 -s USE_ZLIB=1 -s USE_BZIP2=1 LDFLAGS=-s USE_ZLIB=1 -s INVOKE_RUN=0 -s FORCE_FILESYSTEM=1 -s EXPORTED_RUNTIME_METHODS=["callMain","FS","PROXYFS","WORKERFS"] -s MODULARIZE=1 -s ENVIRONMENT="web,worker" -s ALLOW_MEMORY_GROWTH=1 -lworkerfs.js -lproxyfs.js -O2
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o tabix.o tabix.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o kfunc.o kfunc.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o knetfile.o knetfile.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o kstring.o kstring.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o bcf_sr_sort.o bcf_sr_sort.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o bgzf.o bgzf.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o errmod.o errmod.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o faidx.o faidx.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o header.o header.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o hfile.o hfile.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o hfile_net.o hfile_net.c
echo '#define HTS_VERSION_TEXT "1.10"' > version.h
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o hts.o hts.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o hts_os.o hts_os.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o md5.o md5.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o multipart.o multipart.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o probaln.o probaln.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o realn.o realn.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o regidx.o regidx.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o region.o region.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o sam.o sam.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o synced_bcf_reader.o synced_bcf_reader.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o vcf_sweep.o vcf_sweep.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o tbx.o tbx.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o textutils.o textutils.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o thread_pool.o thread_pool.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o vcf.o vcf.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o vcfutils.o vcfutils.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/cram_codecs.o cram/cram_codecs.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/cram_decode.o cram/cram_decode.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/cram_encode.o cram/cram_encode.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/cram_external.o cram/cram_external.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/cram_index.o cram/cram_index.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/cram_io.o cram/cram_io.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/cram_samtools.o cram/cram_samtools.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/cram_stats.o cram/cram_stats.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/mFILE.o cram/mFILE.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/open_trace_file.o cram/open_trace_file.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/pooled_alloc.o cram/pooled_alloc.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/rANS_static.o cram/rANS_static.c
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o cram/string_alloc.o cram/string_alloc.c
emar -rc libhts.a kfunc.o knetfile.o kstring.o bcf_sr_sort.o bgzf.o errmod.o faidx.o header.o hfile.o hfile_net.o hts.o hts_os.o md5.o multipart.o probaln.o realn.o regidx.o region.o sam.o synced_bcf_reader.o vcf_sweep.o tbx.o textutils.o thread_pool.o vcf.o vcfutils.o cram/cram_codecs.o cram/cram_decode.o cram/cram_encode.o cram/cram_external.o cram/cram_index.o cram/cram_io.o cram/cram_samtools.o cram/cram_stats.o cram/mFILE.o cram/open_trace_file.o cram/pooled_alloc.o cram/rANS_static.o cram/string_alloc.o
/home/sergey/emsdk/upstream/emscripten/emranlib libhts.a
emcc -s USE_ZLIB=1 -s INVOKE_RUN=0 -s FORCE_FILESYSTEM=1 -s EXPORTED_RUNTIME_METHODS=["callMain","FS","PROXYFS","WORKERFS"] -s MODULARIZE=1 -s ENVIRONMENT="web,worker" -s ALLOW_MEMORY_GROWTH=1 -lworkerfs.js -lproxyfs.js -O2 -o ../build/tabix.js tabix.o libhts.a -lbz2 -lz -lpthread
make: make htsfile CC=emcc AR=emar CFLAGS=-O2 -s USE_ZLIB=1 -s USE_BZIP2=1 LDFLAGS=-s USE_ZLIB=1 -s INVOKE_RUN=0 -s FORCE_FILESYSTEM=1 -s EXPORTED_RUNTIME_METHODS=["callMain","FS","PROXYFS","WORKERFS"] -s MODULARIZE=1 -s ENVIRONMENT="web,worker" -s ALLOW_MEMORY_GROWTH=1 -lworkerfs.js -lproxyfs.js -O2
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o htsfile.o htsfile.c
emcc -s USE_ZLIB=1 -s INVOKE_RUN=0 -s FORCE_FILESYSTEM=1 -s EXPORTED_RUNTIME_METHODS=["callMain","FS","PROXYFS","WORKERFS"] -s MODULARIZE=1 -s ENVIRONMENT="web,worker" -s ALLOW_MEMORY_GROWTH=1 -lworkerfs.js -lproxyfs.js -O2 -o ../build/htsfile.js htsfile.o libhts.a -lbz2 -lz -lpthread
make: make bgzip CC=emcc AR=emar CFLAGS=-O2 -s USE_ZLIB=1 -s USE_BZIP2=1 LDFLAGS=-s USE_ZLIB=1 -s INVOKE_RUN=0 -s FORCE_FILESYSTEM=1 -s EXPORTED_RUNTIME_METHODS=["callMain","FS","PROXYFS","WORKERFS"] -s MODULARIZE=1 -s ENVIRONMENT="web,worker" -s ALLOW_MEMORY_GROWTH=1 -lworkerfs.js -lproxyfs.js -O2
emcc -O2 -s USE_ZLIB=1 -s USE_BZIP2=1 -I. -c -o bgzip.o bgzip.c
emcc -s USE_ZLIB=1 -s INVOKE_RUN=0 -s FORCE_FILESYSTEM=1 -s EXPORTED_RUNTIME_METHODS=["callMain","FS","PROXYFS","WORKERFS"] -s MODULARIZE=1 -s ENVIRONMENT="web,worker" -s ALLOW_MEMORY_GROWTH=1 -lworkerfs.js -lproxyfs.js -O2 -o ../build/bgzip.js bgzip.o libhts.a -lbz2 -lz -lpthread
> Finalizing glue code...
cp tools/htslib/build/tabix.js /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/
md5sum /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/tabix.js | sed 's|/home/sergey/Desktop/newkind/db-control/node/biowasm/build/||' >> /home/sergey/Desktop/newkind/db-control/node/biowasm/build/manifest.stg.tmp
cp tools/htslib/build/tabix.wasm /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/
md5sum /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/tabix.wasm | sed 's|/home/sergey/Desktop/newkind/db-control/node/biowasm/build/||' >> /home/sergey/Desktop/newkind/db-control/node/biowasm/build/manifest.stg.tmp
cp tools/htslib/build/htsfile.js /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/
md5sum /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/htsfile.js | sed 's|/home/sergey/Desktop/newkind/db-control/node/biowasm/build/||' >> /home/sergey/Desktop/newkind/db-control/node/biowasm/build/manifest.stg.tmp
cp tools/htslib/build/htsfile.wasm /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/
md5sum /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/htsfile.wasm | sed 's|/home/sergey/Desktop/newkind/db-control/node/biowasm/build/||' >> /home/sergey/Desktop/newkind/db-control/node/biowasm/build/manifest.stg.tmp
cp tools/htslib/build/bgzip.js /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/
md5sum /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/bgzip.js | sed 's|/home/sergey/Desktop/newkind/db-control/node/biowasm/build/||' >> /home/sergey/Desktop/newkind/db-control/node/biowasm/build/manifest.stg.tmp
cp tools/htslib/build/bgzip.wasm /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/
md5sum /home/sergey/Desktop/newkind/db-control/node/biowasm/build/htslib/1.10/bgzip.wasm | sed 's|/home/sergey/Desktop/newkind/db-control/node/biowasm/build/||' >> /home/sergey/Desktop/newkind/db-control/node/biowasm/build/manifest.stg.tmp
mkdir -p /home/sergey/Desktop/newkind/db-control/node/biowasm/build/bcftools/1.10
bin/compile.sh tools/bcftools 1.10
——————————————————————————————————————————————————
🧬 bcftools, branch '1.10'
——————————————————————————————————————————————————
> Resetting code changes...
HEAD is now at 9f0a0a2 Release 1.10
Removing a.wasm
HEAD is now at 9f0a0a2 Release 1.10
> Applying patch file <../patches/1.10.patch>...
Checking patch Makefile...
Checking patch main.c...
Checking patch version.sh...
Applied patch Makefile cleanly.
Applied patch main.c cleanly.
Applied patch version.sh cleanly.
> Compiling...
configure.ac:94: warning: AC_CONFIG_SUBDIRS: you should use literals
../../lib/autoconf/status.m4:1097: AC_CONFIG_SUBDIRS is expanded from...
m4/ax_with_htslib.m4:55: AX_WITH_HTSLIB is expanded from...
configure.ac:94: the top level
configure.ac:94: warning: AC_CONFIG_SUBDIRS: you should use literals
../../lib/autoconf/status.m4:1097: AC_CONFIG_SUBDIRS is expanded from...
m4/ax_with_htslib.m4:55: AX_WITH_HTSLIB is expanded from...
configure.ac:94: the top level
configure: ./configure --with-htslib=../../htslib/src/ "CFLAGS=-s USE_ZLIB=1 -s USE_BZIP2=1"
checking for gcc... /home/sergey/emsdk/upstream/emscripten/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/home/sergey/Desktop/newkind/db-control/node/biowasm/tools/bcftools/src':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
emconfigure: error: './configure --with-htslib=../../htslib/src/ "CFLAGS=-s USE_ZLIB=1 -s USE_BZIP2=1"' failed (returned 1)
make: make bcftools CC=emcc AR=emar CFLAGS=-O2 -s USE_ZLIB=1 -s USE_BZIP2=1 LDFLAGS=-s USE_ZLIB=1 -s INVOKE_RUN=0 -s FORCE_FILESYSTEM=1 -s EXPORTED_RUNTIME_METHODS=["callMain","FS","PROXYFS","WORKERFS"] -s MODULARIZE=1 -s ENVIRONMENT="web,worker" -s ALLOW_MEMORY_GROWTH=1 -lworkerfs.js -lproxyfs.js -s ERROR_ON_UNDEFINED_SYMBOLS=0 -O2 --preload-file test/annotate.vcf@/bcftools/annotate.vcf
config.mk:34: ../htslib/htslib_static.mk: No such file or directory
make: *** No rule to make target '../htslib/htslib_static.mk'. Stop.
emmake: error: 'make bcftools CC=emcc AR=emar "CFLAGS=-O2 -s USE_ZLIB=1 -s USE_BZIP2=1" "LDFLAGS=-s USE_ZLIB=1 -s INVOKE_RUN=0 -s FORCE_FILESYSTEM=1 -s EXPORTED_RUNTIME_METHODS=[\"callMain\",\"FS\",\"PROXYFS\",\"WORKERFS\"] -s MODULARIZE=1 -s ENVIRONMENT=\"web,worker\" -s ALLOW_MEMORY_GROWTH=1 -lworkerfs.js -lproxyfs.js -s ERROR_ON_UNDEFINED_SYMBOLS=0 -O2 --preload-file test/annotate.vcf@/bcftools/annotate.vcf"' failed (returned 2)
> Finalizing glue code...
ls: cannot access '../build/*.js': No such file or directory
cp tools/bcftools/build/bcftools.js /home/sergey/Desktop/newkind/db-control/node/biowasm/build/bcftools/1.10/
cp: cannot stat 'tools/bcftools/build/bcftools.js': No such file or directory
md5sum /home/sergey/Desktop/newkind/db-control/node/biowasm/build/bcftools/1.10/bcftools.js | sed 's|/home/sergey/Desktop/newkind/db-control/node/biowasm/build/||' >> /home/sergey/Desktop/newkind/db-control/node/biowasm/build/manifest.stg.tmp
md5sum: /home/sergey/Desktop/newkind/db-control/node/biowasm/build/bcftools/1.10/bcftools.js: No such file or directory
cp tools/bcftools/build/bcftools.wasm /home/sergey/Desktop/newkind/db-control/node/biowasm/build/bcftools/1.10/
cp: cannot stat 'tools/bcftools/build/bcftools.wasm': No such file or directory
md5sum /home/sergey/Desktop/newkind/db-control/node/biowasm/build/bcftools/1.10/bcftools.wasm | sed 's|/home/sergey/Desktop/newkind/db-control/node/biowasm/build/||' >> /home/sergey/Desktop/newkind/db-control/node/biowasm/build/manifest.stg.tmp
md5sum: /home/sergey/Desktop/newkind/db-control/node/biowasm/build/bcftools/1.10/bcftools.wasm: No such file or directory
cp tools/bcftools/build/bcftools.data /home/sergey/Desktop/newkind/db-control/node/biowasm/build/bcftools/1.10/
cp: cannot stat 'tools/bcftools/build/bcftools.data': No such file or directory
md5sum /home/sergey/Desktop/newkind/db-control/node/biowasm/build/bcftools/1.10/bcftools.data | sed 's|/home/sergey/Desktop/newkind/db-control/node/biowasm/build/||' >> /home/sergey/Desktop/newkind/db-control/node/biowasm/build/manifest.stg.tmp
md5sum: /home/sergey/Desktop/newkind/db-control/node/biowasm/build/bcftools/1.10/bcftools.data: No such file or directory
rm /home/sergey/Desktop/newkind/db-control/node/biowasm/build/manifest.stg.tmp