IRC channel logs
2025-05-28.log
back to list of logs
<lrvick>When building LLVM from live bootstrap toolchain it always dies near 100% with: /llvm-project-20.1.0.src/compiler-rt/lib/builtins/emutls.c:291:3: error: 'ct_assert_0' declared as an array with a negative size <stikonas>lrvick: GCC directly from live-bootstrap? <lrvick>Also tried compiling a gcc13 cross compiler to try to build llvm for x86_64 host, but same error <lrvick>does not like the build toolchain <lrvick>its a strange error and it happens when the build is at like 99.99% so a frustrating location to debug <stikonas>I guess it's COMPILE_TIME_ASSERT(sizeof(uintptr_t) == sizeof(gcc_pointer)); <lrvick>It is the last thing in my way to bootstrap llvm/clang directly from live bootstrap so we have native cross compiler to every other arch. <lrvick>posted in llvm room but crickets. <stikonas>I'm not familiar enough with either project though... <stikonas>both should be pointer size, shouldn't they? <lrvick>So that does not jump out to you as an acutal problem <agg1>begun writing a little documentation, to summarize the current progress and status of a complete TinyCC driven system <agg1>which relies upon bootstrappable, hence references are given rather often <mihi>lrvick, not sure if helpful, but if I recall correctly there used to be CMake options to build clang against musl libc (LIBCPP_HAS_MUSL_LIBC and LIBCXX_HAS_MUSL_LIBC) - not sure whether they are still relevant today <mihi>may help to check how Alpine builds llvm (if they do) <mihi>assuming you are building against the musl libc and have not built another libc in your environment before.