-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
I'm trying to build https://github.com/envoyproxy/envoy-filter-example/tree/main/http-filter-example and it fails to build this dependent library
ERROR: /private/var/tmp/_bazel_dave/d720847b2e5758e746e28d18f3265346/external/com_google_cel_cpp/internal/BUILD:42:11: Compiling internal/new.cc failed: (Exit 1): cc_wrapper.sh failed: error executing CppCompile command (from target @@com_google_cel_cpp//internal:new) external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics ... (remaining 27 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/com_google_cel_cpp/internal/new.cc:71:15: warning: 'aligned_alloc' is only available on macOS 10.15 or newer [-Wunguarded-availability-new]
71 | void* ptr = std::aligned_alloc(static_cast<size_t>(alignment), size);
| ^~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:65:35: note: 'aligned_alloc' has been marked as being introduced in macOS 10.15 here, but the deployment target is macOS 10.11.0
65 | void * __sized_by_or_null(__size) aligned_alloc(size_t __alignment, size_t __size) __result_use_check __alloc_align(1) __alloc_size(2) _MALLOC_TYPED(malloc_type_aligned_alloc, 2) __OSX_AVAILABLE(10.15) __IOS_AVAILABLE(13.0) __TVOS_AVAILABLE(13.0) __WATCHOS_AVAILABLE(6.0);
| ^
external/com_google_cel_cpp/internal/new.cc:71:15: note: enclose 'aligned_alloc' in a __builtin_available check to silence this warning
71 | void* ptr = std::aligned_alloc(static_cast<size_t>(alignment), size);
| ^~~~~~~~~~~~~~~~~~
72 | if (ABSL_PREDICT_FALSE(size != 0 && ptr == nullptr)) {
73 | ThrowStdBadAlloc();
74 | }
75 | return ptr;
|
external/com_google_cel_cpp/internal/new.cc:110:17: error: use of undeclared identifier 'size'
110 | Delete(ptr, size);
| ^
Looking at the code here - I don't see 'size' declared in the function
Line 110 in df68462
Delete(ptr, size); |
Metadata
Metadata
Assignees
Labels
No labels