[MacPorts] #62208: py-grpcio: error: invalid argument '-std=c++11' not allowed with 'C'
MacPorts
noreply at macports.org
Wed Feb 3 06:56:22 UTC 2021
#62208: py-grpcio: error: invalid argument '-std=c++11' not allowed with 'C'
------------------------+--------------------------
Reporter: ryandesign | Owner: emcrisostomo
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: py-grpcio
------------------------+--------------------------
[https://build.macports.org/builders/ports-10.6_i386-builder/builds/25815/steps
/install-port/logs/stdio py-grpcio does not build]:
{{{
/opt/local/bin/clang-mp-9.0 -fno-strict-aliasing -fno-common -dynamic
-pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386
-isysroot/ -D_WIN32_WINNT=1536 -DOPENSSL_NO_ASM=1
-DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1
-DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C"
__attribute__((visibility ("default"))) void
-DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I.
-Ithird_party/abseil-cpp -Ithird_party/address_sorting/include
-I/opt/local/include -Ithird_party/re2 -I/opt/local/include/openssl
-Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-
generated -I/opt/local/include
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c -o
python_build/temp.macosx-10.10-i386-2.7/src/core/ext/upbdefs-
generated/udpa/annotations/migrate.upbdefs.o -std=c++11 -stdlib=libc++
-fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
error: invalid argument '-std=c++11' not allowed with 'C'
}}}
It's trying to give the `-std=c++11 -stdlib=libc++` flags to the C
compiler. C compilers don't understand those flags. Only C++ compilers do.
This probably relates to the fact that Python does not support modules
written in C++. It's unfortunate that the developers of py-grpcio decided
to write a module in C++ despite the fact that Python doesn't support it.
--
Ticket URL: <https://trac.macports.org/ticket/62208>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list