Skip to content

Conversation

@al13n321
Copy link
Member

In musl, checked out ClickHouse/musl#1 and did:

./clickhouse-configure && make

In sysroot did:

cp -r ~/musl/include/* linux-x86_64-musl/include/
cp ~/musl/lib/* linux-x86_64-musl/lib/

# Omit files that didn't already exist. If any of them were needed for clickhouse, presumably we'd
# get a linking error.
rm linux-x86_64-musl/include/alltypes.h.in linux-x86_64-musl/lib/Scrt1.o linux-x86_64-musl/lib/libc.so linux-x86_64-musl/lib/libcrypt.a linux-x86_64-musl/lib/libdl.a linux-x86_64-musl/lib/libm.a linux-x86_64-musl/lib/libresolv.a linux-x86_64-musl/lib/libutil.a linux-x86_64-musl/lib/libxnet.a linux-x86_64-musl/lib/musl-gcc.specs linux-x86_64-musl/lib/rcrt1.o

@al13n321
Copy link
Member Author

al13n321 commented Aug 14, 2024

(I don't particularly know what I'm doing:

  • Sysroot has more include and lib files than musl. I guess the rest come from the ubuntu image? E.g. libgcc.a, include/c++/. Are they required? Are they difficult to compile by ourselves? Do they have a lot of code?
  • Would it be hard to integrate it into the cmake build, making musl just another directory in contrib/?)

@al13n321 al13n321 force-pushed the muslpatch branch 2 times, most recently from eb35c10 to 7375293 Compare August 16, 2024 05:52
@al13n321
Copy link
Member Author

al13n321 commented Aug 20, 2024

CI builds passed in ClickHouse/ClickHouse#68313

@al13n321 al13n321 merged commit 5be8341 into master Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants