openMSX Debugger do not like Mac with M1 processor !

Pagina 1/3
| 2 | 3

Door ericb59

Paragon (1124)

afbeelding van ericb59

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: https://medium.com/mkdir-awesome/how-to-install-x86-64-homeb...

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

Aangemeld of registreer om reacties te plaatsen

Van santiontanon

Paragon (1830)

afbeelding van santiontanon

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?

Van ericb59

Paragon (1124)

afbeelding van ericb59

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/*/openMSX_Debugger.app/Contents/MacOS/openmsx-debugger
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: com.apple.main-thread

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
      UNUSED SPACE AT START
--->  
      __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 ?

Van santiontanon

Paragon (1830)

afbeelding van santiontanon

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?

Van santiontanon

Paragon (1830)

afbeelding van santiontanon

11-01-2022, 22:39

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

Van gdx

Enlighted (6424)

afbeelding van gdx

12-01-2022, 01:53

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

Van Manuel

Ascended (19676)

afbeelding van Manuel

12-01-2022, 07:49

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

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

Van ericb59

Paragon (1124)

afbeelding van ericb59

12-01-2022, 09:42

@santiontanon
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

Van ericb59

Paragon (1124)

afbeelding van ericb59

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="https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh" title="https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh">https://raw.githubusercontent.com/Homebrew/install/HEAD/inst...</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 :
https://github.com/openMSX

5- with the terminal go to this folder,

CD [path to your folder]

type

make

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

Hope there is no mistakes here :o

Van ericb59

Paragon (1124)

afbeelding van ericb59

12-01-2022, 12:13

Here the debugger binary for MAC M1
http://ebsoft.fr/msx/openMSX_Debugger_ARM.app.zip

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

Van Sylvester

Hero (593)

afbeelding van Sylvester

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

Pagina 1/3
| 2 | 3