Hello there,
I am trying to cross compile typed_ast(git cloned from https://github.com/python/typed_ast.git) with this specific compiler: arm-poky-linux-gnueabi-gcc
I have setup the environment for by sourcing environment-setup-cortexa9hf-neon-poky-linux-gnueabi and upon doing a echo $CC I do confirm its arm-poky-linux-gnueabi-gcc
On the command line(I am using Virtual Box with Ubuntu 18.04-64bit) I tried executing: sudo python3 setup.py --verbose build --compiler=arm-poky-linux-gnueabi-gcc
Unfortunately, it stops with this message: error: don't know how to compile C/C++ code on platform 'posix' with 'arm-poky-linux-gnueabi-gcc' compiler
What am I missing? Please let me know. Thank you.
@ethanhs sure, here it is:
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
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/ast27
creating build/temp.linux-x86_64-3.6/ast27/Parser
creating build/temp.linux-x86_64-3.6/ast27/Python
creating build/temp.linux-x86_64-3.6/ast27/Custom
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
unable to execute 'arm-poky-linux-gnueabi-gcc': No such file or directory
error: command 'arm-poky-linux-gnueabi-gcc' failed with exit status 1
/opt/mybuild_project/sysroots/x86_64-personal-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc