Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 303412

Summary: Mac OS X Snow Leopard gcc generates 64 bit executables by default
Product: [Tools] CDT Reporter: Phil Hartley <phartley>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED DUPLICATE QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3    
Version: 0 DD 1.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Phil Hartley CLA 2010-02-20 13:22:25 EST
Build Identifier: 20090920-1017

gcc for Snow Leopard builds 64 bit executables by default.  These are not recognized as executables by the Mach-O parser. 

Workaround:

Add -arch i386 to the command line of each of the compilers and the linker

Reproducible: Always

Steps to Reproduce:
1. On Snow Leopard, create the HelloWorld project.
2. Note that the executables are not recognized.
Comment 1 Andrew Gvozdev CLA 2010-02-20 17:11:06 EST
Try more recent build. Both CDT 6.0.2 and 7.0 support Mach-O 64 parser.

*** This bug has been marked as a duplicate of bug 270790 ***