Opened 9 months ago
#69347 assigned defect
rocksdb: clang builds fail on < 10.13: error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer
Reported by: | barracuda156 | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.1 |
Keywords: | sierra, elcapitan, yosemite, mavericks, mountainlion, lion, snowleopard, leopard, x86_64, i386 | Cc: | kencu (Ken) |
Port: | rocksdb |
Description
[ 3%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o /opt/local/bin/clang++-mp-16 -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DHAVE_FULLFSYNC -DLZ4 -DOS_MACOSX -DROCKSDB_LIB_IO_POSIX -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_rocksdb/rocksdb/work/rocksdb-8.9.1/include -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_rocksdb/rocksdb/work/rocksdb-8.9.1 -isystem /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_rocksdb/rocksdb/work/rocksdb-8.9.1/third-party/gtest-1.8.1/fused-src -isystem /opt/local/include -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -momit-leaf-frame-pointer -march=native -Werror -arch x86_64 -mmacosx-version-min=10.8 -fPIC -std=gnu++17 -MD -MT CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_rocksdb/rocksdb/work/rocksdb-8.9.1/cache/lru_cache.cc /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_rocksdb/rocksdb/work/rocksdb-8.9.1/cache/clock_cache.cc:702:14: error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer array_(new HandleImpl[size_t{1} << length_bits_]) { ^ /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_rocksdb/rocksdb/work/rocksdb-8.9.1/cache/clock_cache.cc:702:14: note: if you supply your own aligned allocation functions, use -faligned-allocation to silence this diagnostic /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_rocksdb/rocksdb/work/rocksdb-8.9.1/cache/clock_cache.cc:702:14: error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.13 or newer array_(new HandleImpl[size_t{1} << length_bits_]) { ^ /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_rocksdb/rocksdb/work/rocksdb-8.9.1/cache/clock_cache.cc:702:14: note: if you supply your own aligned allocation functions, use -faligned-allocation to silence this diagnostic /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_rocksdb/rocksdb/work/rocksdb-8.9.1/cache/clock_cache.cc:922:7: error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.13 or newer delete h; ^ /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_rocksdb/rocksdb/work/rocksdb-8.9.1/cache/clock_cache.cc:922:7: note: if you supply your own aligned allocation functions, use -faligned-allocation to silence this diagnostic /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_rocksdb/rocksdb/work/rocksdb-8.9.1/cache/clock_cache.cc:3308:5: error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.13 or newer delete h; ^
https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/162053/steps/install-port/logs/stdio https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/258162/steps/install-port/logs/stdio etc.
- S. Ken, I tag you here because we discussed this re some other port and you were wondering why I had to add
-fno-aligned-allocation
. Because of this.
Note: See
TracTickets for help on using
tickets.