Hello,
first of all, I'd like to express all my gratitude for such an amazing tool. Keep up the good work!
I'm desperately trying to cross compile grpcio from ubuntu (x86_64) to android (aarch64).
Both build python and host python are version 3.10.5.
The build seems to proceed without issues, until I get this error:
/home/marco/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -D_WIN32_WINNT=1536 -DGRPC_XDS_USER_AGENT_NAME_SUFFIX="Python" -DGRPC_XDS_USER_AGENT_VERSION_SUFFIX="1.49.1" -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" attribute((visibility ("default"))) PyObject* -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares/cares/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/xxhash -Ithird_party/zlib -I/home/marco/venv/cross/include -I/home/marco/python3-android/build/usr/include/python3.10 -c src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c -o python_build/temp.linux-aarch64-3.10/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.o -std=c++14 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
error: invalid argument '-std=c++14' not allowed with 'C'
Full building log
So, evidently, the compiler is complaining because of the '-std=c++14' used for a C source file. The question is: how can I remove that flag for C source files ONLY, leaving it for C++ files?
Any help is highly appreciated. Thank you!
Hello,
first of all, I'd like to express all my gratitude for such an amazing tool. Keep up the good work!
I'm desperately trying to cross compile grpcio from ubuntu (x86_64) to android (aarch64).
Both build python and host python are version 3.10.5.
The build seems to proceed without issues, until I get this error:
Full building log
So, evidently, the compiler is complaining because of the '-std=c++14' used for a C source file. The question is: how can I remove that flag for C source files ONLY, leaving it for C++ files?
Any help is highly appreciated. Thank you!