james.las...@oracle.com has a solution to it:

Everything built except for one Apple header.


  NSUserNotificationActivationTypeReplied NS_AVAILABLE(10_9, NA) = 3

I changed to

  NSUserNotificationActivationTypeReplied /* NS_AVAILABLE(10_9, NA) */ = 3

Otherwise we get a __attribute__ instead of ',' or '}' error.

Everything ran fine after that.


-- Jim

On 12/12/2013 2:59, William Moore wrote:
Yes it does. Unfortunately it didn’t work for me:

 warning: incompatible implicit declaration of built-in function 'strcat'
In file included from 
 error: expected ',' or '}' before '__attribute__'
In file included from 
 warning: no semicolon at end of struct or union
make[2]: *** 
 Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [libs-only] Error 2
make: *** [jdk-only] Error 2

I don’t understand why it is trying to compile Solaris files but I have to go 
and do some other things now, so I’ll come back and look at it again later.

Thank you all for your help.


On 11 Dec 2013, at 7:49pm, David DeHaven <david.deha...@oracle.com> wrote:

That seems to be the best solution if you have Xcode 5 installed, just using 
xcode-select doesn't always work.


What I did is to save a copy of usr dir inside Xcode 4 and run

bash configure --with-tools-dir=/saved/xcode4/usr/bin/ ...


On 12/10/13, 22:38, Staffan Larsen wrote:

On 10 dec 2013, at 14:48, William Moore <wmoor...@gmail.com> wrote:

Thanks David

Maybe I can do something with Mountain Lion running in a virtual machine. I’ll 
investigate that.

Having multiple XCode versions installed is also a work-around.



On 9 Dec 2013, at 6:26pm, David DeHaven <david.deha...@oracle.com> wrote:

Back in September when I had Mountain Lion (OS X 10.8) I was able to build my 
own version of OpenJDK 7 Update 40.

Now I have Mavericks (OS X 10.9) and it fails to build Hotspot with the error:

clang: error: argument unused during compilation: '-fcheck-new’

If I comment out the setting of this value in 
hotspot/make/bsd/makefiles/gcc.make I get other errors like:

hotspot/src/share/vm/adlc/archDesc.cpp:335:35: error: '&&' within '||' 

What do I have to do to make this compile?

I know very little about C programming. Any help will be greatly appreciated.

Best regards


Building JDK 8 with Xcode 5 is still a work in progress, I don't expect that 
effort to be backported to 7u so you might need to scrape up a copy of Xcode 
4.6 to build with. The big issue is Xcode 5 does not include gcc and 7u does 
not build with clang without significant changes.


Reply via email to