On 2018-06-15 21:18, Sebastian Demian wrote:
+ build-dev On Fri, Jun 15, 2018 at 2:17 PM Sebastian Demian <2020sebast...@gmail.com> wrote:Thanks for the reply Erik. running with --disable-warnings-as-errors helped. I also ran make dist-clean before building again. The build failed at a later stage now. Here is the new output: Note: Recompile with -Xlint:removal for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. */Users/sd/Projects/panama/hotspot/src/share/vm/opto/lcm.cpp:42:35: error: ordered comparison between pointer and zero ('address' (aka 'unsigned char *') and 'int')* * if (Universe::narrow_oop_base() > 0) { // Implies UseCompressedOops.* * ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~* 1 error generated. make[3]: *** [/Users/sd/Projects/panama/build/macosx-x86_64-normal-server-release/hotspot/variant-server/libjvm/objs/lcm.o] Error 1
Apparently clang believe this is an error, and not just a warning, so this is a source code issue, and not a build issue per se.
If this only happens in panama, you need to raise it with the Panama developers (cc:ed). If you can also reproduce it on the main jdk/jdk repo, then you can discuss it on hotspot-...@oopenjdk.java.net.
/Magnus
make[3]: *** Waiting for unfinished jobs.... make[2]: *** [hotspot-server-libs] Error 2 make[2]: *** Waiting for unfinished jobs.... ERROR: Build failed for target 'all' in configuration 'macosx-x86_64-normal-server-release' (exit code 2) Stopping sjavac server === Output from failing command(s) repeated here === * For target hotspot_variant-server_libjvm_objs_lcm.o: /Users/sd/Projects/panama/hotspot/src/share/vm/opto/lcm.cpp:42:35: error: ordered comparison between pointer and zero ('address' (aka 'unsigned char *') and 'int') if (Universe::narrow_oop_base() > 0) { // Implies UseCompressedOops. ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ 1 error generated. * All command lines available in /Users/sd/Projects/panama/build/macosx-x86_64-normal-server-release/make-support/failure-logs. === End of repeated output === No indication of failed target found. Hint: Try searching the build log for '] Error'. Hint: See common/doc/building.html#troubleshooting for assistance. make[1]: *** [main] Error 2 make: *** [all] Error 2 Thank you, Sebastian. On Fri, Jun 15, 2018 at 12:03 PM Erik Joelsson <erik.joels...@oracle.com> wrote: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 abletobuild 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 RuntimeEnvironment(build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build25.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.