Building postgres image on s390x - issue with grpcio

86 views
Skip to first unread message

rishi.in...@gmail.com

unread,
Oct 14, 2016, 1:57:55 PM10/14/16
to Deis Users List

I wonder if there is a way to prevent/fix this error....

Problem happens during postgres image build at this stage: (Dockerfile)

    pip install --disable-pip-version-check --no-cache-dir git+https://github.com/deis/wal-e.git@380821a6c4ea4f98a244680d7c6c5b04b8c694b3 \

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.

Matthew Fisher

unread,
Oct 14, 2016, 2:23:07 PM10/14/16
to rishi.in...@gmail.com, Deis Users List
wal-e is the key component used for backing up the WAL logs on postgres. It cannot be skipped, however you can submit PRs over to https://github.com/wal-e/wal-e for s390x support.

--
You received this message because you are subscribed to the Google Groups "Deis Users List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deis-users+unsubscribe@googlegroups.com.
To post to this group, send email to deis-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/deis-users/58504491-3aef-42cf-8fec-e5429b77ce53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages