agbcc icon indicating copy to clipboard operation
agbcc copied to clipboard

Segfault when building on Mac with M1

Open PikalaxALT opened this issue 3 years ago • 12 comments

Segfault seems to be specific to Macs with M1 Tried to ./build.sh on three differents macs running Big Sur 11.4, had no success with the M1 one (segfault 11)

Originally posted by @TGFbSMAD in https://github.com/pret/agbcc/issues/38#issuecomment-875438895

PikalaxALT avatar Jul 07 '21 10:07 PikalaxALT

@TGFbSMAD please reply to this issue with additional details. What does the script try to do immediately before the segfault?

PikalaxALT avatar Jul 07 '21 10:07 PikalaxALT

Where it start : Capture d’écran 2021-07-07 à 14 06 30

End of the script : Capture d’écran 2021-07-07 à 14 06 05

Using the agbcc from https://github.com/pizza2004/agbcc

TGFbSMAD avatar Jul 07 '21 12:07 TGFbSMAD

It seems you're using a different, third-party fork of agbcc. Could you verify please that the same issue occurs on this fork as well?

ScottNortonPhD avatar Jul 07 '21 12:07 ScottNortonPhD

Using the pret abcc leads to another error which has been fixed by pizza2004’s fork. I think that the same error would occure if the fix was applied here.

TGFbSMAD avatar Jul 07 '21 13:07 TGFbSMAD

So... still no fix for M1? :(

Manurocker95 avatar Jul 13 '21 07:07 Manurocker95

So... still no fix for M1? :(

We would need for one of the devs to obtain an M1 Mac before work can begin on this. As such, there is no timeline to fix this.

PikalaxALT avatar Jul 13 '21 09:07 PikalaxALT

So... still no fix for M1? :(

We would need for one of the devs to obtain an M1 Mac before work can begin on this. As such, there is no timeline to fix this.

Do you know if there was any new about this?

Manurocker95 avatar Jan 03 '22 11:01 Manurocker95

This actually might have been resolved, according to a post made by pfero in the Discord:

Update on M1 support: Turns out it was a confusion with different components being installed under rosetta and not. Please make sure to install everything under rosetta, including devkitpro and homebrew+libpng (which should be installed in /usr/local, not /opt/homebrew). Building natively/without rosetta isn't properly supported yet, more info if you'd like to help can be found at: https://discord.com/channels/442462691542695948/442465020291317760/897562585195499620 You'll need to join the Discord to view that link.

luckytyphlosion avatar Jan 03 '22 15:01 luckytyphlosion

I am still having the same issue, How can I ensure I am installing everything under rosetta?

tkolarik avatar Mar 05 '22 22:03 tkolarik

Following these steps and installing libpng under rosetta fixed it for me https://indiespark.top/software/run-command-line-apple-silicon/

tkolarik avatar Mar 05 '22 23:03 tkolarik

There's confirmation that the changes in the above PR (#52) resolve this issue.

hgmich avatar Mar 15 '22 18:03 hgmich

Additional confirmation that the referenced PR (#52) resolves this issue; just came here with it and found this solution. Seems like it's not merged into main yet

thomason-jesse avatar Aug 18 '22 05:08 thomason-jesse