Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340602 - Update Mac slave to OS X 10.6 (java 1.6 installs on mac slave appear to be for wrong processor type on 10.5)
Summary: Update Mac slave to OS X 10.6 (java 1.6 installs on mac slave appear to be fo...
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: CI-Jenkins (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eclipse Webmaster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 295393
  Show dependency tree
 
Reported: 2011-03-21 15:17 EDT by Kim Moir CLA
Modified: 2011-05-18 09:02 EDT (History)
1 user (show)

See Also:


Attachments
screen shot (30.35 KB, image/jpeg)
2011-03-21 15:17 EDT, Kim Moir CLA
no flags Details
mac mini at foundation java install (19.70 KB, image/jpeg)
2011-03-24 11:14 EDT, Kim Moir CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Moir CLA 2011-03-21 15:17:32 EDT
Created attachment 191637 [details]
screen shot

I'll attach a screen shot.
Comment 1 Kim Moir CLA 2011-03-21 15:19:59 EDT
The 1.5.0 and 1.4.2 versions seem to be installed correctly.
Comment 2 Eclipse Webmaster CLA 2011-03-22 11:00:12 EDT
I suspect we may be hosed here.

From the Apple release notes( Mac OS X 10.5 Updates 6,7) :

Java SE 6 is available on 64-bit Intel-based Macs only

And the Update 8 & 9 release notes:

...Java SE 6 to 1.6.0_22 for 64-bit capable Intel-based Macs only

Since this is a 32bit machine it doesn't look like Apple will/does provide a Java 1.6 package.

Any ideas?

-M.
Comment 3 Kim Moir CLA 2011-03-22 13:57:06 EDT
That's funny.  My mac here is the same architecture and os version as yours and it has the correct version of Java 6 installed.

luiimac:~ ibmemployee$ ioreg -l -p IODeviceTree | grep firmware-abi
    | |   "firmware-abi" = <"EFI32">
luiimac:~ ibmemployee$ uname -a
Darwin luiimac.ottawa.ibm.com 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386


What does it say when you try to install the latest Java package?
Comment 4 Eclipse Webmaster CLA 2011-03-22 15:32:19 EDT
Well I 're-installed' the 10.5 update 9 and it was happy(no errors, but I don't recall there being errors previously).  But that seems to have 'removed' the 1.6 files(even though it indicated it was installing them).

Mini-2:Versions root# pwd
/System/Library/Frameworks/JavaVM.framework/Versions
Mini-2:Versions root# cd 1.6
-sh: cd: 1.6: No such file or directory

-M.
Comment 5 Kim Moir CLA 2011-03-23 16:05:56 EDT
Well, that's a problem :-(

Some of our test bundles require Java 6.  For instance, the p2 tests manifest looks like this

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %foo
Bundle-SymbolicName: foo
Bundle-Version: 1.0.0.qualifier
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6

This means that these tests just fail/timeout on this machine since there isn't any Java 6 available.  The result is 1800 missing test results :-(

Also, the minimum reference platform for 3.7 for the Mac is 10.6

http://www.eclipse.org/projects/project-plan.php?planurl=http://www.eclipse.org/eclipse/development/plans/eclipse_project_plan_3_7.xml#target_environments
Comment 6 Eclipse Webmaster CLA 2011-03-24 10:29:10 EDT
Well how did you install the Java 6 files?  Maybe we can re-use that to get these tests running while we solve 329830.

-M.
Comment 7 Kim Moir CLA 2011-03-24 11:10:39 EDT
Just the regular java update 

luiimac:~ ibmemployee$ pkgutil --pkgs | grep -i java
com.apple.pkg.JavaToolsLeo
com.apple.pkg.Java
com.apple.pkg.JavaSDKLeo
com.apple.pkg.JavaForMacOSX10.5Update2
com.apple.pkg.JavaForMacOSX10.5Update5

luiimac:Commands ibmemployee$ pwd
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands
luiimac:Commands ibmemployee$ pkgutil --file-info /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java
volume: /
path: System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java

pkgid: com.apple.pkg.JavaForMacOSX10.5Update2
pkg-version: 10.5.0.1.1.1192168948
install-time: 1240233130
uid: 0
gid: 0
mode: 120755

pkgid: com.apple.pkg.JavaForMacOSX10.5Update5
pkg-version: 10.5.0.1.1.1192168948
install-time: 1262634483
uid: 0
gid: 0
mode: 120755
Comment 8 Kim Moir CLA 2011-03-24 11:14:19 EDT
Created attachment 191831 [details]
mac mini at foundation java install

It looks like you have other packages installed
Comment 9 Eclipse Webmaster CLA 2011-03-25 09:36:58 EDT
Well I only installed update 9, so I presume the rest were part of the standard OS updates(or were included with X-code).

Just for kicks I managed to find a copy of Java update 4 and it's readme had the same verbiage ~= 1.6 is 64bit only.

Not sure what to suggest to resolve this.

-M.
Comment 10 Scott Kovatch CLA 2011-03-27 16:05:05 EDT
(In reply to comment #9)
> Not sure what to suggest to resolve this.

I'll repeat what I said in bug 329830 over here. Java 6 is 64-bit only on 10.5, and since this Mac Mini is a Core Duo it won't run 64-bit code. The installers are smart enough to detect that.

Mac OS X 10.6 has both 32- and 64-bit Java 6, so you can update to 10.6 and run Java 6 in 32-bit mode. That will set you back $29, and you can get it just about anywhere.
Comment 11 Denis Roy CLA 2011-03-30 14:37:20 EDT
Matt, if you have no reason to believe that 10.6 will not run on our mini, please do what's necessary to acquire that upgrade and apply it at your earliest convenience.
Comment 12 Eclipse Webmaster CLA 2011-03-31 11:38:29 EDT
I now have a copy of 10.6.3 in my hands.  I'm going to schedule some time in the IDC tommorrow morning to install it.

-M.
Comment 13 Kim Moir CLA 2011-03-31 19:51:49 EDT
Thanks Matt!
Comment 14 Eclipse Webmaster CLA 2011-04-01 14:02:56 EDT
I've installed 10.6.

Mini-2:~ $ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
Java HotSpot(TM) Client VM (build 14.3-b01-101, mixed mode)


-M.
Comment 15 Kim Moir CLA 2011-04-01 16:20:21 EDT
Thanks, I'm running a test build now, which will launch tests on MacOSX.
Comment 16 Kim Moir CLA 2011-04-05 07:31:01 EDT
My most recent build failed because it couldn't find the cvs binary to check out the build scripts on the mac slave

I just went through all the comments in bug 329830 to check if the new  OS install had the changes you made to the base os.  The following things need to be fixed
-Install cvs binary 
-Ensure that this machine is automatically logged into as the hudson user with no screen savers enabled.  When I looked at it via vnc, it seems that it's logged in as the Hudson user, but there aren't any icons for Safari etc, at the bottom of the screen.  Strange.
Comment 17 Eclipse Webmaster CLA 2011-04-05 10:22:39 EDT
I've installed cvs(via Xcode) and enabled the auto-login feature.

If I scroll to the bottom of the screen, I see the Safari icon on the dock.

-M.
Comment 18 Denis Roy CLA 2011-05-18 09:02:29 EDT
As per comment 14, the Mac slave has been upgraded to 10.6.