[aarch64-port-dev ] OpenJDK builds fails on AARCH64 with Ubuntu 1604

White, Derek Derek.White at cavium.com
Fri Mar 17 22:20:30 UTC 2017


Hi Andrew,

I didn't see a code change here. Did the compiler change on Jenkins? Can you report the gcc version used?

Could also be change in compiler warning maybe-uninitialized (but I couldn't find one).

For reference, within this function we have C++ code:
...
  bool need_mem_bar;
  switch (kind) {
      case Relaxed:
          need_mem_bar = mismatched || can_access_non_heap;
          break;
      case Opaque:
          // Opaque uses CPUOrder membars for protection against code movement.
      case Acquire:
      case Release:
      case Volatile:
          need_mem_bar = true;
          break;
      default:
          ShouldNotReachHere();  // I thought this was a "noreturn" function, but it's not...
  }
...
  if (need_mem_bar) insert_mem_bar(Op_MemBarCPUOrder);


-        Derek


From: Pinski, Andrew
Sent: Friday, March 17, 2017 5:36 PM
To: aarch64-port-dev at openjdk.java.net
Cc: White, Derek <Derek.White at cavium.com>
Subject: OpenJDK builds fails on AARCH64 with Ubuntu 1604

Hi,
  The current build of OpenJDK v9 fails on aarch64-linux-gnu.  I don't know who else to write this to so I thought this is the correct place to report build failures.
This started to fail on March 15, 2017.

Thanks,
Andrew Pinski

Log:

/home/jenkins/workspace/BuildOpenJDK/hs/hotspot/src/share/vm/opto/library_call.cpp: In member function 'bool LibraryCallKit::inline_unsafe_access(bool, BasicType, LibraryCallKit::AccessKind, bool)':
/home/jenkins/workspace/BuildOpenJDK/hs/hotspot/src/share/vm/opto/library_call.cpp:2577:3: error: 'need_mem_bar' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   if (need_mem_bar) insert_mem_bar(Op_MemBarCPUOrder);
   ^
Creating support/modules_libs/java.base/jrt-fs.jar
Note: /home/jenkins/workspace/BuildOpenJDK/hs/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.
cc1plus: all warnings being treated as errors
lib/CompileJvm.gmk:201: recipe for target '/home/jenkins/workspace/BuildOpenJDK/hs/build/linux-aarch64-normal-server-release/hotspot/variant-server/libjvm/objs/library_call.o' failed
make[3]: *** [/home/jenkins/workspace/BuildOpenJDK/hs/build/linux-aarch64-normal-server-release/hotspot/variant-server/libjvm/objs/library_call.o] Error 1
make[3]: *** Waiting for unfinished jobs....



More information about the aarch64-port-dev mailing list