Hello Sebastian,

Please try running configure with --disable-warnings-as-errors.

When using compiler versions (or OS versions) other than the ones listed in doc/building.md it's common to have warnings triggered and we run with warnings treated as errors by default.

/Erik


On 2018-06-11 12:49, Sebastian Demian wrote:
Hello,

I am trying to setup project panama on my local mac, and I am not able to
build the project.

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
* Version string: 9-internal+0-adhoc.sd.panama (9-internal)

Tools summary:
* Boot JDK:       java version "1.8.0_171" Java(TM) SE Runtime Environment
(build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11,
mixed mode)  (at
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home)
* Toolchain:      clang (clang/LLVM)
* C Compiler:     Version 9.1.0 (at /usr/bin/clang)
* C++ Compiler:   Version 9.1.0 (at /usr/bin/clang++)

Build performance summary:
* Cores to use:   4
* Memory limit:   16384 MB




I have attached the full log output from running make. I have read the
building.html and troubleshooting section and did not find anything
relevant to this error:

/Users/sd/Projects/panama/hotspot/src/share/vm/gc/g1/heapRegionSet.hpp:126:5:
error: macro expansion producing 'defined' has undefined behavior
[-Werror,-Wexpansion-to-defined]
#if HEAP_REGION_SET_FORCE_VERIFY
     ^
/Users/sd/Projects/panama/hotspot/src/share/vm/gc/g1/heapRegionSet.hpp:53:38:
note: expanded from macro 'HEAP_REGION_SET_FORCE_VERIFY'
#define HEAP_REGION_SET_FORCE_VERIFY defined(ASSERT)
                                      ^
In file included from
/Users/sd/Projects/panama/hotspot/test/native/gc/g1/test_freeRegionList.cpp:25:
In file included from
/Users/sd/Projects/panama/hotspot/src/share/vm/gc/g1/g1CollectedHeap.inline.hpp:28:
In file included from
/Users/sd/Projects/panama/hotspot/src/share/vm/gc/g1/g1CollectedHeap.hpp:37:
/Users/sd/Projects/panama/hotspot/src/share/vm/gc/g1/g1HeapVerifier.hpp:67:5:
error: macro expansion producing 'defined' has undefined behavior
[-Werror,-Wexpansion-to-defined]
#if HEAP_REGION_SET_FORCE_VERIFY
     ^


Any help would be appreciated.

Thanks,
Sebastian.

Reply via email to