openMSX Debugger do not like Mac with M1 processor !

Page 1/3
| 2 | 3

By ericb59

Paragon (1126)

ericb59's picture

11-01-2022, 19:08

I'm sorry, I did not find the Topic which spoke about problems with the debugger... It was some time ago ...

I switched to Mac Book PRO M1, and I see that the openMSX debugger no longer works.
Installation of QT ARM version via Brew does not work.
Normally installing a version of QT5 for X86 which would be translated by Rosetta2 should have solved the problem, but that doesn't work either.
I used this tutorial:

Does anyone have a solution?
If someone explains to me how to do , I can try to compile openMSX for ARM ...? or something else... ;(

Login or register to post comments

By santiontanon

Paragon (1833)

santiontanon's picture

11-01-2022, 19:39

I have had an M1 Mac Book PRO since very shortly after Apple launched them, and I have been using the openMSX debugger all this time without any problems. What problem are you seeing?

By ericb59

Paragon (1126)

ericb59's picture

11-01-2022, 20:27

It crash at startup.
Now since I've installed X86 brew and X86 QT5

Translated Report (Full Report Below)

Process:               openmsx-debugger [47933]
Path:                  /Users/USER/Desktop/*/
Identifier:            org.openmsx.openmsx-debugger
Version:                ()
Code Type:             X86-64 (Translated)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-01-11 20:25:26.5979 +0100
OS Version:            macOS 12.1 (21C52)
Report Version:        12
Anonymous UUID:        99AE564D-2ADC-FB4F-DE80-C9A31BD82BF2

Sleep/Wake UUID:       40A34BE9-64D9-4835-A509-0F995EF30F7F

Time Awake Since Boot: 82000 seconds
Time Since Wake:       5731 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue:

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [47933]

VM Region Info: 0 is not in any region.  Bytes before following region: 4375334912
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      __TEXT                      104ca5000-104e21000    [ 1520K] r-x/rwx SM=COW  ...nmsx-debugger

and more infos after that...

What version of Brew and QT did you install ?

By santiontanon

Paragon (1833)

santiontanon's picture

11-01-2022, 21:18

oh, I was able to install regular brew, qt@5 on arm directly, clone the github repo of the debugger, and just "make". What error do you get when installing the arm version of qt@5?

By santiontanon

Paragon (1833)

santiontanon's picture

11-01-2022, 22:39

btw, I could also upload my compiled arm debugger binary somewhere if that can help!

By gdx

Enlighted (6449)

gdx's picture

12-01-2022, 01:53

I never managed to get the debugger to work on Mac. It crash at startup.

By Manuel

Ascended (19691)

Manuel's picture

12-01-2022, 07:49

@santi: if you could do that, we can make it available on the site.

More explicit instructions how to build can also be useful, I guess.

By ericb59

Paragon (1126)

ericb59's picture

12-01-2022, 09:42

Ok I see. You compile It directly on your Mac.
From my side, I just download it from openMSX website. Which is not the best solution I think.

Yes, please send your M1 binary, and also the instruction toi build it on MAC Wink
Thank you

By ericb59

Paragon (1126)

ericb59's picture

12-01-2022, 12:02

ok finally found a way...

1- Install Homebrew on your Mac from Terminal

/bin/bash -c "$(curl -fsSL <a href="" title=""></a>)"

2- Install QT5

brew install qt5

3- On my MacOS 12.1 (Monterey. Brew is installing files on another folder than on my previous MacOS With Intel Processor.
Files are now stored in /opt/homebrew/Cellar/qt@5
But the debugger 's compiler is waiting them in /usr/local/opt/qt5/
Thus, create this folder
sudo mkdir /usr/local/opt/qt5/
then copy all files to new folder

sudo cp -R /opt/homebrew/Cellar/qt@5/5.15.2_1/ /usr/local/opt/qt5

4- Download latest version of the Debugger :

5- with the terminal go to this folder,

CD [path to your folder]



It will create a new folder "/derived" you must find the debugger there.

Hope there is no mistakes here :o

By ericb59

Paragon (1126)

ericb59's picture

12-01-2022, 12:13

Here the debugger binary for MAC M1

Now I would like to have openMSX ARM Version, but I do not have all dependencies and libraries to compil it.

By Sylvester

Hero (593)

Sylvester's picture

12-01-2022, 12:38

just run `make staticbindist`, it will download the dependencies automatically. I also have an openMSX ARM version running here Smile

Page 1/3
| 2 | 3