Thanks Erik and Magnus for your feedback. I will give it a try with ccache 3.2 
and reply with my observation.

> At the very least we will need to warn/fail in configure when precompiled 
> headers and ccache are used together with clang

This would be good.

- Sandeep

> On Apr 2, 2015, at 12:38 AM, Erik Joelsson <erik.joels...@oracle.com> wrote:
> 
> Hello,
> 
> I haven't tried ccache since we introduced clang as the official toolchain 
> for macosx. According to the ccache changelog, support for precompiled 
> headers on clang was introduced in version 3.2, while you are using 3.1.6. I 
> don't know if just switching version will make it work or if there is 
> additional configuration needed for this configuration, but it would be good 
> to know. At the very least we will need to warn/fail in configure when 
> precompiled headers and ccache are used together with clang.
> 
> /Erik
> 
> On 2015-04-01 22:34, Sandeep Konchady wrote:
>> Hi,
>> 
>> I am trying to build OpenJDK only on my MBP with OS X 10.10.2 and Xcode 5.1. 
>> Log from configure and build error attached. Any help would be much 
>> appreciated.
>> 
>> Darwin Kernel Version 14.1.0
>> 
>> using configure arguments '--enable-ccache'.
>> 
>> Configuration summary:
>> * Debug level:    release
>> * HS debug level: product
>> * JDK variant:    normal
>> * JVM variants:   server
>> * OpenJDK target: OS: macosx, CPU architecture: x86, address length: 64
>> 
>> Tools summary:
>> * Boot JDK:       java version "1.8.0_40" Java(TM) SE Runtime Environment 
>> (build 1.8.0_40-b25) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, 
>> mixed mode)  (at 
>> /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home)
>> * Toolchain:      clang (clang/LLVM)
>> * C Compiler:     Version Apple LLVM version 5.1 (clang-503.0.40) (based on 
>> LLVM 3.4svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix (at 
>> /usr/bin/clang)
>> * C++ Compiler:   Version Apple LLVM version 5.1 (clang-503.0.40) (based on 
>> LLVM 3.4svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix (at 
>> /usr/bin/clang++)
>> 
>> Build performance summary:
>> * Cores to use:   2
>> * Memory limit:   8192 MB
>> * ccache status:  Active (3.1.6)
>> 
>> 
>> Error Log:
>> 
>> Creating data for first make execution in new configuration...
>> Done
>> Building target(s) 'default' in configuration 
>> 'macosx-x86_64-normal-server-release'
>> Compiling 8 files for BUILD_TOOLS_LANGTOOLS
>> Parsing 1 properties into enum-like class for jdk.compiler
>> Compiling 20 properties into resource bundles for jdk.compiler
>> Compiling 5 properties into resource bundles for jdk.dev
>> Compiling 10 properties into resource bundles for jdk.javadoc
>> Compiling 822 files for BUILD_INTERIM_LANGTOOLS
>> Creating buildtools/interim_langtools.jar
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> Warning: generation and use of skeletons and static stubs for JRMP
>> is deprecated. Skeletons are unnecessary, and static stubs have
>> been superseded by dynamically generated stubs. Users are
>> encouraged to migrate away from using rmic to generate skeletons and static
>> stubs. See the documentation for java.rmi.server.UnicastRemoteObject.
>> Compiling 23 files for BUILD_INTERIM_JIMAGE
>> Compiling 161 files for BUILD_TOOLS_JDK
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> Compiling 141 files for BUILD_IDLJ
>> clang: error: argument unused during compilation: '-I .'
>> clang: error: argument unused during compilation: '-I 
>> ../../../../../hotspot/src/share/vm/prims'
>> clang: error: argument unused during compilation: '-I 
>> ../../../../../hotspot/src/share/vm'
>> clang: error: argument unused during compilation: '-I 
>> ../../../../../hotspot/src/share/vm/precompiled'
>> clang: error: argument unused during compilation: '-I 
>> ../../../../../hotspot/src/cpu/x86/vm'
>> clang: error: argument unused during compilation: '-I 
>> ../../../../../hotspot/src/os_cpu/bsd_x86/vm'
>> clang: error: argument unused during compilation: '-I 
>> ../../../../../hotspot/src/os/bsd/vm'
>> clang: error: argument unused during compilation: '-I 
>> ../../../../../hotspot/src/os/posix/vm'
>> clang: error: argument unused during compilation: '-I ../generated'
>> clang: error: argument unused during compilation: '-include precompiled.hpp'
>> make[10]: *** [abstractCompiler.o] Error 1
>> make[9]: *** [the_vm] Error 2
>> make[8]: *** [product] Error 2
>> make[7]: *** [generic_build2] Error 2
>> make[6]: *** [product] Error 2
>> make[5]: *** [all_product_universal] Error 2
>> make[4]: *** [universal_product] Error 2
>> make[3]: *** 
>> [/Users/sandeepk/Workspace/JDK/jdk9-dev/build/macosx-x86_64-normal-server-release/hotspot/_hotspot.timestamp]
>>  Error 2
>> make[2]: *** [hotspot] Error 2
>> make[2]: *** Waiting for unfinished jobs....
>> Compiling 6 files for BUILD_TOOLS_CORBA
>> Note: 
>> /Users/sandeepk/Workspace/JDK/jdk9-dev/corba/src/java.corba/share/classes/com/sun/tools/corba/se/idl/som/idlemit/MetaPragma.java
>>  uses or overrides a deprecated API.
>> Note: Recompile with -Xlint:deprecation for details.
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> make[1]: *** [main] Error 2
>> make: *** [default] Error 2
>> 
>> Thanks,
>> Sandeep
> 

Reply via email to