Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337254 - Binary not found - Universal ppc+i386 executables are not picked up on 64 bit machines
Summary: Binary not found - Universal ppc+i386 executables are not picked up on 64 bit...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 7.0.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Sergey Prigogin CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-15 16:51 EST by Johan van den Berg CLA
Modified: 2012-05-22 14:55 EDT (History)
4 users (show)

See Also:


Attachments
Patch that resolves the issue (1.53 KB, patch)
2011-02-15 16:53 EST, Johan van den Berg CLA
eclipse.sprigogin: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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