You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Built ydb for MacOS M2 using CMake as I am not familiar with Yatool yet.
The build host is:
Darwin 22.6.0 Darwin Kernel Version 22.6.0: Sun Dec 17 22:13:25 PST 2023; root:xnu-8796.141.3.703.2~2/RELEASE_ARM64_T6020 arm64
To allow this to happen the following errors has been fixed:
Changed ar to llvm-ar in a file clang.toolchain
set(CMAKE_AR llvm-ar)
As ar failed to correctly create static libs.
In a file cmake/FindAIO.cmake commented search for libaio, as it does not supported by MacOS. This changes do not affected on a build process but may be it affects on a run ? Ydbd seems to start fine after build.
The file contrib/libs/cxxsupp/builtins/aarch64/sme-libc-routines.c applies _arm_streaming_compatible, but this keyword has appeared only in a clang-18. Just commented it.
The lib contrib/libs/openldap/ does not fix problem with gethostbyname_r. MacOS does not have such function in a glibc.
Created contrib/libs/openldap/include/portable-osx.h. And changed portable.h to
#pragma once
#if defined(__APPLE__)
# include"portable-osx.h"#else# include"portable-linux.h"#endif#if defined(_musl_)
# include"portable-musl.h"#endif
Several CMake files for libs contain the following code
CMake Probably removes duplicates and this leads to put in a LINK_FLAGS just "Security" without "-framework". In order to fix this the keyword "SHELL" is applied:
The libxml uses iconv but does not provide target_link_options for it, just added it
After all ydbd is built and can be started.
Ydb linked with llvm14 from contrib but in a config the clang-16 is a compiler. Do not have any issues with it just curious may be it need to be switched on llvm16 ?
As your main build tool is Yatool and it is used to build CMake files I am not sure how to create a PR for this issues. Feel free to write me back if such PR will be valuable for your.
The text was updated successfully, but these errors were encountered:
Built ydb for MacOS M2 using CMake as I am not familiar with Yatool yet.
The build host is:
To allow this to happen the following errors has been fixed:
ar
tollvm-ar
in a file clang.toolchainAs
ar
failed to correctly create static libs.cmake/FindAIO.cmake
commented search forlibaio
, as it does not supported by MacOS. This changes do not affected on a build process but may be it affects on a run ? Ydbd seems to start fine after build.The file
contrib/libs/cxxsupp/builtins/aarch64/sme-libc-routines.c
applies_arm_streaming_compatible
, but this keyword has appeared only in aclang-18
. Just commented it.The lib
contrib/libs/openldap/
does not fix problem withgethostbyname_r
. MacOS does not have such function in a glibc.Created
contrib/libs/openldap/include/portable-osx.h
. And changed portable.h toCMake Probably removes duplicates and this leads to put in a LINK_FLAGS just "Security" without "-framework". In order to fix this the keyword "SHELL" is applied:
Fixed in the following files:
contrib/libs/curl/CMakeLists.darwin-arm64.txt
(SystemConfiguration)contrib/restricted/aws/aws-c-cal/CMakeLists.darwin-arm64.txt
(Security)Installed locally correct version of
antrl
The
libxml
usesiconv
but does not providetarget_link_options
for it, just added itAfter all ydbd is built and can be started.
Ydb linked with llvm14 from contrib but in a config the clang-16 is a compiler. Do not have any issues with it just curious may be it need to be switched on llvm16 ?
As your main build tool is Yatool and it is used to build CMake files I am not sure how to create a PR for this issues. Feel free to write me back if such PR will be valuable for your.
The text was updated successfully, but these errors were encountered: