cuihantao / andesapp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from rwl/andesapp
Andes package for Pyodide
License: MIT License
This project forked from rwl/andesapp
Andes package for Pyodide
License: MIT License
@rwl: I tried to build the image using your code but it failed. It looks like the iodide/pyodide:9
image is outdated, so I made an attempt to use Pyodide 0.19. The latest version is 0.21, but the image pyodide/pyodide-env:latest
image does not come with the required Python 3.10.
I made some minor tweaks to the meta.yaml
for SuiteSparse and F2CLAPACK because of the field source
became mandatory. Then I ran into the issue of not being able to link to blas and lapack. It's the same issue when I tried to build kvxopt alone using the SuiteSparse and CLAPACK that came with 0.20 in a different Docker image.
I suspect the locations of the F2CLAPACK_WA
and SuiteSparse-WA
folders are incorrect. If you have any suggestions, let me know.
Installed /usr/src/pyodide-0.19.0/packages/.artifacts/lib/python/kvxopt-1.2.6.0-py3.9-linux-x86_64.egg
Processing dependencies for kvxopt==1.2.6.0
Finished processing dependencies for kvxopt==1.2.6.0
wasm-ld: error: unable to find library -llapack
wasm-ld: error: unable to find library -lblas
wasm-ld: error: unable to find library -lf2c
emcc: error: '/usr/src/pyodide-0.19.0/emsdk/emsdk/upstream/bin/wasm-ld -o build/lib.linux-x86_64-3.9/kvxopt/base.cpython-39-x86_64-linux-gnu.so --whole-archive -L/usr/src/pyodide-0.19.0/cpython/installs/python-3.9.5/lib/ build/temp.linux-x86_64-3.9/src/C/base.o build/temp.linux-x86_64-3.9/src/C/dense.o build/temp.linux-x86_64-3.9/src/C/sparse.o -L../../../F2CLAPACK/F2CLAPACK_WA -llapack -lblas -lf2c -L/usr/src/pyodide-0.19.0/emsdk/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic --no-whole-archive -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --lto-legacy-pass-manager --allow-undefined --import-memory --strip-debug --export-all --no-gc-sections --experimental-pic -shared' failed (1)
[2022-08-11 21:40:29] Building package kvxopt...
[line 1 of 338]
emcc -O2 -g0 -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -Wall -fPIC -I/usr/src/pyodide-0.19.0/cpython/installs/python-3.9.5/include/python3.9 -c src/C/base.c -o build/temp.linux-x86_64-3.9/src/C/base.o
[line 2 of 338]
emcc -O2 -g0 -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -Wall -fPIC -I/usr/src/pyodide-0.19.0/cpython/installs/python-3.9.5/include/python3.9 -c src/C/dense.c -o build/temp.linux-x86_64-3.9/src/C/dense.o
[line 3 of 338]
emcc -O2 -g0 -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -Wall -fPIC -I/usr/src/pyodide-0.19.0/cpython/installs/python-3.9.5/include/python3.9 -c src/C/sparse.c -o build/temp.linux-x86_64-3.9/src/C/sparse.o
[line 4 of 338]
emcc -O2 -g0 -s MODULARIZE=1 -s LINKABLE=1 -s EXPORT_ALL=1 -s WASM=1 -std=c++14 -s LZ4=1 -L /usr/src/pyodide-0.19.0/cpython/installs/python-3.9.5/lib/ -s SIDE_MODULE=1 build/temp.linux-x86_64-3.9/src/C/base.o build/temp.linux-x86_64-3.9/src/C/dense.o build/temp.linux-x86_64-3.9/src/C/sparse.o -L../../../F2CLAPACK/F2CLAPACK_WA -lm -llapack -lblas -lf2c -o build/lib.linux-x86_64-3.9/kvxopt/base.cpython-39-x86_64-linux-gnu.so
[2022-08-11 21:42:28] Failed building package kvxopt in 119.7 seconds.
[5/5] (thread 3) failed kvxopt in 120.50 s
build_from_graph(pkg_map, outputdir, args)
File "/usr/src/pyodide-0.19.0/pyodide-build/pyodide_build/buildall.py", line 397, in build_from_graph
raise pkg
File "/usr/src/pyodide-0.19.0/pyodide-build/pyodide_build/buildall.py", line 373, in builder
pkg.build(outputdir, args)
File "/usr/src/pyodide-0.19.0/pyodide-build/pyodide_build/buildall.py", line 141, in build
p.check_returncode()
File "/usr/local/lib/python3.9/subprocess.py", line 460, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'pyodide_build', 'buildpkg', '/usr/src/pyodide-0.19.0/packages/kvxopt/meta.yaml', '--cflags', '-O2 -g0 -fPIC', '--cxxflags', '', '--ldflags', '-O2 -g0 -s MODULARIZE=1 -s LINKABLE=1 -s EXPORT_ALL=1 -s WASM=1 -std=c++14 -s LZ4=1 -L /usr/src/pyodide-0.19.0/cpython/installs/python-3.9.5/lib/ -s SIDE_MODULE=1', '--target-install-dir', '/usr/src/pyodide-0.19.0/cpython/installs/python-3.9.5', '--host-install-dir', '/usr/src/pyodide-0.19.0/packages/.artifacts', '--force-rebuild']' returned non-zero exit status 1.
make: *** [Makefile:12: all] Error 1
make: Leaving directory '/usr/src/pyodide-0.19.0/packages'
The command '/bin/sh -c PYODIDE_PACKAGES="kvxopt,dill,tqdm" make -C packages' returned a non-zero code: 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.