Re: RFR: 8019470 "Changes needed to compile JDK8 on MacOS with clang compiler"

2013-07-24 Thread David Holmes
Hi Tim, On 24/07/2013 8:15 AM, Tim Bell wrote: Hello everyone- This is a small set of changes to switch from gcc to clang when building So we already added support for clang as the compiler for hotspot - is this just extending things to allow configure to select clang? on MacOS, and also

Re: RFR: 8019470 "Changes needed to compile JDK8 on MacOS with clang compiler"

2013-07-24 Thread Tim Bell
On 07/24/13 04:43 AM, David Holmes wrote: Hi Tim, On 24/07/2013 8:15 AM, Tim Bell wrote: Hello everyone- This is a small set of changes to switch from gcc to clang when building So we already added support for clang as the compiler for hotspot - is this just extending things to allow config

Re: RFR: 8019470 "Changes needed to compile JDK8 on MacOS with clang compiler"

2013-07-24 Thread David Chase
On 2013-07-23, at 7:38 PM, Tim Bell wrote: > Hello Leonid: > >> Just to satisfy my curiosity: what are advantages of using clang instead of >> gcc? > > I am a mere messenger here, but I am told that clang/clang++: > > - is command line compatible with gcc > - is faster > - produces better di

Re: RFR: 8019470 "Changes needed to compile JDK8 on MacOS with clang compiler"

2013-07-24 Thread Leonid Romanov
On Jul 24, 2013, at 5:12 PM, David Chase wrote: > > On 2013-07-23, at 7:38 PM, Tim Bell wrote: > >> Hello Leonid: >> >>> Just to satisfy my curiosity: what are advantages of using clang instead of >>> gcc? >> >> I am a mere messenger here, but I am told that clang/clang++: >> >> - is comm

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Alan Bateman
On 10/07/2013 12:01, Omair Majid wrote: On 07/09/2013 03:40 AM, Erik Joelsson wrote: I would like to see a comment explaining why the option was needed. Is this a bug in gcc or has the checking just become better? -Werror is not a great default. It means "all warnings are errors". The set of wa

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Helio Frota
Hi, I'm curious if there was a conclusion on this one. I assume SCTP_WERROR was originally intended for building libsctp (not libnio) so it would be strange to add to SCTP_WERROR to disable -Werror for issues coming from the file system code. One other thing that isn't clear is why there aren't ot

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Helio Frota
Ok first feedback configure: error: Could not find a C++ compiler. You might be able to fix this by running 'sudo yum groupinstall "Development Tools"'. I did this but the error continue. Going to investigate a workaround. Regards, Helio 2013/7/24 Helio Frota > Hi, > > I'm curious if there

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Helio Frota
Hi, Please need to add the message on the autoconf config scripts: You might be able to fix this by running 'sudo yum install gcc-c++'. because " 'sudo yum groupinstall "Development Tools"' " not installed the gcc-c++ compiler. Regards, Helio 2013/7/24 Helio Frota > Ok first feedback >

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Helio Frota
Hi, Please add the message: You might be able to fix this by running 'sudo yum install libXrender-devel'. sudo yum install libXrender-devel Because shape.h Xrender.h XTest.h are not installed with sudo yum install libXtst-devel Regards, Helio 2013/7/24 Helio Frota > Hi, > > Another probl

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Helio Frota
Hi, Another problem: configure: error: Could not find all X11 headers (shape.h Xrender.h XTest.h). You might be able to fix this by running 'sudo yum install libXtst-devel'. configure exiting with result code 1 I did this, but the error persists. Going to investigate... Regards, Helio 2013/

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Omair Majid
On 07/24/2013 03:44 PM, Helio Frota wrote: > Hi, > > Another problem: > > configure: error: Could not find all X11 headers (shape.h Xrender.h > XTest.h). You might be able to fix this by running 'sudo yum install > libXtst-devel'. > configure exiting with result code 1 > > I did this, but the er

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Helio Frota
Sorry, its me again. I get the configure error: configure: error: Could not find freetype2! You might be able to fix this by running 'sudo yum install freetype2-devel'. configure exiting with result code 1 But after run the command: sudo yum install freetype2-devel Fedora 19 appears not to have

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Helio Frota
Hi, I got the same problem with GCC 4.8.1 and Manjaro distribution ( distro son of archlinux ) Generating precompiled header precompiled.hpp.gch cc1plus: error: the "stabs" debug format cannot be used with pre-compiled headers [-Werror=deprecated] cc1plus: all warnings being treated as errors gma

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Omair Majid
On 07/24/2013 04:11 PM, Helio Frota wrote: > Hi, > > I got the same problem with GCC 4.8.1 and Manjaro distribution ( distro > son of archlinux ) > > Generating precompiled header precompiled.hpp.gch > cc1plus: error: the "stabs" debug format cannot be used with > pre-compiled headers [-Werror=de

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Helio Frota
Hi, Configure "ok" A new configuration has been successfully created in /home/hf/adopt_openjdk/openjdk8/build/linux-x86-normal-server-release using default settings. Configuration summary: * Debug level:release * JDK variant:normal *

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Helio Frota
Hi Omair, The only problem is that modern gcc versions don't produce stabs either. Try: $ make DEBUG_BINARIES=true all Thanks for the tip ! I will try again tomorrow on job (fedora19) machine. Regards, Helio 2013/7/24 Omair Majid > On 07/24/2013 04:11 PM, Helio Frota wrote: > > Hi, > > > >

Re: Build error with GCC4.8 on Fedora19

2013-07-24 Thread Helio Frota
Hi Omair, Thanks for the tips ! About freetype: Just change to sudo yum install freetype-devel This solve the problem.. Going to validate the "alsa" now... Regards, Helio 2013/7/24 Omair Majid > On 07/24/2013 03:44 PM, Helio Frota wrote: > > Hi, > > > > Another problem: > > > > configure:

Re: RFR: 8019470 "Changes needed to compile JDK8 on MacOS with clang compiler"

2013-07-24 Thread Christian Thalinger
On Jul 24, 2013, at 5:15 AM, Tim Bell wrote: > On 07/24/13 04:43 AM, David Holmes wrote: >> Hi Tim, >> >> On 24/07/2013 8:15 AM, Tim Bell wrote: >>> Hello everyone- >>> >>> This is a small set of changes to switch from gcc to clang when building >> >> So we already added support for clang as

Re: RFR: 8019470 "Changes needed to compile JDK8 on MacOS with clang compiler"

2013-07-24 Thread Tim Bell
Christian: That's not true. I've added Mac OS X support with the same change. For building hotspot only, perhaps. I want to build the entire product, start to finish, using clang. That's why I needed to touch these files: common/autoconf/hotspot-spec.gmk.in common/autoconf/toolchain.m4 m

Re: [OpenJDK 2D-Dev] Add optional support for using the system libicu

2013-07-24 Thread Omair Majid
Hi Steven, On 07/03/2013 03:19 PM, Steven R. Loomis wrote: > Omair, > I didn't hear back from you on this list, but I will reply here with > more details. Sorry about the delay, I got busy with unrelated work. > See diffs below. I would be very suspicious of how this > could run without cras

Re: RFR: 8019470 "Changes needed to compile JDK8 on MacOS with clang compiler"

2013-07-24 Thread David Holmes
On 25/07/2013 8:48 AM, Tim Bell wrote: Christian: That's not true. I've added Mac OS X support with the same change. For building hotspot only, perhaps. I want to build the entire product, start to finish, using clang. That's why I needed to touch these files: common/autoconf/hotspot-spec