Bootstrapping pkgsrc on FreeMiNT

charlotte@NetBSD.org


Last updated:

Mon Apr 1 02:33:53 UTC 2024


From here: https://tho-otto.de/crossmint.php

I picked up the "000" version of

Pick up a GCC here:

Needed to make /bin/sh available:

ln -sf /bin/bash /bin/sh

Attempt a bootstrap:

./bootstrap --unprivileged --prefix /d/atariroot/pkg

Trying to bootstrap bmake(1) fails:

compilation terminated.
configure:2768: $? = 1
configure:2788: checking whether the C compiler works
configure:2810: gcc    conftest.c  >&5
Fatal error: insufficient memory
Hint: either decrease stack size using 'stack' command (not recomended)
      or increase TPA_INITIALMEM value in mint.cnf.
configure:2814: $? = 1
configure:2852: result: no
configure: failed program was:

Let's try bumping it up, then (apparently 1024 is the default)

TPA_INITIALMEM=4096

Reboot, try again:

compilation terminated.
configure:2768: $? = 1
configure:2788: checking whether the C compiler works
configure:2810: gcc    conftest.c  >&5
gcc: error trying to exec 'as': execvp: No such file or directory
configure:2814: $? = 1
configure:2852: result: no

as(1) comes from binutils, I guess we do need that after all, get them from here:

https://github.com/freemint/m68k-atari-mint-binutils-gdb/releases/tag/binutils-2_30-mint

Try again:

/opt/GEM/binutils/usr/bin/ld: cannot find crt0.o: No such file or directory  
/opt/GEM/binutils/usr/bin/ld: cannot find -lc

Alright, we need MintLib:

https://tho-otto.de/download/mint/mintlib-0.60.1-mint-20230212-dev.tar.xz

This has a big fat /usr/m68k-atari-mint/sys-root/ folder, So I'll put that in the sys-root folder in drive_c:

charlotte@sakuracity:/tmp/j/usr/m68k-atari-mint/sys-root rsync -avr ./ ~/.aranym/drive_c/mint/1-19-c02/sys-root

Try again: didn't work. I needed to add /usr as in:

ln -sf /c/mint/1-19-c02/sys-root/usr /usr

(I think mint.cnf would govern making that symlink automatically every time, hopefully I don't forget about that)

Try again, FINALLY we die for a better reason:

configure:3372: checking for grep that handles long lines and -e
configure:3423: error: no acceptable grep could be found [...]

Fortunately, th-otto has a GNU grep, let's install it, retry:

(dies with the libarchive error, XXX paste it here)