machawk1 / wail

:whale2: Web Archiving Integration Layer: One-Click User Instigated Preservation
https://matkelly.com/wail
MIT License
345 stars 32 forks source link

Porting to Apple Silicon #494

Closed machawk1 closed 3 years ago

machawk1 commented 3 years ago

Mac support currently relies on aspects of the Intel computational architecture. Despite the compatibility layer of Rosetta, WAIL does not work correctly on Apple Silicon, so needs to be adapted.

In preliminary testing, a few issues I encountered are:

This ticket will document the investigation further to hopefully eventually supporting the new architecture.

machawk1 commented 3 years ago

The pyinstaller bootloader is currently x86_64 though there is current work in porting it. When I build on amd64 using f264262, an Intel binary is generated...but the correct MemGator binary is executed.

machawk1 commented 3 years ago

Pulling the Pyinstaller source and building the bootloader (macOS 11.4) produces an Apple Silicon binary.

git clone https://github.com/pyinstaller/pyinstaller.git
cd pyinstaller/bootloader
python3 ./waf all  
cd ..
python3 -m pip install .

...then run the WAIL makefile as usual (per the README).

Screen Shot 2021-06-21 at 2 38 22 PM