macbre / docker-nginx-http3

Stable and up-to-date root-less nginx with quic + http/3, google brotli compression, njs, GeoIP2, and Grade A+ SSL config
https://hub.docker.com/r/macbre/nginx-http3
159 stars 52 forks source link

Build error at ninja: missing binary operator before token "(" #115

Open noggynoggy opened 1 year ago

noggynoggy commented 1 year ago

uname -a: Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux Build Command: docker build . -t macbre/nginx-http3 -f Dockerfile

#0 16.56 ninja: job failed: /usr/bin/cc -DBORINGSSL_DISPATCH_TEST -DBORINGSSL_IMPLEMENTATION -I/usr/src/boringssl/crypto/fipsmodule/../../include -Wa,--noexecstack -Wa,-g -MD -MT crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha512-armv8-linux.S.o -MF crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha512-armv8-linux.S.o.d -o crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha512-armv8-linux.S.o -c /usr/src/boringssl/build/crypto/fipsmodule/sha512-armv8-linux.S
#0 16.56 /usr/src/boringssl/build/crypto/fipsmodule/sha512-armv8-linux.S:62:18: error: missing binary operator before token "("
#0 16.56    62 | #if __has_feature(hwaddress_sanitizer) && __clang_major__ >= 10
#0 16.56       |                  ^
#0 16.61 ninja: job failed: /usr/bin/cc -DBORINGSSL_DISPATCH_TEST -DBORINGSSL_IMPLEMENTATION -I/usr/src/boringssl/crypto/fipsmodule/../../include -Wa,--noexecstack -Wa,-g -MD -MT crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha256-armv8-linux.S.o -MF crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha256-armv8-linux.S.o.d -o crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha256-armv8-linux.S.o -c /usr/src/boringssl/build/crypto/fipsmodule/sha256-armv8-linux.S
#0 16.61 /usr/src/boringssl/build/crypto/fipsmodule/sha256-armv8-linux.S:62:18: error: missing binary operator before token "("
#0 16.61    62 | #if __has_feature(hwaddress_sanitizer) && __clang_major__ >= 10
#0 16.61       |                  ^
#0 37.55 ninja: subcommands failed

I'm unfortunately not proficient in the technologies used here. I'd be happy to provide more Information to resolve this problem.

macbre commented 1 year ago

It can be an issue with building for a different architecture - namely Raspberry's aarch64 here. See #107 for the support different platforms.

noggynoggy commented 1 year ago

So, in other words, there is currently no support for other Architectures? That's unfortunate. I get the same error when I try to cross-build to build it on my desktop for arm/v8 (mind that I'm new to buildx)

macbre commented 1 year ago

So, in other words, there is currently no support for other Architectures?

Yes, unfortunately.