mirror of https://github.com/pyodide/pyodide.git
e865b77040
With newer versions of emscripten, linker errors surface eariler. This makes it easier to find function pointer cast errors without having to execute the bad code path -- the errors happen when the wasm modules are linked (at load time in the browser) Anyways, this fixes more linker errors. Mostly the problems have to do with LAPACK functions that take string arguments. Most LAPACK functions that take string arguments use them as enums and only care about the first character of the string. Because of the way that f2c works, we need to replace these strings with the ascii code of the first character so we should replace: sTRSV( 'UPPER', 'NOTRANS', 'NONUNIT', J, H, LDH, Y, 1 ) ==> CALL sTRSV( 85, 78, 78, J, H, LDH, Y, 1 ) where 85 and 78 are the ascii codes of U and N. Various character variables are subbed into being integer variables. The two functions `ilaenv` and `xerbla` expect actual C strings as an argument, but it is very annoying to produce C strings so instead I added wrapper functions ilaenvf2c and xerblaf2c to clapack and instead of calling ilaenv and xerbla we call the f2c versions. |
||
---|---|---|
.. | ||
patches | ||
info.md | ||
meta.yaml | ||
test_scipy.py |