Port-mac68k archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Disk errors on PowerBook 180



 

>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 mac68k release build of NetBSD.

 

I've found when cross compiling packages it is necessary to replace the buildlink 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-wscons

run USE_CROSS_COMPILE=yes 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=m68k

CROSSBASE= ${LOCALBASE}/cross-${TARGET_ARCH:U${MACHINE_ARCH:S/m68ksf/m68k/}}

TOOLDIR= /home/admin/mac68k-softfloat/tooldir.NetBSD-11.99.1-amd64/

CROSS_DESTDIR= /home/admin/mac68k-softfloat/destdir.mac68k

# Specify the machine architecture of target packages.

# Specify the OS of target packages.

CROSS_OPSYS= NetBSD

CROSS_OS_VERSION= 10.0

CROSS_OPSYS_VERSION= 100000

CROSS_LOWER_OPSYS= netbsd

CROSS_LOWER_OPSYS_VERSUFFIX= # empty

CROSS_LOWER_OS_VARIANT= # empty

CROSS_LOWER_VARIANT_VERSION= # empty

CROSS_LOWER_VENDOR= # empty

CROSS_OBJECT_FMT= ELF

PKGSRC_USE_SSP= no

PKGSRC_USE_STACK_CHECK?= no

.endif

 

My mac68k tool directory is the one from the mac68k release I built in /home/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 arch for libraries.

 

So I change to the package/tiny-wscons/work.NetBSD.m68k work directory and 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/* to buildlink/libs/ and rerun USE_CROSS_COMPILE=yes make package-install

 

There will be a package in pkgsrc/packages.m68k/All which you can then install on the macintosh.

 

 

Best regards,

 

Nat

 



Home | Main Index | Thread Index | Old Index