tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: 2025Q2 branch status; wasi-libc



On Fri, Jun 27, 2025 at 2:12 PM T K Spindler (moof) <dogcow%babymeat.com@localhost> wrote:
> however! I would note that further down in the build log for lang/wasi-libc,
> there's an actual llvm *crash*:
>
> In file included from dlmalloc/src/dlmalloc.c:63:
> dlmalloc/src/malloc.c:4568:7: error: Invalid address space for WebAssembly target
>  4568 | void* dlmalloc(size_t bytes) {
>       |       ^
> fatal error: error in backend: Cannot select: 0x773c8604d000: i32 = addrspacecast[8384488 -> 8364456] 0x773c8604d700
>   0x773c8604d700: i32 = WebAssemblyISD::Wrapper TargetGlobalAddress:i32<ptr addrspace(8384488) @_gm_> 0
>     0x773c8604d690: i32 = TargetGlobalAddress<ptr addrspace(8384488) @_gm_> 0
> In function: dlmalloc
> PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.

The plot thickens!!

> why this would only appear in NetBSD 9 is bizarre, and I *suspect*
> is related to the compiler used to build llvm itself; I'd be
> interested to see what would happen if llvm were built using a later
> version of gcc.

I can do a test run of this. I will try with gcc 14.

-- 
Benny


Home | Main Index | Thread Index | Old Index