Re: Disk errors on PowerBook 180
luRaichu <[email protected]> Thu, 14 May 2026 00:06:57 +0000
| Newsgroups | gmane.os.netbsd.ports.mac68k |
|---|---|
| Message-ID | <CY-VCHnX_zh_L_3-BWpFNvu8WoV4S8U4bb-8C3IJ5gFfBhil-86LllrTq9l9Uija_aHB2r6UmydHSvdjbP_UTkEgtr3tGuxhfWQ154iEhTw=@protonmail.com> |
On Wednesday, May 13th, 2026 at 4:58 PM, Nat Sloss <[email protected]= m.au> wrote: > >tinyx-wscons for mac68k architecture is not available from pkgsrc? > > For the moment there are no pakages for tinyx-wscons for mac68k, you can = cross compile a package for it though using the compiler tools from a mac68= k release build of NetBSD. > > I've found when cross compiling packages it is necessary to replace the b= uildlink libs from the package build directory with the ones from a mac68k = release (/usr/X11/libs) otherwize linking the cross compiled package fails. > > For my setup I unpack pkgsrc sources to a directory. > > Build a mac68k release with the stock X11. > > and change to the packages directory ie /home/admin/pkgsrc/x11/tinyx-wsco= ns > > run USE_CROSS_COMPILE=3Dyes make package-install. > > I have the following in my /etc/mk.conf: > > .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) > > # Point pkgsrc at the NetBSD tooldir and destdir for cross builds. > > CROSS_MACHINE_ARCH=3Dm68k > > CROSSBASE=3D ${LOCALBASE}/cross-${TARGET_ARCH:U${MACHINE_ARCH:S/m68ksf/m6= 8k/}} > > TOOLDIR=3D /home/admin/mac68k-softfloat/tooldir.NetBSD-11.99.1-amd64/ > > CROSS_DESTDIR=3D /home/admin/mac68k-softfloat/destdir.mac68k > > # Specify the machine architecture of target packages. > > # Specify the OS of target packages. > > CROSS_OPSYS=3D NetBSD > > CROSS_OS_VERSION=3D 10.0 > > CROSS_OPSYS_VERSION=3D 100000 > > CROSS_LOWER_OPSYS=3D netbsd > > CROSS_LOWER_OPSYS_VERSUFFIX=3D # empty > > CROSS_LOWER_OS_VARIANT=3D # empty > > CROSS_LOWER_VARIANT_VERSION=3D # empty > > CROSS_LOWER_VENDOR=3D # empty > > CROSS_OBJECT_FMT=3D ELF > > PKGSRC_USE_SSP=3D no > > PKGSRC_USE_STACK_CHECK?=3D no > > .endif > > My mac68k tool directory is the one from the mac68k release I built in /h= ome/admin/mac68k-softfloat (as I built a softfloat relase for my powerbooks= - its a bit faster). > > The compilation runs until it errors with linking and displays unknown ar= ch for libraries. > > So I change to the package/tiny-wscons/work.NetBSD.m68k work directory an= d remove buildlink/libs/* and copy from my NetBSD-mac68k release directory = mac68k-softfloat/destdir.mac68k/usr/X11R7/libs/* to buildlink/libs same for= any dependent libraries in mac68k-softfloat/destdir.mac68k/usr/pkg/lib/* t= o buildlink/libs/ and rerun USE_CROSS_COMPILE=3Dyes make package-install > > There will be a package in pkgsrc/packages.m68k/All which you can then in= stall on the macintosh. > > Best regards, > > Nat Could you please be kind enough to share your build of tinyx-wscons?