Index | Thread | Search

From:
Janne Johansson <icepic.dz@gmail.com>
Subject:
Re: UPDATE: Zig 0.17.0
To:
Brad Smith <brad@comstyle.com>
Cc:
Brandon Mercer <bmercer@eutonian.com>, ports@openbsd.org, Brandon Mercer <bmercer@openbsd.org>
Date:
Thu, 15 Oct 2026 11:14:04 +0200

Download raw body.

Thread
Den ons 14 okt. 2026 kl 22:38 skrev Brad Smith <brad@comstyle.com>:

> On 2026-10-14 4:49 a.m., Janne Johansson wrote:
>
>
>>> > mips64 and riscv64 both have some level of support upstream, and I’d
>>> > like to see where things stand as-is.
>>>
>>> Fine business! I had someone reach out off list to do some testing on
>>> mips64 so maybe we should wait a bit to hear back. The diff is still OK
>>> with me. Thanks again.
>>>
>>
>> Took me a while to even get here, and "here" is "not finished yet". First
>> it bombed on 4G default datasize ulimit, so I bumped that, then I didn't
>> notice that crash left a 4G clang core file so next build failed due to
>> filled up pobj/, now I am where zig2 will not start, it immediate goes
>> ":out of memory" without any flags or so:
>>
>> ksh: /usr/ports/pobj/zig-0.17.0/build-mips64/zig2: Cannot allocate
>> memory
>> Doesn't seem to be ulimits this time, perhaps the binary is too big to
>> run or so?
>>
>> objdump says this:
>> objdump -p /usr/ports/pobj/zig-0.17.0/build-mips64/zig2
>>
>>
>>
>> I'm guessing it is hitting MAXTSIZ which is 128M on mips64, will bump it
> and see if it helps, otherwise perhaps zig2 should have been compiled with
> -Os instead of -O2 to sneak text segment under 128M, but that will only
> last for so long before it bombs out again I gather.
>
>
> Try with the text size bump. But don't worry about jumping through
> too many hoops. If you can't get it to build and work reasonably straight
> away then I'll just drop it from the list. Thanks for testing.
>
MAXTSIZ bump to 256M makes it get past starting zig2.
but it failed building at step 18 out of 18:

[18/18] cd /usr/ports/pobj/zig-0.17.0/zig &&
/usr/ports/pobj/zig-0.17.0/build-mips64/zig2 build
--zig-lib=/usr/ports/pobj/zig-0.17.0/zig/lib
-Dversion-string=0.17.0+7647adab8 -Dtarget=native -Dcpu=baseline
-Denable-llvm -Dconfig_h=/usr/ports/pobj/zig-0.17.
0/build-mips64/config.h -Doptimize=ReleaseFast -Dstrip --prefix
/usr/ports/pobj/zig-0.17.0/build-mips64/stage3


FAILED: stage3/bin/zig
/usr/ports/pobj/zig-0.17.0/build-mips64/stage3/bin/zig



cd /usr/ports/pobj/zig-0.17.0/zig &&
/usr/ports/pobj/zig-0.17.0/build-mips64/zig2 build
--zig-lib=/usr/ports/pobj/zig-0.17.0/zig/lib
-Dversion-string=0.17.0+7647adab8 -Dtarget=native -Dcpu=baseline
-Denable-llvm -Dconfig_h=/usr/ports/pobj/zig-0.17.0/build-mips64/config.h
-Doptimize=ReleaseFast -Dstrip --prefix
/usr/ports/pobj/zig-0.17.0/build-mips64/stage3


error: ld.lld: /usr/lib/libm.so.10.1: invalid local symbol '_ItL_atanlo' in
global part of symbol table


error: ld.lld: /usr/lib/libm.so.10.1: invalid local symbol '_libm_expm1' in
global part of symbol table


error: ld.lld: /usr/lib/libm.so.10.1: invalid local symbol
'_libm_lgammaf_r' in global part of symbol table


error: ld.lld: /usr/lib/libm.so.10.1: invalid local symbol '_ItL_pS6' in
global part of symbol table


error: ld.lld: /usr/lib/libm.so.10.1: invalid local symbol
'_libm_copysignf' in global part of symbol table


[..]
error: ld.lld: /usr/lib/libm.so.10.1: invalid local symbol '_libm_casinf'
in global part of symbol table


error: ld.lld: /usr/lib/libm.so.10.1: invalid local symbol '_libm_cosl' in
global part of symbol table


error: ld.lld: /usr/lib/libpthread.so.28.1: invalid local symbol
'_thread_pagesize' in global part of symbol table


error: ld.lld: /usr/lib/libpthread.so.28.1: invalid local symbol
'_threads_ready' in global part of symbol table
error: ld.lld: /usr/lib/libpthread.so.28.1: invalid local symbol
'_rthread_init' in global part of symbol table
error: ld.lld: /usr/lib/libc.so.104.0: invalid local symbol
'__rv_alloc_D2A' in global part of symbol table
error: ld.lld: /usr/lib/libc.so.104.0: invalid local symbol '_libc_memcmp'
in global part of symbol table
error: ld.lld: /usr/lib/libc.so.104.0: invalid local symbol
'_libc_fts_read' in global part of symbol table
error: ld.lld: /usr/lib/libc.so.104.0: invalid local symbol '_libc_fgets'
in global part of symbol table
error: ld.lld: /usr/lib/libc.so.104.0: invalid local symbol
'_libc_xdr_ypresp_key_val' in global part of symbol table
error: ld.lld: /usr/lib/libc.so.104.0: invalid local symbol
'_libc_clnt_perror' in global part of symbol table
error: ld.lld: /usr/lib/libc.so.104.0: invalid local symbol
'_libc_xdr_replymsg' in global part of symbol table
and some more of that.


-- 
May the most significant bit of your life be positive.