Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-12 Thread Izumi Tsutsui
I wrote:
> The attached blind patch seems to work around on NetBSD/i386 9.2.

But still fails on NetBSD/amd64 9.2.

The debug build says:
---
% tmesh SUN4-75
assertion "extend >= TME_RECODE_SIZE_8 && extend < ic->tme_recode_ic_reg_size" 
failed: file "./host/x86/rc-x86-insns.c", line 341, function 
"_tme_recode_x86_insn_ext"
Abort (core dumped)
%
---

gdb says:
---
% gdb /s/obj.x86_64/pkgsrc/emulators/tme/work.x86_64/tme-0.8/tmesh/.libs/tmesh
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from 
/s/obj.x86_64/pkgsrc/emulators/tme/work.x86_64/tme-0.8/tmesh/.libs/tmesh...
(gdb) run SUN4-75
Starting program: 
/s/obj.x86_64/pkgsrc/emulators/tme/work.x86_64/tme-0.8/tmesh/.libs/tmesh SUN4-75
assertion "extend >= TME_RECODE_SIZE_8 && extend < ic->tme_recode_ic_reg_size" 
failed: file "./host/x86/rc-x86-insns.c", line 341, function 
"_tme_recode_x86_insn_ext"

Program received signal SIGABRT, Aborted.
0x76c0bcf679aa in _lwp_kill () from /usr/lib/libc.so.12
(gdb) bt
#0  0x76c0bcf679aa in _lwp_kill () from /usr/lib/libc.so.12
#1  0x76c0bcf6725a in abort () at /usr/src/lib/libc/stdlib/abort.c:74
#2  0x76c0bcea8507 in __assert13 (file=,
line=, function=, failedexpr=)
at /usr/src/lib/libc/gen/assert.c:72
#3  0x76c0c6c0e54e in _tme_recode_x86_insn_ext (ic=0x76c0c727b000,
insn=0x7f7fffb09330) at ./host/x86/rc-x86-insns.c:340
#4  0x76c0c6c120d7 in _tme_recode_x86_tlb_busy (ic=0x76c0c727b000,
address_type=0x7f7fffb09454, x86_tlb_type=0x7f7fffb093b0)
at ./host/x86/rc-x86-tlb.c:198
#5  0x76c0c6c143e1 in _tme_recode_x86_chain_subs (ic=0x76c0c727b000,
chain=0x7f7fffb09450, chain_thunk=0x76c0c735b240,
chain_info_call_or_return=16) at ./host/x86/rc-x86-chain.c:787
#6  0x76c0c6c15271 in tme_recode_chain_thunk (ic=0x76c0c727b000,
chain=0x7f7fffb09450) at ./host/x86/rc-x86-chain.c:1645
#7  0x76c0b942dd9c in _tme_sparc32_recode_chain_init (ic=0x76c0c6ebf280)
at sparc-rc-chain.c:511
#8  0x76c0b943481a in tme_sparc_recode_init (ic=0x76c0c6ebf280)
at sparc-recode.c:998
#9  0x76c0b942359f in tme_sparc_new (ic=0x76c0c6ebf280,
args=0x76c0c735b1c0, extra=0x0, _output=0x7f7fffb09718) at sparc-misc.c:855
#10 0x76c0b943d084 in tme_ic_sparc_LTX_cy7c601_new (
element=0x76c0c73533c8, args=0x76c0c735b1c0, extra=0x0,
_output=0x7f7fffb09718) at cy7c601.c:259
--Type  for more, q to quit, c to continue without paging--
#11 0x76c0c6c1638b in tme_element_new (element=0x76c0c73533c8,
args=0x76c0c735b1c0, extra=0x0, _output=0x7f7fffb09718) at element.c:188
#12 0x76c0c7005890 in _tmesh_command_connect (tmesh=0x76c0c7343000,
value=0x7f7fffb09690, _output=0x7f7fffb09718) at tmesh-cmds.c:587
#13 0x76c0c7005ffd in tmesh_eval (_tmesh=0x76c0c7343000,
_output=0x7f7fffb09718, _yield=0x7f7fffb09704) at tmesh-cmds.c:899
#14 0x004026a5 in main (argc=2, argv=0x7f7fffb097d8) at tmesh.c:631
(gdb)
---

So it looks disabling "x86" on x86_64 (as kludge) seems to work around:
---
$NetBSD: patch-configure,v 1.1 2020/08/13 05:59:52 tsutsui Exp $

- Fix wrong comparison.

--- configure.orig  2010-06-05 19:57:30.0 +
+++ configure
@@ -12948,7 +12948,7 @@ echo $ECHO_N "checking for target recode
 
 # get the host recode parts:
 case "${target}" in
-i[3456789]86-*-netbsd* | x86_64-*-netbsd* | i[3456789]86-*-linux*)
+i[3456789]86-*-netbsd* | i[3456789]86-*-linux*)
recode_hosts="mmap x86"
;;
 *) recode_hosts= ;;
@@ -12980,12 +12980,12 @@ fi
 { echo "$as_me:$LINENO: checking for target miscellaneous support" >&5
 echo $ECHO_N "checking for target miscellaneous support... $ECHO_C" >&6; }
 case "${target}" in
-i[3456789]86-* | x86_64-*) misc_hosts="x86" ;;
+i[3456789]86-*) misc_hosts="x86" ;;
 *) misc_hosts=no ;;
 esac
 { echo "$as_me:$LINENO: result: ${misc_hosts}" >&5
 echo "${ECHO_T}${misc_hosts}" >&6; }
-if test "x${misc_hosts}" = no; then
+if test "x${misc_hosts}" = xno; then
 misc_hosts=
 fi
 


---
Izumi Tsutsui
 


Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-11 Thread Izumi Tsutsui
> > but starting tmesh via gdb works??
> 
> i've had some crashes with pkgsrc/graphics/blender lately that
> go away in gdb.  (it's kinda annoying, the -g enabled blender
> takes a really long time for gdb to load...)

