/opt/mybuild_project/sysroots/x86_64-personal-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
sudo python3 setup.py --verbose build --compiler=/opt/mybuild_project/sysroots/x86_64-personal-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
running build
running build_py
not copying typed_ast/ast27.py (output up-to-date)
not copying typed_ast/ast3.py (output up-to-date)
not copying typed_ast/conversions.py (output up-to-date)
not copying typed_ast/__init__.py (output up-to-date)
package init file 'ast3/tests/__init__.py' not found (or not a regular file)
not copying ast3/tests/test_basics.py (output up-to-date)
running build_ext
error: don't know how to compile C/C++ code on platform 'posix' with
sudo python3 setup.py --verbose build --compiler /opt/mybuild_project/sysroots/x86_64-personal-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc``
Linux asif-vm 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Hello @ethanhs here is one update. I assigned the os.environ["CC"] and os.environ["CXX"] to the absolute path based compilers respectively in setup.py and executed this command: sudo python3 setup.py --verbose build
OUTPUT:running build
running build_py
not copying typed_ast/ast27.py (output up-to-date)
not copying typed_ast/ast3.py (output up-to-date)
not copying typed_ast/conversions.py (output up-to-date)
not copying typed_ast/__init__.py (output up-to-date)
package init file 'ast3/tests/__init__.py' not found (or not a regular file)
not copying ast3/tests/test_basics.py (output up-to-date)
running build_ext
building '_ast27' extension
/opt/mybuild_project/sysroots/x86_64-personal-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iast27/Include -I/usr/include/python3.6m -c ast27/Parser/acceler.c -o build/temp.linux-x86_64-3.6/ast27/Parser/acceler.o
cc1: warning: include location "/usr/include/python3.6m" is unsafe for cross-compilation [-Wpoison-system-directories]
In file included from /usr/include/python3.6m/Python.h:8:0,
from ast27/Include/pgenheaders.h:8,
from ast27/Parser/acceler.c:13:
/usr/include/python3.6m/pyconfig.h:15:53: fatal error: arm-linux-gnueabi/python3.6m/pyconfig.h: No such file or directory
compilation terminated.
error: command '/opt/mybuild_project/sysroots/x86_64-personal-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc' failed with exit status 1