I wonder if there is a way to prevent/fix this error....
Problem happens during postgres image build at this stage: (Dockerfile)
Error condition indicate that :
/=============================================/
Installing collected packages: grpcio, ply, google-gax, grpc-google-pubsub-v1, gax-google-pubsub-v1, grpc-google-logging-v2, gax-google-logging-v2, gcloud, python-swiftclient, iso8601, pbr, stevedore, wrapt, positional, keystoneauth1, rfc3986, pytz, Babel, oslo.i18n, netaddr, funcsigs, debtcollector, oslo.config, netifaces, pyparsing, monotonic, oslo.utils, msgpack-python, oslo.serialization, python-keystoneclient, wal-e
...
s390x-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DPyMODINIT_FUNC=__attribute__((visibility ("default"))) void -Isrc/python/grpcio -Iinclude -I. -Ithird_party/boringssl/include -Ithird_party/zlib -I/usr/include/python2.7 -c src/python/grpcio/grpc/_cython/cygrpc.c -o python_build/temp.linux-s390x-2.7/src/python/grpcio/grpc/_cython/cygrpc.o -fno-wrapv -fvisibility=hidden -pthread -std=gnu99
In file included from include/grpc/support/alloc.h:37:0,
from src/python/grpcio/grpc/_cython/cygrpc.c:316: .....
...
In file included from third_party/boringssl/include/openssl/rsa.h:60:0,
from ./src/core/lib/security/credentials/jwt/json_token.h:38,
from ./src/core/lib/security/credentials/jwt/jwt_credentials.h:38,
from src/core/lib/security/credentials/google_default/google_default_credentials.c:46:
third_party/boringssl/include/openssl/base.h:94:2: error: #error "Unknown target CPU"
#error "Unknown target CPU"
^
In file included from third_party/boringssl/include/openssl/asn1.h:68:0,
from third_party/boringssl/include/openssl/rsa.h:62,
from ./src/core/lib/security/credentials/jwt/json_token.h:38,
from ./src/core/lib/security/credentials/jwt/jwt_credentials.h:38,
from src/core/lib/security/credentials/google_default/google_default_credentials.c:46:
third_party/boringssl/include/openssl/bn.h:161:2: error: #error "Must define either OPENSSL_32_BIT or OPENSSL_64_BIT"
#error "Must define either OPENSSL_32_BIT or OPENSSL_64_BIT"
/=============================================/
I suspect this has to do with "pip install grpcio" -> grpcio seem to use "third_party/boringssl" which may not be compatible on this platform. Is there a way to skip wal-e component and if so will it break core deis functionality? Better yet, any pointers on fixing this error.
I have a sinking feeling that other packages in this group may cause issues on this platform but will keep trying :)
Thanks.