Closed amorynan closed 1 year ago
CMake Version:
It looks like you have built via xcode/clion and don't have cmake installed? Please install cmake and try CPU_TARGET="arm64" make debug
again from within a system CLI not from within the IDE.
I have already made CPU_TARGET="arm64" , and my cmake is always installed , but also failed ...
and same with system cli...
It seems that double-conversion is not installed (or can't be found) could you check if it was built when running setup-macos
?
double-conversion is build as .a file but here is no dylib file ? do I miss any commands here to build it ? I make build it as the README.md told strictly ...
Ah, we seem to only build the static version pls apply this diff and try installing again (after removing)
diff --git a/scripts/setup-macos.sh b/scripts/setup-macos.sh
index e02a661c..77ec587b 100755
--- a/scripts/setup-macos.sh
+++ b/scripts/setup-macos.sh
@@ -87,7 +87,7 @@ function install_fmt {
function install_double_conversion {
github_checkout google/double-conversion v3.1.5
- cmake_install -DBUILD_TESTING=OFF
+ cmake_install -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON
}
function install_ranges_v3 {
I fix it , but here new stuff comes up ... first .I try:
then I change the build flag, but also wrong here:
last I try to use sse , but do not work !!! What Can I do else ?
@amorynan could you please stop posting screenshots and post proper logs incl. the invocation you used to compile? Ideally within <details> log here </details>
@kgpai Could you confirm that my fix works and allows building velox on m1?
log here :
cmake --build _build/debug -j 10
[60/968] Building CXX object velox/common/caching/CMakeFiles/velox_caching.dir/SsdCache.cpp.o
FAILED: velox/common/caching/CMakeFiles/velox_caching.dir/SsdCache.cpp.o
ccache /Library/Developer/CommandLineTools/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CONTEXT_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DFMT_LOCALE -DGFLAGS_IS_A_DLL=0 -I/usr/local/opt/icu4c/include -I/Users/amory/CLionProjects/velox/. -I/Users/amory/CLionProjects/velox/velox/external/xxhash -I/Users/amory/CLionProjects/velox/third_party/xsimd/include -isystem /usr/local/include -isystem /Users/amory/CLionProjects/velox/velox -isystem /Users/amory/CLionProjects/velox/velox/external -isystem /Users/amory/CLionProjects/velox/velox/external/duckdb -isystem /Users/amory/CLionProjects/velox/velox/external/duckdb/tpch/dbgen/include -isystem /usr/local/opt/openssl@1.1/include -isystem /Users/amory/CLionProjects/velox/third_party/googletest/googletest/include -isystem /Users/amory/CLionProjects/velox/third_party/googletest/googletest -msse4.2 -std=c++17 -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Werror -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-sign-compare -Wno-ignored-qualifiers -Wno-range-loop-analysis -Wno-mismatched-tags -g -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIC -std=gnu++17 -MD -MT velox/common/caching/CMakeFiles/velox_caching.dir/SsdCache.cpp.o -MF velox/common/caching/CMakeFiles/velox_caching.dir/SsdCache.cpp.o.d -o velox/common/caching/CMakeFiles/velox_caching.dir/SsdCache.cpp.o -c /Users/amory/CLionProjects/velox/velox/common/caching/SsdCache.cpp
In file included from /Users/amory/CLionProjects/velox/velox/common/caching/SsdCache.cpp:16:
In file included from /Users/amory/CLionProjects/velox/./velox/common/caching/SsdCache.h:19:
In file included from /Users/amory/CLionProjects/velox/./velox/common/caching/SsdFile.h:19:
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:3: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:39: note: insert '_Nullable' if the pointer may be null
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
_Nullable
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:39: note: insert '_Nonnull' if the pointer should never be null
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
_Nonnull
1 error generated.
[61/968] Building CXX object velox/common/caching/CMakeFiles/velox_caching.dir/AsyncDataCache.cpp.o
FAILED: velox/common/caching/CMakeFiles/velox_caching.dir/AsyncDataCache.cpp.o
ccache /Library/Developer/CommandLineTools/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CONTEXT_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DFMT_LOCALE -DGFLAGS_IS_A_DLL=0 -I/usr/local/opt/icu4c/include -I/Users/amory/CLionProjects/velox/. -I/Users/amory/CLionProjects/velox/velox/external/xxhash -I/Users/amory/CLionProjects/velox/third_party/xsimd/include -isystem /usr/local/include -isystem /Users/amory/CLionProjects/velox/velox -isystem /Users/amory/CLionProjects/velox/velox/external -isystem /Users/amory/CLionProjects/velox/velox/external/duckdb -isystem /Users/amory/CLionProjects/velox/velox/external/duckdb/tpch/dbgen/include -isystem /usr/local/opt/openssl@1.1/include -isystem /Users/amory/CLionProjects/velox/third_party/googletest/googletest/include -isystem /Users/amory/CLionProjects/velox/third_party/googletest/googletest -msse4.2 -std=c++17 -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Werror -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-sign-compare -Wno-ignored-qualifiers -Wno-range-loop-analysis -Wno-mismatched-tags -g -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIC -std=gnu++17 -MD -MT velox/common/caching/CMakeFiles/velox_caching.dir/AsyncDataCache.cpp.o -MF velox/common/caching/CMakeFiles/velox_caching.dir/AsyncDataCache.cpp.o.d -o velox/common/caching/CMakeFiles/velox_caching.dir/AsyncDataCache.cpp.o -c /Users/amory/CLionProjects/velox/velox/common/caching/AsyncDataCache.cpp
In file included from /Users/amory/CLionProjects/velox/velox/common/caching/AsyncDataCache.cpp:17:
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:3: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:39: note: insert '_Nullable' if the pointer may be null
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
_Nullable
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:39: note: insert '_Nonnull' if the pointer should never be null
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
_Nonnull
1 error generated.
[62/968] Building CXX object velox/common/caching/tests/CMakeFiles/velox_cache_test.dir/SsdFileTest.cpp.o
FAILED: velox/common/caching/tests/CMakeFiles/velox_cache_test.dir/SsdFileTest.cpp.o
ccache /Library/Developer/CommandLineTools/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CONTEXT_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DFMT_LOCALE -DGFLAGS_IS_A_DLL=0 -I/usr/local/opt/icu4c/include -I/Users/amory/CLionProjects/velox/. -I/Users/amory/CLionProjects/velox/velox/external/xxhash -I/Users/amory/CLionProjects/velox/third_party/xsimd/include -isystem /usr/local/include -isystem /Users/amory/CLionProjects/velox/velox -isystem /Users/amory/CLionProjects/velox/velox/external -isystem /Users/amory/CLionProjects/velox/velox/external/duckdb -isystem /Users/amory/CLionProjects/velox/velox/external/duckdb/tpch/dbgen/include -isystem /usr/local/opt/openssl@1.1/include -isystem /Users/amory/CLionProjects/velox/third_party/googletest/googletest/include -isystem /Users/amory/CLionProjects/velox/third_party/googletest/googletest -msse4.2 -std=c++17 -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Werror -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-sign-compare -Wno-ignored-qualifiers -Wno-range-loop-analysis -Wno-mismatched-tags -g -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu++17 -MD -MT velox/common/caching/tests/CMakeFiles/velox_cache_test.dir/SsdFileTest.cpp.o -MF velox/common/caching/tests/CMakeFiles/velox_cache_test.dir/SsdFileTest.cpp.o.d -o velox/common/caching/tests/CMakeFiles/velox_cache_test.dir/SsdFileTest.cpp.o -c /Users/amory/CLionProjects/velox/velox/common/caching/tests/SsdFileTest.cpp
In file included from /Users/amory/CLionProjects/velox/velox/common/caching/tests/SsdFileTest.cpp:18:
In file included from /Users/amory/CLionProjects/velox/./velox/common/caching/SsdCache.h:19:
In file included from /Users/amory/CLionProjects/velox/./velox/common/caching/SsdFile.h:19:
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:3: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:39: note: insert '_Nullable' if the pointer may be null
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
_Nullable
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:39: note: insert '_Nonnull' if the pointer should never be null
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
_Nonnull
1 error generated.
[63/968] Building CXX object velox/common/caching/CMakeFiles/velox_caching.dir/SsdFile.cpp.o
FAILED: velox/common/caching/CMakeFiles/velox_caching.dir/SsdFile.cpp.o
ccache /Library/Developer/CommandLineTools/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CONTEXT_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DFMT_LOCALE -DGFLAGS_IS_A_DLL=0 -I/usr/local/opt/icu4c/include -I/Users/amory/CLionProjects/velox/. -I/Users/amory/CLionProjects/velox/velox/external/xxhash -I/Users/amory/CLionProjects/velox/third_party/xsimd/include -isystem /usr/local/include -isystem /Users/amory/CLionProjects/velox/velox -isystem /Users/amory/CLionProjects/velox/velox/external -isystem /Users/amory/CLionProjects/velox/velox/external/duckdb -isystem /Users/amory/CLionProjects/velox/velox/external/duckdb/tpch/dbgen/include -isystem /usr/local/opt/openssl@1.1/include -isystem /Users/amory/CLionProjects/velox/third_party/googletest/googletest/include -isystem /Users/amory/CLionProjects/velox/third_party/googletest/googletest -msse4.2 -std=c++17 -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Werror -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-sign-compare -Wno-ignored-qualifiers -Wno-range-loop-analysis -Wno-mismatched-tags -g -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIC -std=gnu++17 -MD -MT velox/common/caching/CMakeFiles/velox_caching.dir/SsdFile.cpp.o -MF velox/common/caching/CMakeFiles/velox_caching.dir/SsdFile.cpp.o.d -o velox/common/caching/CMakeFiles/velox_caching.dir/SsdFile.cpp.o -c /Users/amory/CLionProjects/velox/velox/common/caching/SsdFile.cpp
In file included from /Users/amory/CLionProjects/velox/velox/common/caching/SsdFile.cpp:17:
In file included from /Users/amory/CLionProjects/velox/./velox/common/caching/SsdFile.h:19:
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:3: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:39: note: insert '_Nullable' if the pointer may be null
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
_Nullable
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:39: note: insert '_Nonnull' if the pointer should never be null
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
_Nonnull
1 error generated.
[65/968] Building CXX object velox/common/caching/tests/CMakeFiles/velox_cache_test.dir/AsyncDataCacheTest.cpp.o
FAILED: velox/common/caching/tests/CMakeFiles/velox_cache_test.dir/AsyncDataCacheTest.cpp.o
ccache /Library/Developer/CommandLineTools/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CONTEXT_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DFMT_LOCALE -DGFLAGS_IS_A_DLL=0 -I/usr/local/opt/icu4c/include -I/Users/amory/CLionProjects/velox/. -I/Users/amory/CLionProjects/velox/velox/external/xxhash -I/Users/amory/CLionProjects/velox/third_party/xsimd/include -isystem /usr/local/include -isystem /Users/amory/CLionProjects/velox/velox -isystem /Users/amory/CLionProjects/velox/velox/external -isystem /Users/amory/CLionProjects/velox/velox/external/duckdb -isystem /Users/amory/CLionProjects/velox/velox/external/duckdb/tpch/dbgen/include -isystem /usr/local/opt/openssl@1.1/include -isystem /Users/amory/CLionProjects/velox/third_party/googletest/googletest/include -isystem /Users/amory/CLionProjects/velox/third_party/googletest/googletest -msse4.2 -std=c++17 -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Werror -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-sign-compare -Wno-ignored-qualifiers -Wno-range-loop-analysis -Wno-mismatched-tags -g -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu++17 -MD -MT velox/common/caching/tests/CMakeFiles/velox_cache_test.dir/AsyncDataCacheTest.cpp.o -MF velox/common/caching/tests/CMakeFiles/velox_cache_test.dir/AsyncDataCacheTest.cpp.o.d -o velox/common/caching/tests/CMakeFiles/velox_cache_test.dir/AsyncDataCacheTest.cpp.o -c /Users/amory/CLionProjects/velox/velox/common/caching/tests/AsyncDataCacheTest.cpp
In file included from /Users/amory/CLionProjects/velox/velox/common/caching/tests/AsyncDataCacheTest.cpp:18:
In file included from /Users/amory/CLionProjects/velox/./velox/common/caching/SsdCache.h:19:
In file included from /Users/amory/CLionProjects/velox/./velox/common/caching/SsdFile.h:19:
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:3: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:39: note: insert '_Nullable' if the pointer may be null
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
_Nullable
/Users/amory/CLionProjects/velox/./velox/common/caching/AsyncDataCache.h:305:39: note: insert '_Nonnull' if the pointer should never be null
tsan_atomic<SsdFile * FOLLY_NULLABLE> ssdFile_{nullptr};
^
_Nonnull
1 error generated.
[69/968] Building CXX object velox/common/memory/tests/CMakeFiles/velox_memory_test.dir/ByteStreamTest.cpp.o
ninja: build stopped: subcommand failed.
make[1]: *** [build] Error 1
make: *** [debug] Error 2
Hm, that FOLLY_NULLABLE
macro should prevent that warning. A short term solution would be to disable that globally by adding the CXX flag -Wno-nullability-completeness
Hm, that
FOLLY_NULLABLE
macro should prevent that warning. A short term solution would be to disable that globally by adding the CXX flag-Wno-nullability-completeness
Thanks for the short-term turnaround, @assignUser. Is there any other place (e.g. ~/.zshrc) to add this CXX flag?
It works when I add this line to the root CMakeList.txt
file:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-nullability-completeness")
@assignUser @darrenfu We can disable that warning locally using FOLLY_GNU_DISABLE_WARNING
FOLLY_GNU_DISABLE_WARNING
@Yuhta Good to know.
Can you advise how to use the macro FOLLY_GNU_DISABLE_WARNING
? If it still involves code change, I'd prefer less invasive way of updating the CMakeList.txt
.
@darrenfu Example: #3391. The good thing about FOLLY_GNU_DISABLE_WARNING
is it can disable it for certain part of the code while -Wno-nullability-completeness
will disable the warning for all files.
We now have m1 ci which passes. Is this still an issue for anyone here?
Stale
Problem description
After I executed scripts/setup-macos.sh And then executed CPU_TARGET="arm64" make debug here something happend.
System information
Velox System Info v0.0.1 Commit: f076c302bb708f2a7dd8d65e5f8c434a25bd72d0 CMake Version: System: Arch: C++ Compiler: C++ Compiler Version: C Compiler: C Compiler Version: CMake Prefix Path:
CMake log