Re: Building openjdk 8 on Mac OS X

2015-06-09 Thread David DeHaven
>> 2. Make a link form Xcode.4 lipo to /usr/bin/lipo You don't need to do this with the current command line tools, they've fixed the problem. If unsure, run "sudo xcode-select -switch /path/to/Xcode4.app" and then try running lipo with no args, if it deadlocks then it's still broken and you'l

Re: Building openjdk 8 on Mac OS X

2015-06-09 Thread mikhail cherkasov
Hi Denis, I applied you instruction, but I still have an error during configuration: configure:21029: /usr/bin/gcc --version >&5 i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Copyright (C) 2007 Free Software Foundation, Inc. This is free

Re: Building openjdk 8 on Mac OS X

2015-01-08 Thread David DeHaven
>> Yes, I just found this out the hard way yesterday (and many other patches >> are required too). >> >> Is there any chance OS X fixes can make it upstream? > > This basically requires backporting JDK-8043340 to jdk8u, which I've been > poking at here and there but have not had the time to re

Re: Building openjdk 8 on Mac OS X

2015-01-07 Thread David DeHaven
> MacPorts lipo (it works, put it earlier on your path because hotspot build > references "lipo" with no fancy variables) The lipo problem is freaking annoying. The issue is Xcode 4 doesn't have it in the OSX toolchain, it installed the actual binary to /usr/bin/lipo. In Xcode 5 that was repla

Re: Building openjdk 8 on Mac OS X

2015-01-07 Thread David Chase
For reference, with version numbers, here is what worked for me this morning, for both release and fastdebug builds (including closed bits): I'm on Mavericks (10.9.5), using Xcode 4.6.3, (sudo xcode-select -s /Applications/Xcode4.6.3.app/Contents/Developer) MacPorts lipo (it works, put it earlier

Re: Building openjdk 8 on Mac OS X

2015-01-06 Thread Wang Weijun
Advices from Denis and Na (were in this thread, quoted at the end), and 1. MACOSX_DEPLOYMENT_TARGET is also necessary for make 2. I need an extra configure argument --with-tools-dir=/Applications/Xcode4.app/Contents/Developer/usr/bin 3. When applying Na's patch, make sure to use Xcode4.app i

Re: Building openjdk 8 on Mac OS X

2015-01-06 Thread Manas Thakur
Hi Toby, Can you please share all those patches that you needed to do in order to successfully build jdk8 (or jdk8u) on MAC OS X Yosemite? Regards, Manas

Re: Building openjdk 8 on Mac OS X

2015-01-06 Thread David DeHaven
>> You need to patch /hotspot/make/bsd/makefiles/saproc.make to make it use >> 10.8sdk instead of system library in Yosemite. >> >> - SALIBS = -g -framework Foundation >> -F/System/Library/Frameworks/JavaVM.framework/Frameworks >> -framework JavaNativeFoundation -framework Security -framework Co

Re: Building openjdk 8 on Mac OS X

2015-01-05 Thread Toby Thain
On 05/01/15 2:57 AM, Na Pei wrote: You need to patch /hotspot/make/bsd/makefiles/saproc.make to make it use 10.8sdk instead of system library in Yosemite. - SALIBS = -g -framework Foundation -F/System/Library/Frameworks/JavaVM.framework/Frameworks -framework JavaNativeFoundation -framework Sec

Re: Building openjdk 8 on Mac OS X

2015-01-05 Thread Na Pei
You need to patch /hotspot/make/bsd/makefiles/saproc.make to make it use 10.8sdk instead of system library in Yosemite. - SALIBS = -g -framework Foundation -F/System/Library/Frameworks/JavaVM.framework/Frameworks -framework JavaNativeFoundation -framework Security -framework CoreFoundation + S

Re: Building openjdk 8 on Mac OS X

2014-11-26 Thread Denis Fokin
Hi guys, good news. I am able to build open jdk8 on Yosemite (thanks to Anton Tarasov for his script to build on 10.9) Steps: 1. Download and save in some secure place Xcode4.6 2. Make a link form Xcode.4 lipo to /usr/bin/lipo 3. Set MACOSX_DEPLOYMENT_TARGET enviroment variable to 10.8 4. E

Re: Building openjdk 8 on Mac OS X

2014-11-12 Thread David DeHaven
Not 8, 9... -DrD- > Hi Wang > > You were able to compile openjdk8 on Yosemite!! Can you please look into the > error faced by me (first post in the thread; posted below as well) and figure > out the problem(s)? > > Regards, > Manas > > > >> Yes, I can compile the whole mess on Yosemite/Xc

Re: Building openjdk 8 on Mac OS X

