Skip to content

Commit

Permalink
Use gcc-7 to build.
Browse files Browse the repository at this point in the history
GCC 11 build worked, but on importing blis in python, it produced this error:

blis/cy.cpython-36m-aarch64-linux-gnu.so: undefined symbol: __aarch64_ldeor8_rel

Building with gcc 7 seems to work, although I have not investigated why
  • Loading branch information
austinjp committed Aug 23, 2021
1 parent 788741c commit 9e1acfd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@ source venv/bin/activate

source jetson-nano-wheels/commons/envs.sh

PIP_CONSTRAINT=constraint.txt \
pip wheel -vv --only-binary 'numpy' --no-binary 'blis' 'blis>=0.4.0,<0.8.0' -w dist
# Override these. Blis build only seems to work (i.e. can be successfully
# imported) when using gcc version 7.
export CC=gcc-7
export CXX=g++-7
export FC=gfortran-7

BLIS_ARCH=cortexa57 \
PIP_CONSTRAINT=constraints.txt \
pip wheel -vv -c constraints.txt --no-binary 'blis' 'blis>=0.4.0,<0.8.0' -w dist
File renamed without changes.
3 changes: 3 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ fi

pip install 'https://github.com/jetson-nano-wheels/python3.6-numpy-1.19.4/releases/download/v0.0.2/numpy-1.19.4-cp36-cp36m-linux_aarch64.whl'

deactivate

# Note to self: building blis from source did not work.

0 comments on commit 9e1acfd

Please sign in to comment.