mherkazandjian opened a new pull request #7917:
URL: https://github.com/apache/tvm/pull/7917


   This PR fixes issue #7916
   
   to build for aarch64 the cmake variable  ``-DCMAKE_HOST=aarch64-linux-gnu`` 
should be passed that
   is in turn propagated to the autotools (configure step)  for libbacktrace.
   
   ````bash
   cmake .. \
       -DCMAKE_SYSTEM_NAME=Linux \
       -DCMAKE_SYSTEM_VERSION=1 \
       -DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc-8 \
       -DCMAKE_CXX_COMPILER=/usr/bin/aarch64-linux-gnu-g++-8 \
       -DCMAKE_FIND_ROOT_PATH=/usr/aarch64-linux-gnu \
       -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
       -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
       -DCMAKE_HOST=aarch64-linux-gnu  
   ````
   
   I tested this to build the runtime for ``aarch64``  and ``riscv64``, the 
runtime ``.so`` was produced in both
   cases with no errors displayed during the build.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to