2014-11-11 Thread Manas Thakur
Okay, thanks. Regards, Manas > On 12-Nov-2014, at 10:33 am, Wang Weijun wrote: > > No, I am able to build jdk9, but NOT jdk8. It seems the SDK (those .h files) > no longer works with gcc in xcode4. > > --Max > >> On Nov 12, 2014, at 12:13, Manas Thakur wrote: >> >> Hi Wang >> >> You wer

Re: Building openjdk 8 on Mac OS X

2014-11-11 Thread Wang Weijun
No, I am able to build jdk9, but NOT jdk8. It seems the SDK (those .h files) no longer works with gcc in xcode4. --Max > On Nov 12, 2014, at 12:13, Manas Thakur wrote: > > Hi Wang > > You were able to compile openjdk8 on Yosemite!! Can you please look into the > error faced by me (first post

Re: Building openjdk 8 on Mac OS X

2014-11-11 Thread Manas Thakur
Hi Wang You were able to compile openjdk8 on Yosemite!! Can you please look into the error faced by me (first post in the thread; posted below as well) and figure out the problem(s)? Regards, Manas > Yes, I can compile the whole mess on Yosemite/Xcode 6.1. There was an issue > with FreeType

Re: Building openjdk 8 on Mac OS X

2014-11-11 Thread David DeHaven
>> A longer answer is that we're currently working on getting jdk9 to compile >> on Yosemite. > > Isn't it already compiling? I am on Yosemite and I can compile both openjdk > and closedjdk successfully. Yes, I can compile the whole mess on Yosemite/Xcode 6.1. There was an issue with FreeType

Re: Building openjdk 8 on Mac OS X

2014-11-10 Thread Wang Weijun
> On Nov 6, 2014, at 17:13, Magnus Ihse Bursie > wrote: > > A longer answer is that we're currently working on getting jdk9 to compile on > Yosemite. Isn't it already compiling? I am on Yosemite and I can compile both openjdk and closedjdk successfully. Of course, I don't compile deploy etc

Re: Building openjdk 8 on Mac OS X

2014-11-10 Thread David DeHaven
Technically even Mavericks, but really it's Xcode 5/6... I never backported my Xcode 5 changes to 8u. It was on my list for a while but never accomplished due to lack of time. Is there interest in doing so? If so, I can try to find the time to scrape up a backport. The final webrevs for JDK9

Re: Building openjdk 8 on Mac OS X

2014-11-06 Thread Manas Thakur
I get the same error(s) for jdk8u20 as well. - Manas > On 07-Nov-2014, at 1:09 am, Staffan Larsen wrote: > > From which exact branch is the code cloned? I know there were some issues > with #includes in MacosxDebuggerLocal.m, but they should have been cleaned up > in jdk8u-dev by now > > /

Re: Building openjdk 8 on Mac OS X

2014-11-06 Thread Manas Thakur
Hi Staffan Sure, I will try for jdk8u; the current errors were for jdk8. Regards, Manas > On 07-Nov-2014, at 1:09 am, Staffan Larsen wrote: > > From which exact branch is the code cloned? I know there were some issues > with #includes in MacosxDebuggerLocal.m, but they should have been clean

Re: Building openjdk 8 on Mac OS X

2014-11-06 Thread Staffan Larsen
From which exact branch is the code cloned? I know there were some issues with #includes in MacosxDebuggerLocal.m, but they should have been cleaned up in jdk8u-dev by now /Staffan > On 6 nov 2014, at 12:45, Manas Thakur wrote: > > Thanks for the reply Magnus. Here are the error logs that get

Re: Building openjdk 8 on Mac OS X

2014-11-06 Thread Manas Thakur
Thanks for the reply Magnus. Here are the error logs that get generated: Compiling /Users/manas/Desktop/Software/openjdk/sources/openjdk8/hotspot/src/share/vm/utilities/yieldingWorkgroup.cpp Making signal interposition lib... couldn't understand kern.osversion `14.0.0' warning: (x86_64) /var/fold

Re: Building openjdk 8 on Mac OS X

2014-11-06 Thread Magnus Ihse Bursie
The short answer is that building jdk8 on Yosemite is not supported. A longer answer is that we're currently working on getting jdk9 to compile on Yosemite. When that is successful, the patches needed might get ported to jdk8. If you post more extensive log extracts to build-dev, we can possib

Re: Building openjdk 8 on Mac OS X

2014-11-06 Thread David Holmes
Re-directing to build-dev - please don't respond further on the discuss list. David On 6/11/2014 3:48 PM, Manas Thakur wrote: I have tried building openjdk8 on mac os x yosemite by trying all means available on net. I made xcode4.6.3 as the default one; configure is fine, but I get several e