Building JDK8 b106 with sysroot and isystem

David Holmes david.holmes at oracle.com
Wed Oct 2 07:04:03 UTC 2013


On 30/09/2013 8:41 PM, Magnus Ihse Bursie wrote:
> On 2013-09-25 08:31, Jungwoo Ha wrote:
>> So now I can run make, and the next problem is on adlc.
>> Compiling
>> /home/jwha/clients/jdk8_build/hotspot/src/share/vm/adlc/adlparse.cpp
>> rm -f ../generated/adfiles/adlparse.o
>> /path/../to/compiler/bin/g++ -DLINUX -D_GNU_SOURCE -DAMD64
>> -I/home/jwha/clients/jdk8_build/hotspot/src/share/vm/prims
>> -I/home/jwha/clients/jdk8_build/hotspot/src/share/vm
>> -I/home/jwha/clients/jdk8_build/hotspot/src/share/vm/precompiled
>> -I/home/jwha/clients/jdk8_build/hotspot/src/cpu/x86/vm
>> -I/home/jwha/clients/jdk8_build/hotspot/src/os_cpu/linux_x86/vm
>> -I/home/jwha/clients/jdk8_build/hotspot/src/os/linux/vm
>> -I/home/jwha/clients/jdk8_build/hotspot/src/os/posix/vm
>> -I/home/jwha/clients/jdk8_build/hotspot/src/share/vm/adlc
>> -I../generated -DASSERT -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86
>> -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86
>> -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2
>> -DCOMPILER1 -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new
>> -fvisibility=hidden -pipe -fno-strict-aliasing -fno-omit-frame-pointer
>> -Werror -g -c -o ../generated/adfiles/adlparse.o
>> /home/jwha/clients/jdk8_build/hotspot/src/share/vm/adlc/adlparse.cpp
>> In file included from
>> /home/jwha/clients/jdk8_build/hotspot/src/share/vm/adlc/adlparse.cpp:27:0:
>>
>> /home/jwha/clients/jdk8_build/hotspot/src/share/vm/adlc/adlc.hpp:33:19: fatal
>> error: stdio.h: No such file or directory
>> You can see that it doesn't pass $extra_cxxflags anywhere.
>> Any hint how I can fix this?
> Can you verify that your hotspot-spec.gmk contains
> EXTRA_CFLAGS=<whatever you passed on the configure line>
> ?
>
> If so, the issue is probably with the hotspot make files; most likely
> the adlc compilation ignores the EXTRA_CFLAGS variable.

Likely so. As I said earlier "The flags are intended for building JDK 
components, not compiling helper utilities."

adlc as a tool built and executed on the build host can't use the same 
flags that are to be passed to the compiler producing code for the 
target system.

David
-----

> /Magnus
>



More information about the build-dev mailing list