Re: ghc and current aarch64

2022-11-19 Thread Clay Daniels



On 11/19/22 12:25, nia wrote:

On Sat, Nov 19, 2022 at 04:07:38PM +, adr wrote:

Right now the bootstrap compiler is built in netbsd-8, so it depends
on emulators/compat80, which isn't available to aarch64. So in
current (and I suppose 9 too) you'll end up with:

/usr/pkgsrc/lang/ghc92/work/.tools/lib/ghc-9.2.1/bin/ghc-pkg: Shared object 
"libcurses.so.8" not found

Has someone crosscompiled a bootstrap compiler for haskell in current
or netbsd-9?

Regards,
adr.

If you install emulators/compat90 you will get libcurses.so.8.

The aarch64 bootstrap will be built for netbsd-9.
aarch64 netbsd-8 doesn't make sense because that never existed.


Thanks for the clue. compat90 has other libs like libterminfo that I 
have been missing in 9.99.106 for the last week or so. I had given up 
and loaded the 9.3 release, which I will say is really good. But I can't 
seem to give up current, it's some kind of odd addiction...


Clay (bootdog)



daily CVS update output

2022-11-19 Thread NetBSD source update


Updating src tree:
P src/distrib/utils/embedded/conf/armv7.conf
P src/distrib/utils/embedded/conf/rpi.conf
P src/distrib/utils/embedded/conf/rpi_inst.conf
P src/share/man/man7/orders.7
P src/sys/arch/arm/broadcom/bcm2835_intr.c
P src/sys/arch/arm/cortex/gtmr_var.h
P src/sys/arch/arm/include/bus_funcs.h
P src/sys/arch/arm/rockchip/files.rockchip
P src/sys/arch/arm/sunxi/sunxi_can.c
P src/sys/arch/riscv/conf/GENERIC
P src/sys/arch/riscv/include/bus_defs.h
P src/sys/arch/riscv/include/bus_funcs.h
P src/sys/arch/riscv/riscv/locore.S
P src/sys/conf/assym.mk
P src/sys/kern/subr_optstr.c
P src/sys/net/bpf.c
P src/sys/net/if_llatbl.c
P src/sys/net/if_llatbl.h
P src/sys/net/nd.c
P src/sys/net80211/ieee80211_input.c
P src/sys/netinet/in.c
P src/sys/netinet/in_var.h
P src/usr.bin/netstat/bpf.c
P src/usr.bin/netstat/if.c

Updating xsrc tree:


Killing core files:




Updating file list:
-rw-rw-r--  1 srcmastr  netbsd  42345330 Nov 20 03:03 ls-lRA.gz


Re: getrandom() error with linux emulation

2022-11-19 Thread Lloyd Parkes




On 19/11/22 12:31, Brook Milligan wrote:

I am running a linux application (no source code unfortunately) and 
encountering an error that seems from the message (which is cryptic) to be 
related to a getrandom() function call.  This is with a NetBSD/amd64 9.99.99 
kernel dating from August.

I recall all the discussions floating around about the random generator 
functions, but did not fully track them.  Now I wonder if that is relevant 
somehow.


Probably not. I think the /etc/rc.d/ script got updated to provide a 
smoother system admin experience.


You can run "sysctl kern.entropy.needed" to see if your system is 
waiting for more entropy. The value should be 0 if your system has 
enough entropy.


You can also run "rndctl -l" to list entropy sources. There should be at 
least two rows (and probably only two rows) with a non-zero "Estimated 
bits" value. One of them will be the "seed" device which is the seed 
from /var/db/entropy-file, and there should be some other hardware 
dependent device with a type of "rng" which is your CPU's random number 
generate (assuming your CPU has one, modern ones do).



Are there differences between between NetBSD and Linux in the getrandom() 
function or implementations that would cause emulation to fail?

Is there any way to debug this kind of situation?


I generally sift through the output from ktruss and try and infer some 
kind of application behaviour. Sometimes that works.


Cheers,
Lloyd


Re: ghc and current aarch64

2022-11-19 Thread adr

On Sat, 19 Nov 2022, nia wrote:

Right now the bootstrap compiler is built in netbsd-8, so it depends
on emulators/compat80, which isn't available to aarch64. So in
current (and I suppose 9 too) you'll end up with:

/usr/pkgsrc/lang/ghc92/work/.tools/lib/ghc-9.2.1/bin/ghc-pkg: Shared object 
"libcurses.so.8" not found

Has someone crosscompiled a bootstrap compiler for haskell in current
or netbsd-9?

Regards,
adr.


If you install emulators/compat90 you will get libcurses.so.8.


I haven't thought in using compat90 because the makefile justify
the use of compat80 precisely with this:

[...]
# NetBSD 9.x have libcurses with a newer major version than the
# bootstrap kit is linked against. For now, work around this with
# compat80.
[...]

I'll give it a try.


Re: ghc and current aarch64

2022-11-19 Thread nia
On Sat, Nov 19, 2022 at 04:07:38PM +, adr wrote:
> Right now the bootstrap compiler is built in netbsd-8, so it depends
> on emulators/compat80, which isn't available to aarch64. So in
> current (and I suppose 9 too) you'll end up with:
> 
> /usr/pkgsrc/lang/ghc92/work/.tools/lib/ghc-9.2.1/bin/ghc-pkg: Shared object 
> "libcurses.so.8" not found
> 
> Has someone crosscompiled a bootstrap compiler for haskell in current
> or netbsd-9?
> 
> Regards,
> adr.

If you install emulators/compat90 you will get libcurses.so.8.

The aarch64 bootstrap will be built for netbsd-9.
aarch64 netbsd-8 doesn't make sense because that never existed.


ghc and current aarch64

2022-11-19 Thread adr

Right now the bootstrap compiler is built in netbsd-8, so it depends
on emulators/compat80, which isn't available to aarch64. So in
current (and I suppose 9 too) you'll end up with:

/usr/pkgsrc/lang/ghc92/work/.tools/lib/ghc-9.2.1/bin/ghc-pkg: Shared object 
"libcurses.so.8" not found

Has someone crosscompiled a bootstrap compiler for haskell in current
or netbsd-9?

Regards,
adr.