Right now it works for host platforms because of gcc package, that
includes gcc-cross sysroot.
Use bundled sysroot from contrib instead.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Since nfpm v2.20.0 it can build packages for archlinux [1].
[1]: https://github.com/goreleaser/nfpm/pull/543
Something like this:
$ mkdir -p /src/packages/root
$ cmake -DCMAKE_INSTALL_PREFIX=/usr /src
$ DESTDIR=/src/packages/root ninja install
$ cd /src/packages
$ ./build --archlinux
$ root@s3:/src/packages# ./build --archlinux
Current version is 22.10.1.1
Building archlinux package for clickhouse-client.yaml
using archlinux packager...
created package: /src/clickhouse-client-22.10.1.1-1-x86_64.pkg.tar.zst
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Simply installing llvm-15 over TSAN_SYMBOLIZER_PATH had been prefered
(to keep everything in one place and as simple as possible), though
TSAN_SYMBOLIZER_PATH should also work.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
- The old name made sense for (dev option) "-DUSE_STATIC_LIBRARIES=0
-DSPLIT_SHARED_LIBRARIES=1 -DSPLIT_BINARY=1" but that was removed with
#39520.
- What still exists is "-DUSE_STATIC_LIBRARIES=0
-DSPLIT_SHARED_LIBRARIES=1" which does a shared library build
clickhouse-bundle does not includes utils, and to avoid modifying each
utility it is better to build all, anyway this is not a common build.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
--verbose is supported only for make/install, while 3.16 is OK (ubuntu
20.04), newer cmake (3.23) does not, and simply fails:
# cmake --debug-trycompile --verbose=1 /foo
debug trycompile on
CMake Error: Unknown argument --verbose=1
CMake Error: Run 'cmake --help' for all supported options.
And this is how it works with 3.16:
# cmake --debug-trycompile --verbose=1 /foo
debug trycompile on
CMake Error: The source directory "/foo" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Anyway this script sets CMAKE_VERBOSE_MAKEFILE, and this is what
--verbose does.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>