sgammon opened a new issue #2024: URL: https://github.com/apache/incubator-pagespeed-mod/issues/2024
Hello esteemed Pagespeed authors, I am having trouble building the Envoy targets via Bazel on macOS. See below for the error. My (naive) guess would be a compiler difference between macOS and Linux, but any help or insight would be much appreciated. macOS Version: `10.15.6 (19G73)` Code revision: `master` at the time of filing (`82f7f34a2`) ``` envoy/config/core/v3/proxy_protocol.proto: warning: Import validate/validate.proto but not used. envoy/config/core/v3/substitution_format_string.proto: warning: Import udpa/annotations/status.proto but not used. envoy/config/core/v3/substitution_format_string.proto: warning: Import validate/validate.proto but not used. INFO: From CcCmakeMakeRule external/envoy/bazel/foreign_cc/ares/include: ERROR: /Volumes/KICKSTART/incubator-pagespeed-mod/pagespeed/kernel/html/BUILD:16:11: C++ compilation of rule '//pagespeed/kernel/html:html' failed (Exit 1) wrapped_clang failed: error executing command external/local_config_cc/wrapped_clang '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG ... (remaining 122 argument(s) skipped) Use --sandbox_debug to see verbose messages from the sandbox pagespeed/kernel/html/html_name.gperf:98:20: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] gperf_case_memcmp (register const char *s1, register const char *s2, register unsigned int n) ^~~~~~~~~ pagespeed/kernel/html/html_name.gperf:98:45: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] gperf_case_memcmp (register const char *s1, register const char *s2, register unsigned int n) ^~~~~~~~~ pagespeed/kernel/html/html_name.gperf:98:70: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] gperf_case_memcmp (register const char *s1, register const char *s2, register unsigned int n) ^~~~~~~~~ pagespeed/kernel/html/html_name.gperf:124:22: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] KeywordMapper::hash (register const char *str, register unsigned int len) ^~~~~~~~~ pagespeed/kernel/html/html_name.gperf:124:48: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] KeywordMapper::hash (register const char *str, register unsigned int len) ^~~~~~~~~ pagespeed/kernel/html/html_name.gperf:155:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register unsigned int hval = len; ^~~~~~~~~ pagespeed/kernel/html/html_name.gperf:225:24: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] KeywordMapper::Lookup (register const char *str, register unsigned int len) ^~~~~~~~~ pagespeed/kernel/html/html_name.gperf:225:50: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] KeywordMapper::Lookup (register const char *str, register unsigned int len) ^~~~~~~~~ pagespeed/kernel/html/html_name.gperf:234:13: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register const char *s = kHtmlNameTable[key].name; ^~~~~~~~~ 9 errors generated. Target //pagespeed/envoy:envoy failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 97.442s, Critical Path: 79.64s INFO: 1147 processes: 1147 darwin-sandbox. FAILED: Build did NOT complete successfully ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org