The attached blind patch seems to work around on NetBSD/i386 9.2.
(even I'm not sure what PROT_MPROTECT() expects..)

---
$NetBSD$

--- libtme/host/recode-mmap.c.orig  2008-07-01 02:00:53.0 +
+++ libtme/host/recode-mmap.c
@@ -82,7 +82,12 @@ tme_recode_host_thunks_alloc(struct tme_
size_run,
(PROT_READ
 | PROT_WRITE
-| PROT_EXEC),
+#ifdef PROT_MPROTECT
+| PROT_MPROTECT(PROT_EXEC)
+#else
+| PROT_EXEC
+#endif /* PROT_MPROTECT */
+),
(MAP_SHARED
 #ifdef MAP_ANON
 | MAP_ANON

---
Izumi Tsutsui


re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-11 Thread matthew green
> but starting tmesh via gdb works??

i've had some crashes with pkgsrc/graphics/blender lately that
go away in gdb.  (it's kinda annoying, the -g enabled blender
takes a really long time for gdb to load...)

this is amd64 and 9.1-ish userland.


.mrg.


Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-11 Thread Izumi Tsutsui
> Anyone feel like looking into that? The homepage has nice instructions and
> setup is very straight forward. I am mostly interested in sun2, sun3 and
> sun4c currently.

On NetBSD/i386 9.2 + pkgsrc-2021Q2, tmesh for SUN4 gets Abort:
---
% /usr/pkg/bin/tmesh SUN4-75
Abort (core dumped)
---

gdb says:
---
Reading symbols from /usr/pkg/bin/tmesh...
(No debugging symbols found in /usr/pkg/bin/tmesh)
[New process 1]
Core was generated by `tmesh'.
Program terminated with signal SIGABRT, Aborted.
#0  0xad218967 in _lwp_kill () from /usr/lib/libc.so.12
(gdb) bt
#0  0xad218967 in _lwp_kill () from /usr/lib/libc.so.12
#1  0xad218881 in raise () from /usr/lib/libc.so.12
#2  0xad217ee0 in abort () from /usr/lib/libc.so.12
#3  0xae1d5192 in tme_recode_host_thunks_alloc () from /usr/pkg/lib/libtme.so.0
#4  0xae1d39f3 in tme_recode_ic_new () from /usr/pkg/lib/libtme.so.0
#5  0xacd02447 in tme_sparc_recode_init ()
   from /usr/pkg/lib/tme/tme_ic_sparc.so.0
#6  0xaccf8e6e in tme_sparc_new () from /usr/pkg/lib/tme/tme_ic_sparc.so.0
#7  0xacd07457 in tme_ic_sparc_LTX_cy7c601_new ()
   from /usr/pkg/lib/tme/tme_ic_sparc.so.0
#8  0xae1d93bb in tme_element_new () from /usr/pkg/lib/libtme.so.0
#9  0xae1e6178 in _tmesh_command_connect () from /usr/pkg/lib/libtmesh.so.0
#10 0xae1e6a0f in tmesh_eval () from /usr/pkg/lib/libtmesh.so.0
#11 0x08049b88 in ?? ()
#12 0x08049166 in ?? ()
#13 0x08048e97 in ?? ()
(gdb)
---

but starting tmesh via gdb works??
---
% gdb /usr/pkg/bin/tmesh
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "i486--netbsdelf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...

warning: ../../../../gdbscripts/bdump: No such file or directory

warning: ../../../../gdbscripts/cpus: No such file or directory

warning: ../../../../gdbscripts/kdump: No such file or directory

warning: ../../../../gdbscripts/lwps: No such file or directory

warning: ../../../../gdbscripts/msgbuf: No such file or directory

warning: ../../../../gdbscripts/pgrpdump: No such file or directory

warning: ../../../../gdbscripts/procs: No such file or directory

warning: ../../../../gdbscripts/vchain: No such file or directory

warning: ../../../../gdbscripts/vdump: No such file or directory
Reading symbols from /usr/pkg/bin/tmesh...
(No debugging symbols found in /usr/pkg/bin/tmesh)
(gdb) run SUN4-75
Starting program: /usr/pkg/bin/tmesh SUN4-75
SUN4-75:72: Device not configured
[New LWP 3 of process 17210]
[New LWP 2 of process 17210]
[New LWP 4 of process 17210]
[New LWP 5 of process 17210]
[/display0.0]: cannot generate keysym 'Help' directly, or through a macro: No 
such file or directory
[/display0.0]: cannot generate keysym 'R15' directly, or through a macro: No 
such file or directory
[/display0.0]: cannot generate keysym 'R14' directly, or through a macro: No 
such file or directory
[/display0.0]: cannot generate keysym 'R13' directly, or through a macro: No 
such file or directory
[/display0.0]: cannot generate keysym 'Linefeed' directly, or through a macro: 
No such file or directory
[/display0.0]: cannot generate keysym 'SunCut' directly, or through a macro: No 
such file or directory
[/display0.0]: cannot generate keysym 'SunFind' directly, or through a macro: 
No such file or directory
[/display0.0]: cannot generate keysym 'R12' directly, or through a macro: No 
such file or directory
[/display0.0]: cannot generate keysym 'R11' directly, or through a macro: No 
such file or directory
[/display0.0]: cannot generate keysym 'R10' directly, or through a macro: No 
such file or directory
[/display0.0]: cannot generate keysym 'SunPaste' directly, or through a macro: 
No such file or directory
[/display0.0]: cannot generate keysym 'SunOpen' directly, or through a macro: 
No such file or directory
[/display0.0]: cannot generate keysym 'R9' directly, or through a macro: No 
such file or directory
[/display0.0]: cannot generate keysym 'R8' directly, or through a macro: No 
such file or directory
[/display0.0]: cannot generate keysym 'R7' directly, or through a macro: No 
such file or directory
[/display0.0]: cannot generate keysym 'SunCompose' directly, or through a 
macro: No such file or directory
[/display0.0]: cannot generate keysym 'SunCopy' directly, or through a macro: 
No such file or directory
[/display0.0]: cannot generate keysym 'SunFront' directly, or through a macro: 
No such file or directory
[/display0.0]: cannot generate keysym 'R6' 

Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Michael van Elst
rhia...@falu.nl (Rhialto) writes:

>Indeed, there I misinterpreted the size of my 1G disk, and put sd0b
>waaay out of bounds. I tried again, with partition b in cyl 1-63 and a
>in 64-1023. I could not start b at 0; in that case the dd command
>claimed it was read-only.

The disklabel sector of a disk is read-only (you can lift that
temporarily with the disklabel command).



Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Rhialto
On Sat 10 Jul 2021 at 15:39:10 +0200, Rhialto wrote:
> How far did you get? I tried sun3, and I got to booting the ramdisk
> kernel from tape. But when I did the "dd bs=32k if=/dev/nrst0
> of=/dev/rsd0b" I got a core dump. Possibly I had not used edlabel
> correctly due to it not getting a geometry it believed.

Indeed, there I misinterpreted the size of my 1G disk, and put sd0b
waaay out of bounds. I tried again, with partition b in cyl 1-63 and a
in 64-1023. I could not start b at 0; in that case the dd command
claimed it was read-only.

> (And the mt -f /dev/nrst0 rewind / fsf 2 don't seem to match the
> position of the miniroot.fs, which the instructions tell you to put as
> 4th file)

and that was actually corrected in Fredette's instructions.

I installed all sets including X. The install script seemed to overwrite
the generic /netbsd kernel (which I installed from tape in one of the
sets) with the install kernel, so I had to re-extract it from tape.

Startx works fine, but the mouse doesn't do anything, so then you're
stuck...

I didn't try networking.

This is still on 9.2, not -current.

-Olaf.
-- 
___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFHfalu.nl@rhialto



signature.asc
Description: PGP signature


Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Chavdar Ivanov
I have security.pax.mprotect.enabled=0 in the sysctl.conf of this
(VirtualBox guest) machine.

On Sat, 10 Jul 2021 at 16:02, Chavdar Ivanov  wrote:
>
> On Sat, 10 Jul 2021 at 15:14, Rhialto  wrote:
> >
> > On Sat 10 Jul 2021 at 16:05:31 +0200, Rhialto wrote:
> > > I also didn't succeed in powering up the sun4c. When I gave the command
> > > "command board0 power up", nothing appeared to happen. The tmesh window
> > > remained gray, I did not get the tmesh> prompt back. (That happens for
> > > sun3).
> >
> > In fact, any command I typed at the prompt there had the same effect.
> > To reduce the scope, I started with an empty configuration and pasted
> > just the first configuration line:
> >
> > .../scratch/tmp/sun4c$ tmesh /dev/null
> > tmesh> ls
> > tmesh> board0: tme/machine/sun4 name Calvin
> > tmesh> ls
> > board0: tme/machine/sun4 name Calvin
> >
> > tmesh> Segmentation fault (core dumped)
> > :.../scratch/tmp/sun4c$
> >
> > -Olaf.
> > --
> > ___ "Buying carbon credits is a bit like a serial killer paying someone 
> > else to
> > \X/  have kids to make his activity cost neutral." -The BOFH
> > falu.nl@rhialto
> >
>
> I was able to startup sun2, but the loading from the tape as suggested
> fails, using either tapeboot as provided on the NetBSD iso and also
> the old version, as advised by the author:
>
> tapeboot: loading segment 4
> 2198028Protection Bus Error, addr: 00601F7F at 243094
>
> At least I can see the Sun logo 
>
> Chavdar
>
> --
> 



-- 



Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Chavdar Ivanov
On Sat, 10 Jul 2021 at 15:14, Rhialto  wrote:
>
> On Sat 10 Jul 2021 at 16:05:31 +0200, Rhialto wrote:
> > I also didn't succeed in powering up the sun4c. When I gave the command
> > "command board0 power up", nothing appeared to happen. The tmesh window
> > remained gray, I did not get the tmesh> prompt back. (That happens for
> > sun3).
>
> In fact, any command I typed at the prompt there had the same effect.
> To reduce the scope, I started with an empty configuration and pasted
> just the first configuration line:
>
> .../scratch/tmp/sun4c$ tmesh /dev/null
> tmesh> ls
> tmesh> board0: tme/machine/sun4 name Calvin
> tmesh> ls
> board0: tme/machine/sun4 name Calvin
>
> tmesh> Segmentation fault (core dumped)
> :.../scratch/tmp/sun4c$
>
> -Olaf.
> --
> ___ "Buying carbon credits is a bit like a serial killer paying someone else 
> to
> \X/  have kids to make his activity cost neutral." -The BOFH
> falu.nl@rhialto
>

I was able to startup sun2, but the loading from the tape as suggested
fails, using either tapeboot as provided on the NetBSD iso and also
the old version, as advised by the author:

tapeboot: loading segment 4
2198028Protection Bus Error, addr: 00601F7F at 243094

At least I can see the Sun logo 

Chavdar

-- 



Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Rhialto
On Sat 10 Jul 2021 at 16:05:31 +0200, Rhialto wrote:
> I also didn't succeed in powering up the sun4c. When I gave the command
> "command board0 power up", nothing appeared to happen. The tmesh window
> remained gray, I did not get the tmesh> prompt back. (That happens for
> sun3).

In fact, any command I typed at the prompt there had the same effect.
To reduce the scope, I started with an empty configuration and pasted
just the first configuration line:

.../scratch/tmp/sun4c$ tmesh /dev/null 
tmesh> ls
tmesh> board0: tme/machine/sun4 name Calvin
tmesh> ls
board0: tme/machine/sun4 name Calvin

tmesh> Segmentation fault (core dumped)
:.../scratch/tmp/sun4c$ 

-Olaf.
-- 
___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFHfalu.nl@rhialto



signature.asc
Description: PGP signature


Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Rhialto
On Sat 10 Jul 2021 at 15:53:44 +0200, Martin Husemann wrote:
> But then (looking at the libs it actually uses) this is kinda unlikely,
> besides issues caused by the different compiler.
> 
> I'd expect the set exact dependcies install would be more of an issue.
> I used pkgsrc-current from around the time of the last branch, and had
> updated all pkgs.

I built from the recent stable branch, and I built everything with
gcc-8.4.0 (except those packages that caused a circular dependency).
Here are all the libraries it appears to use:

$ ls -l $(pkg_info -B tme | sed -n 's/REQUIRES=//p')
lrwxr-xr-x  1 root  wheel  13 May 12 15:15 /usr/X11R7/lib/libX11.so.7 -> 
libX11.so.7.0
lrwxr-xr-x  1 root  wheel  13 May 12 15:15 /usr/X11R7/lib/libXau.so.7 -> 
libXau.so.7.0
lrwxr-xr-x  1 root  wheel  20 May 12 15:15 /usr/X11R7/lib/libXcomposite.so.2 -> 
libXcomposite.so.2.0
lrwxr-xr-x  1 root  wheel  17 May 12 15:15 /usr/X11R7/lib/libXcursor.so.2 -> 
libXcursor.so.2.0
lrwxr-xr-x  1 root  wheel  17 May 12 15:15 /usr/X11R7/lib/libXdamage.so.2 -> 
libXdamage.so.2.0
lrwxr-xr-x  1 root  wheel  15 May 12 15:15 /usr/X11R7/lib/libXdmcp.so.7 -> 
libXdmcp.so.7.0
lrwxr-xr-x  1 root  wheel  14 May 12 15:15 /usr/X11R7/lib/libXext.so.7 -> 
libXext.so.7.1
lrwxr-xr-x  1 root  wheel  16 May 12 15:15 /usr/X11R7/lib/libXfixes.so.4 -> 
libXfixes.so.4.0
lrwxr-xr-x  1 root  wheel  12 May 12 15:15 /usr/X11R7/lib/libXi.so.7 -> 
libXi.so.7.1
lrwxr-xr-x  1 root  wheel  18 May 12 15:15 /usr/X11R7/lib/libXinerama.so.2 -> 
libXinerama.so.2.0
lrwxr-xr-x  1 root  wheel  16 May 12 15:15 /usr/X11R7/lib/libXrandr.so.3 -> 
libXrandr.so.3.2
lrwxr-xr-x  1 root  wheel  17 May 12 15:15 /usr/X11R7/lib/libXrender.so.2 -> 
libXrender.so.2.0
lrwxr-xr-x  1 root  wheel  18 May 12 15:15 /usr/X11R7/lib/libpixman-1.so.2 -> 
libpixman-1.so.2.2
lrwxr-xr-x  1 root  wheel  20 May 12 15:15 /usr/X11R7/lib/libxcb-render.so.0 -> 
libxcb-render.so.0.1
lrwxr-xr-x  1 root  wheel  17 May 12 15:15 /usr/X11R7/lib/libxcb-shm.so.0 -> 
libxcb-shm.so.0.1
lrwxr-xr-x  1 root  wheel  13 May 12 15:15 /usr/X11R7/lib/libxcb.so.2 -> 
libxcb.so.2.0
lrwxr-xr-x  1 root  wheel  13 May 12 15:15 /usr/lib/libbz2.so.1 -> libbz2.so.1.1
lrwxr-xr-x  1 root  wheel  24 May 12 15:15 /usr/lib/libc.so.12 -> 
../../lib/libc.so.12.213
lrwxr-xr-x  1 root  wheel  15 May 12 15:15 /usr/lib/libexpat.so.2 -> 
libexpat.so.2.3
lrwxr-xr-x  1 root  wheel  25 May 12 15:15 /usr/lib/libgcc_s.so.1 -> 
../../lib/libgcc_s.so.1.0
lrwxr-xr-x  1 root  wheel  14 May 12 15:15 /usr/lib/libintl.so.1 -> 
libintl.so.1.1
lrwxr-xr-x  1 root  wheel  22 May 12 15:15 /usr/lib/libm.so.0 -> 
../../lib/libm.so.0.12
lrwxr-xr-x  1 root  wheel  27 May 12 15:15 /usr/lib/libpthread.so.1 -> 
../../lib/libpthread.so.1.4
lrwxr-xr-x  1 root  wheel  12 May 12 15:15 /usr/lib/librt.so.1 -> librt.so.1.1
lrwxr-xr-x  1 root  wheel  21 May 12 15:15 /usr/lib/libz.so.1 -> 
../../lib/libz.so.1.0
lrwxr-xr-x  1 root  wheel  17 Jun 16 19:32 
/usr/pkg/gcc8/x86_64--netbsd/lib/./libstdc++.so.7 -> libstdc++.so.7.25
lrwxr-xr-x  1 root  wheel  23 Jun 16 20:22 /usr/pkg/lib/libatk-1.0.so.0 -> 
libatk-1.0.so.0.23609.1
lrwxr-xr-x  1 root  wheel  21 Jun 16 20:39 /usr/pkg/lib/libcairo.so.2 -> 
libcairo.so.2.11600.0
lrwxr-xr-x  1 root  wheel  15 Jun 16 19:00 /usr/pkg/lib/libffi.so.7 -> 
libffi.so.7.1.0
lrwxr-xr-x  1 root  wheel  23 Jun 16 20:26 /usr/pkg/lib/libfontconfig.so.1 -> 
libfontconfig.so.1.12.0
lrwxr-xr-x  1 root  wheel  21 Jun 16 20:25 /usr/pkg/lib/libfreetype.so.6 -> 
libfreetype.so.6.17.4
lrwxr-xr-x  1 root  wheel  19 Jun 16 20:26 /usr/pkg/lib/libfribidi.so.0 -> 
libfribidi.so.0.4.0
lrwxr-xr-x  1 root  wheel  27 Jun 16 20:42 /usr/pkg/lib/libgdk-x11-2.0.so.0 -> 
libgdk-x11-2.0.so.0.2400.33
lrwxr-xr-x  1 root  wheel  29 Jun 16 20:25 /usr/pkg/lib/libgdk_pixbuf-2.0.so.0 
-> libgdk_pixbuf-2.0.so.0.4000.0
lrwxr-xr-x  1 root  wheel  22 Jun 16 20:20 /usr/pkg/lib/libgio-2.0.so.0 -> 
libgio-2.0.so.0.6800.2
lrwxr-xr-x  1 root  wheel  23 Jun 16 20:20 /usr/pkg/lib/libglib-2.0.so.0 -> 
libglib-2.0.so.0.6800.2
lrwxr-xr-x  1 root  wheel  26 Jun 16 20:20 /usr/pkg/lib/libgmodule-2.0.so.0 -> 
libgmodule-2.0.so.0.6800.2
lrwxr-xr-x  1 root  wheel  26 Jun 16 20:20 /usr/pkg/lib/libgobject-2.0.so.0 -> 
libgobject-2.0.so.0.6800.2
lrwxr-xr-x  1 root  wheel  21 Jun 16 20:37 /usr/pkg/lib/libgraphite2.so.3 -> 
libgraphite2.so.3.2.1
lrwxr-xr-x  1 root  wheel  27 Jun 16 20:42 /usr/pkg/lib/libgtk-x11-2.0.so.0 -> 
libgtk-x11-2.0.so.0.2400.33
lrwxr-xr-x  1 root  wheel  24 Jun 16 20:37 /usr/pkg/lib/libharfbuzz.so.0 -> 
libharfbuzz.so.0.20704.0
lrwxr-xr-x  1 root  wheel  16 Jun 16 20:49 /usr/pkg/lib/libltdl.so.7 -> 
libltdl.so.7.3.1
lrwxr-xr-x  1 root  wheel  24 Jun 16 20:40 /usr/pkg/lib/libpango-1.0.so.0 -> 
libpango-1.0.so.0.4800.4
lrwxr-xr-x  1 root  wheel  29 Jun 16 20:40 /usr/pkg/lib/libpangocairo-1.0.so.0 
-> libpangocairo-1.0.so.0.4800.4
lrwxr-xr-x  1 root  wheel  27 Jun 16 20:40 /usr/pkg/lib/libpangoft2-1.0.so.0 -> 
libpangoft2-1.0.so.0.4800.4
lrwxr-xr-x  1 root  wheel  17 Jun 16 20:19 

Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Martin Husemann
On Sat, Jul 10, 2021 at 03:48:35PM +0200, Martin Husemann wrote:
> On Sat, Jul 10, 2021 at 03:46:46PM +0200, Rhialto wrote:
> > On Sat 10 Jul 2021 at 15:41:27 +0200, Martin Husemann wrote:
> > > On Sat, Jul 10, 2021 at 03:39:10PM +0200, Rhialto wrote:
> > > > How far did you get? I tried sun3, and I got to booting the ramdisk
> > 
> > Oh this is with NetBSD/amd64 9.2, not -current. I don't know if that
> > makes a difference.
> 
> Interesting data point - I guess it will.

But then (looking at the libs it actually uses) this is kinda unlikely,
besides issues caused by the different compiler.

I'd expect the set exact dependcies install would be more of an issue.
I used pkgsrc-current from around the time of the last branch, and had
updated all pkgs.

Martin


Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Martin Husemann
On Sat, Jul 10, 2021 at 03:46:46PM +0200, Rhialto wrote:
> On Sat 10 Jul 2021 at 15:41:27 +0200, Martin Husemann wrote:
> > On Sat, Jul 10, 2021 at 03:39:10PM +0200, Rhialto wrote:
> > > How far did you get? I tried sun3, and I got to booting the ramdisk
> 
> Oh this is with NetBSD/amd64 9.2, not -current. I don't know if that
> makes a difference.

Interesting data point - I guess it will.

Martin


Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Rhialto
On Sat 10 Jul 2021 at 15:41:27 +0200, Martin Husemann wrote:
> On Sat, Jul 10, 2021 at 03:39:10PM +0200, Rhialto wrote:
> > How far did you get? I tried sun3, and I got to booting the ramdisk

Oh this is with NetBSD/amd64 9.2, not -current. I don't know if that
makes a difference.

-Olaf.
-- 
___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFHfalu.nl@rhialto



signature.asc
Description: PGP signature


Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Martin Husemann
On Sat, Jul 10, 2021 at 03:39:10PM +0200, Rhialto wrote:
> How far did you get? I tried sun3, and I got to booting the ramdisk
> kernel from tape. But when I did the "dd bs=32k if=/dev/nrst0
> of=/dev/rsd0b" I got a core dump. Possibly I had not used edlabel
> correctly due to it not getting a geometry it believed.

I failed to even powerup the sun4c - command line editing in tmesh
was broken (this is after fixing the PAX issue, which made it instantly
crash before).

Martin


Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Rhialto
On Sat 10 Jul 2021 at 12:50:08 +0200, Martin Husemann wrote:
> Anyone feel like looking into that? The homepage has nice instructions and
> setup is very straight forward. I am mostly interested in sun2, sun3 and
> sun4c currently.

How far did you get? I tried sun3, and I got to booting the ramdisk
kernel from tape. But when I did the "dd bs=32k if=/dev/nrst0
of=/dev/rsd0b" I got a core dump. Possibly I had not used edlabel
correctly due to it not getting a geometry it believed.

(And the mt -f /dev/nrst0 rewind / fsf 2 don't seem to match the
position of the miniroot.fs, which the instructions tell you to put as
4th file)

> Martin
-Olaf.
-- 
___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFHfalu.nl@rhialto



signature.asc
Description: PGP signature


Re: Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Chavdar Ivanov
On Sat, 10 Jul 2021 at 11:50, Martin Husemann  wrote:
>
> The emulators/tme pkg is a nice, lightweight pkg allowing you to run
> various sun machines on amd64 (and others). I recently needed it for testing
> some openssl fallout in netbsd-9 (where qemu seems to only emulate machines
> for which it works and that I also have as real hardware).
>
> Unfortunately the pkg does not work on NetBSD-current.
> It needs an obvious fix:
>
> @@ -26,6 +26,8 @@
>  # warnings generated, increasing with every compiler version.
>  CONFIGURE_ARGS+=   --disable-warnings
>
> +NOT_PAX_MPROTECT_SAFE+=bin/tmesh
> +
>  BUILDLINK_DEPMETHOD.libXt?=build
>
>  .include "../../mk/compiler.mk"
>
>
> ... but that is not enough, and I didn't have the time to debug further.
>
> Anyone feel like looking into that? The homepage has nice instructions and
> setup is very straight forward. I am mostly interested in sun2, sun3 and
> sun4c currently.

I couldn't get sun4c to boot; I always get:

(gdb) bt
#0  0x70e801e1946a in tme_sparc32_recode_insn_current () from
/usr/pkg/lib/tme/tme_ic_sparc.so.0
#1  0x70e801e19632 in _tme_sparc32_recode_ls_assist_ld () from
/usr/pkg/lib/tme/tme_ic_sparc.so.0
#2  0x70e801600595 in ?? ()
#3  0xffe88240 in ?? ()
#4  0x in ?? ()

(and notice the many references to sparc32_recode in the TODO file...)

 but sun2 is starting ok. I'll now try to follow the instructions and
actually install NetBSD.

>
> Martin

Chavdar


-- 



Anyone feel like fixing pkgsrc/emulators/tme ?

2021-07-10 Thread Martin Husemann
The emulators/tme pkg is a nice, lightweight pkg allowing you to run
various sun machines on amd64 (and others). I recently needed it for testing
some openssl fallout in netbsd-9 (where qemu seems to only emulate machines
for which it works and that I also have as real hardware).

Unfortunately the pkg does not work on NetBSD-current.
It needs an obvious fix:

@@ -26,6 +26,8 @@
 # warnings generated, increasing with every compiler version.
 CONFIGURE_ARGS+=   --disable-warnings
 
+NOT_PAX_MPROTECT_SAFE+=bin/tmesh
+
 BUILDLINK_DEPMETHOD.libXt?=build
 
 .include "../../mk/compiler.mk"


... but that is not enough, and I didn't have the time to debug further.

Anyone feel like looking into that? The homepage has nice instructions and
setup is very straight forward. I am mostly interested in sun2, sun3 and
sun4c currently.

Martin