Bug 259047 - databases/clickhouse: port to FreeBSD aarch64
Summary: databases/clickhouse: port to FreeBSD aarch64
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Only Me
Assignee: Mikael Urankar
Depends on:
Reported: 2021-10-10 14:31 UTC by Mikael Urankar
Modified: 2021-10-13 11:08 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (olevole)

v0 (11.38 KB, patch)
2021-10-10 14:31 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Li-Wen Hsu freebsd_committer 2021-10-12 07:21:00 UTC
submitter is committer.
Comment 2 Oleg Ginzburg 2021-10-13 11:08:46 UTC

However I was only able to check x86-64 build ( via poudriere ).

I do not have the appropriate hardware to check the aarch64. I have tried using qemu-user-static and try to build clickhouse in aarch64 jail:

% uname -ma
FreeBSD arm64.my.domain 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  arm64

but got an error:
FAILED: contrib/openldap-cmake/lber-version.c /tmp/usr/ports/databases/clickhouse/work/ClickHouse- 
cd /tmp/usr/ports/databases/clickhouse/work/ClickHouse- && /usr/local/bin/cmake -E env bash -c "/tmp/usr/ports/databases/clickhouse/work/ClickHouse- -v '2.5.X' liblber.la > \"/tmp/usr/ports/databases/clickhouse/work/ClickHouse-\""
bash: /tmp/usr/ports/databases/clickhouse/work/ClickHouse- /bin/sh: bad interpreter: No such file or directory

file -s /bin/sh
/bin/sh: ELF 64-bit LSB executable, ARM aarch64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 13.0 (1300139), FreeBSD-style, stripped

arm64:/ # sh
# echo "just work"
just work

I don't mind trying these changes on a FreeBSD aarch64 build cluster, for amd64 architecture nothing changes.