libretro / libretro/libretro-super

osx 10.5 ppc - mame incorrectly sets arch

Open
#552 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
470
Forks
332
Avg merge
1d 18h
Merged PRs (30d)
24

Description

My powerpc G4 (32bit) is incorrectly detected as 64bit by libretro-mame.

Precompiling src/emu/emu.h...
c++ -MMD -MP -MP -D__LIBRETRO__ -DPTR64=1 -DCRLF=2 -DOSX_PPC -DFLAC__NO_DLL
-DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -I../../../../../src/osd                                                                    
-I../../../../../src/emu -I../../../../../src/lib/util -O2 
-m64 
-fPIC -Wno-unused-label -flax-vector-conversions 
-arch ppc64 
-pipe -Wno-deprecated-declarations -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -Wno-conversion -Wno-unused-result -Wno-array-bounds
-m64 

To make matters worse. -arch is not supported on the gcc compilers for osx ppc that are modern enough to compile mame. For osx ppc, -arch needs to be omitted in order to build mame.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the libretro-mame build configuration that emits PTR64, -m64, and -arch ppc64 for OSX_PPC, using the compiler output in the issue as the reproduction clue. Done means a 32-bit OSX PPC build no longer selects 64-bit flags or passes -arch, while other targets retain their expected settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, shell
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.