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

Bug 334845

Summary: Spawner can't find execs on build env PATH
Product: [Tools] CDT Reporter: Doug Schaefer <cdtdoug>
Component: cdt-coreAssignee: Doug Schaefer <cdtdoug>
Status: RESOLVED FIXED QA Contact: Doug Schaefer <cdtdoug>
Severity: normal    
Priority: P3 CC: jamesblackburn+eclipse, mirko, recoskie
Version: 7.0   
Target Milestone: 7.0.2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Doug Schaefer CLA 2011-01-19 21:03:12 EST
The spawner tries to find the executable on the PATH but doesn't consider the PATH var passed down on exec. This was fixed on Linux quite a while ago in 145737. The fix needs to be ported to Mac.
Comment 1 CDT Genie CLA 2011-01-19 21:23:04 EST
*** cdt cvs genie on behalf of dschaefer ***
Bug  334845 - Port Linux pfind to Mac.

[*] exec_pty.c 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/library/exec_pty.c?root=Tools_Project&r1=1.3&r2=1.4
[*] exec_unix.c 1.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/library/exec_unix.c?root=Tools_Project&r1=1.2&r2=1.3
[*] pfind.c 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/library/pfind.c?root=Tools_Project&r1=1.3&r2=1.4

[*] libspawner.jnilib 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/x86_64/libspawner.jnilib?root=Tools_Project&r1=1.3&r2=1.4
[*] libpty.jnilib 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/x86_64/libpty.jnilib?root=Tools_Project&r1=1.3&r2=1.4

[*] libspawner.jnilib 1.5 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/x86/libspawner.jnilib?root=Tools_Project&r1=1.4&r2=1.5
[*] libpty.jnilib 1.5 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/x86/libpty.jnilib?root=Tools_Project&r1=1.4&r2=1.5

[*] libspawner.jnilib 1.7 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/ppc/libspawner.jnilib?root=Tools_Project&r1=1.6&r2=1.7
[*] libpty.jnilib 1.7 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/ppc/libpty.jnilib?root=Tools_Project&r1=1.6&r2=1.7

[*] exec_pty.c 1.3.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/library/exec_pty.c?root=Tools_Project&r1=1.3&r2=1.3.2.1
[*] exec_unix.c 1.2.20.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/library/exec_unix.c?root=Tools_Project&r1=1.2&r2=1.2.20.1
[*] pfind.c 1.3.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/library/pfind.c?root=Tools_Project&r1=1.3&r2=1.3.2.1

[*] libspawner.jnilib 1.3.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/x86_64/libspawner.jnilib?root=Tools_Project&r1=1.3&r2=1.3.2.1
[*] libpty.jnilib 1.3.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/x86_64/libpty.jnilib?root=Tools_Project&r1=1.3&r2=1.3.2.1

[*] libspawner.jnilib 1.4.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/x86/libspawner.jnilib?root=Tools_Project&r1=1.4&r2=1.4.2.1
[*] libpty.jnilib 1.4.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/x86/libpty.jnilib?root=Tools_Project&r1=1.4&r2=1.4.2.1

[*] libspawner.jnilib 1.6.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/ppc/libspawner.jnilib?root=Tools_Project&r1=1.6&r2=1.6.2.1
[*] libpty.jnilib 1.6.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/os/macosx/ppc/libpty.jnilib?root=Tools_Project&r1=1.6&r2=1.6.2.1
Comment 2 Doug Schaefer CLA 2011-01-19 22:43:35 EST
Port fix from the Linux fragment. At some point we should consider merging all the spawner code into one project so they have a chance to keep in sync.
Comment 3 Doug Schaefer CLA 2011-01-19 22:44:23 EST
BTW, checked into HEAD and cdt_7_0.
Comment 4 James Blackburn CLA 2011-01-20 04:17:05 EST
BTW what host did you build the new libraries on? We had some issue in the past where libraries built on 10.6 of OS X don't work on 10.5 (bug 248071).
Mirko can your confirm that the OS X natives still work for you?
Comment 5 Doug Schaefer CLA 2011-01-20 10:31:51 EST
I built on 10.6.6. I don't have access to 10.5. If someone wants to build there and contribute, feel free. Given how old 10.5 is and how well Eclipse runs in 10.6 and how little contribution we obviously get for Mac, I'm happy dropping 10.5.
Comment 6 Chris Recoskie CLA 2011-01-20 10:56:23 EST
Wondering if this affects the AIX spawner too...

And yeah, a common project would be nice.  I think the code is supposed to be the same now amongst all the *NIX based spawners, isn't it?