1

I need to use gcc in -m32 mode on my macOS Mojave. I know it was deprecated some time ago. What should I do to make it possible?

emil
  • 35
  • 2
  • 15

2 Answers2

0

You would need to download an older version of Xcode (eg. 9.x), and pre 10.14 SDK's (eg. 10.13), then try from there. Apple dropped Xcode capability/support for i386 in 10.14. In other words, Mojave can run existing 32-bit applications but can't build 32-bit applications anymore.

MacPorts Discussion : User information about macOS Mojave

l'L'l
  • 44,951
  • 10
  • 95
  • 146
0

Works for me by installing:

/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

as commented here: Can't compile C program on a Mac after upgrade to Mojave

Peter Salomonsen
  • 5,525
  • 2
  • 24
  • 38