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

Bug 337254

Summary: Binary not found - Universal ppc+i386 executables are not picked up on 64 bit machines
Product: [Tools] CDT Reporter: Johan van den Berg <johanvdb>
Component: cdt-coreAssignee: Sergey Prigogin <eclipse.sprigogin>
Status: RESOLVED FIXED QA Contact: Doug Schaefer <cdtdoug>
Severity: normal    
Priority: P3 CC: alfredo321, eclipse.sprigogin, johanvdb, malaperle
Version: 7.0.1   
Target Milestone: 8.0   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Patch that resolves the issue eclipse.sprigogin: iplog+

Description Johan van den Berg CLA 2011-02-15 16:51:27 EST
Build Identifier: 20100917-0705

Neither the Mach-O original and new 64 bit binary parsers are able to identify binaries produced in whichever way as ppc+i386 Universal build executables, if the IDE is running on a 64bit OS. 

Reproducible: Always

Steps to Reproduce:
1. Create an external makefile project
2. Set up a makefile that creates universal binaries with architectures i386+ppc
3. Build project

Binary is not picked up and it is thus impossible to Run/Debug via Eclipse
Comment 1 Johan van den Berg CLA 2011-02-15 16:53:30 EST
Created attachment 189047 [details]
Patch that resolves the issue

The patch simply allows the parser to continue when an i386 executable is found on a 64bit machine.
Comment 2 Johan van den Berg CLA 2011-02-15 16:55:39 EST
After the patch is applied, I am able to see the executable under "Binaries" in the project explorer, I am able to run it, and debug (tested using gdb/mi).
Comment 3 Marc-André Laperle CLA 2011-02-15 20:05:10 EST
Hi, can you reopen the bug? Bugs should have a NEW, REOPENED or ASSIGNED status until the fix has been committed.
Comment 4 Sergey Prigogin CLA 2011-02-15 20:07:54 EST
No fix has been committed yet.
Comment 5 Sergey Prigogin CLA 2011-02-15 20:31:15 EST
Fixed in HEAD > 20110215.
Comment 6 CDT Genie CLA 2011-02-15 21:21:47 EST
*** cdt cvs genie on behalf of sprigogin ***
Bug 337254 - Binary not found - Universal ppc+i386 executables are not picked up on 64 bit machines. Patch by Johan van den Berg.

[*] MachO64.java 1.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/macho/MachO64.java?root=Tools_Project&r1=1.2&r2=1.3