Compiling Basilisk II on Linux aarch64 (Pine64 PineBook Pro)

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
User avatar
oaguy1
Space Cadet
Posts: 3
Joined: Mon Oct 26, 2020 11:26 pm

Compiling Basilisk II on Linux aarch64 (Pine64 PineBook Pro)

Post by oaguy1 »

Hello!

I am running into a strange error when trying to compile Basilisk II for Linux aarch64 on my Pine64 PineBook Pro. Upon forking the macemu repository and pulling it down to my local machine (https://github.com/cebix/macemu), I start compiling according to the instructions in the INSTALL file. When running autogen.sh, I get the following error:

Code: Select all

configure: error: cannot guess build type; you must specify one
From googling around, I updated the copies of config.guess and config.sub from the versions installed on my machine and I am then able to configure/compile the binary. When launching the binary, I get the error:

Code: Select all

ERROR: Not enough free memory.
This seems unusual as I had 929MiB of free ram. I even tried closing all open applications (> 3GiB free) and still got the same error. I did some digging and the error seems to come from line 645 in src/Unix/main_unix.cpp. There is a failed call to vm_acquire_mac. I put the function definition below.

Code: Select all

// NOTE: VM_MAP_32BIT is only used when compiling a 64-bit JIT on specific platforms
void *vm_acquire_mac(size_t size)
{
        return vm_acquire(size, VM_MAP_DEFAULT | VM_MAP_32BIT);
}
Below is the output of running uname -a on my machine:

Code: Select all

Linux [HOSTNAME REDACTED] 5.8.14-1-MANJARO-ARM #1 SMP Wed Oct 7 09:18:37 CEST 2020 aarch64 GNU/Linux
Does anybody have any leads on how to fix this?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Compiling Basilisk II on Linux aarch64 (Pine64 PineBook Pro)

Post by Cat_7 »

Hi,

How did you invoke configure?
We currently build from https://github.com/kanjitalk755/macemu as it is both well maintained and has more features compared to the cebix repo.

Our compile instructions are here: https://www.emaculation.com/doku.php/co ... r_basilisk
They are outdated for Linux builds, but this works at my place (fedora32)

cd BasiliskII/src/Unix
NO_CONFIGURE=1 ./autogen.sh
./configure
make

Best,
Cat_7
User avatar
oaguy1
Space Cadet
Posts: 3
Joined: Mon Oct 26, 2020 11:26 pm

Re: Compiling Basilisk II on Linux aarch64 (Pine64 PineBook Pro)

Post by oaguy1 »

Thanks for the quick response and for suggesting the other repo (https://github.com/kanjitalk755/macemu).

I tried compiling the version you linked and I am having the same trouble. I had to perform the same upgrade to the config.guess and config.sub files I did on the other repo. I was only able to compile with JIT turned off and still get the same out of memory error. Would filing a bug on github be the right next step?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Compiling Basilisk II on Linux aarch64 (Pine64 PineBook Pro)

Post by Cat_7 »

Hi,

Yes, you might open an issue on kanjitalk755.

Best,
Cat_7
User avatar
oaguy1
Space Cadet
Posts: 3
Joined: Mon Oct 26, 2020 11:26 pm

Re: Compiling Basilisk II on Linux aarch64 (Pine64 PineBook Pro)

Post by oaguy1 »

User avatar
scops
Tinkerer
Posts: 48
Joined: Thu Jan 23, 2003 2:35 pm

Re: Compiling Basilisk II on Linux aarch64 (Pine64 PineBook Pro)

Post by scops »

Your config-edits and kanjitalk755's patches looking good! i successfully build and run BasiliskII on Odroid C2 /Debian Bullseye :)

Image

Download: https://upload.disroot.org/r/voKpH7bH#3 ... GmPUQ0eu4=
User avatar
ClockWise
Site Admin
Posts: 4397
Joined: Mon May 20, 2002 4:37 am
Location: Uiwang

Re: Compiling Basilisk II on Linux aarch64 (Pine64 PineBook Pro)

Post by ClockWise »

Fourteen years since your last post? Welcome back.

I think your user avatar image broke at some point between 2006 and now.
User avatar
scops
Tinkerer
Posts: 48
Joined: Thu Jan 23, 2003 2:35 pm

Re: Compiling Basilisk II on Linux aarch64 (Pine64 PineBook Pro)

Post by scops »

hehe, thanks. ;) i never was gone completely. just "a little bit quiet" xD
no RISC no FUN ;)
Post Reply