pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lang/zig build failure
On 24 January 2023 23:15:34 (+00:00), Chavdar Ivanov wrote:
> Hi,
> After a rather long hiatus, I was finally able to build lang/zig 0.10.1
on -current amd64 and to use it to build a few packages.
> On very -current 10.99.2 aarch64 it fails after building the first
stage, as follows:
> ....
> [ 99%] Building stage2 object
/usr/pkgsrc/lang/zig/work/zig-0.10.1/zig2.o
> ./lib/std/debug.zig:1964:53: error: no member named 'pc' in struct
'std.c.netbsd.mcontext_t'
> else => @intCast(usize, ctx.mcontext.pc),
> ^
> --- zig2.o ---
> *** [zig2.o] Error code 1
>
> make[2]: stopped in /usr/pkgsrc/lang/zig/work/zig-0.10.1
> 1 error
>
At the end I basically NOPed lib/std/debug.zig, handleSegfaultPosix
function in the aarch64 case and zig built OK, at least simple programs can
be compiled, although ncdu from git://g.blicky.net/ncdu.git/ didn't find
the ncurses bits (on amd64 it did).
>
> ....
>
>
--
----
Chavdar Ivanov
Home |
Main Index |
Thread Index |
Old Index