[aarch64-port-dev ] jdk8u fails to build with gcc 4.9.2

Edward Nevill edward.nevill at gmail.com
Wed Sep 30 11:45:51 UTC 2015


Hi,

aarch64 jdk8u and jdk8u60 fail to build with gcc 4.9.2. The following is the error.

/home/ed/build/1509/jdk8u-src-1508/jdk/src/share/native/sun/awt/libpng/pngrutil.c:3947: undefined reference to `png_init_filter_functions_neon'
collect2: error: ld returned 1 exit status

This was fixed in jdk9/hs-comp/jdk in the following changeset

changeset:   11873:88d2b7d72852
user:        enevill
date:        Tue May 05 09:08:20 2015 +0000
files:       make/lib/Awt2dLibraries.gmk
description:
8078245: AARCH64: JDK fails to build due to undefined symbol in libpng
Summary: Add -DPNG_ARM_NEON_OPT=0 to LIBSPLASHSCREEN_CFLAGS flags
Reviewed-by: dholmes, ihse, erikj

OK to backport to jdk8u and jdk8u60 (patch as below)?

Ed.

--- CUT HERE ---
# HG changeset patch
# User enevill
# Date 1443613529 0
#      Wed Sep 30 11:45:29 2015 +0000
# Node ID 7411c9182f49f39f92996ab749d00860b75b4683
# Parent  9399aa7ef558e5fb582670de123166a5b8a4af4a
8078245: AARCH64: JDK fails to build due to undefined symbol in libpng
Summary: Add -DPNG_ARM_NEON_OPT=0 to LIBSPLASHSCREEN_CFLAGS flags
Reviewed-by: dholmes, ihse, erikj

diff -r 9399aa7ef558 -r 7411c9182f49 make/lib/Awt2dLibraries.gmk
--- a/make/lib/Awt2dLibraries.gmk       Tue Sep 15 17:11:33 2015 +0000
+++ b/make/lib/Awt2dLibraries.gmk       Wed Sep 30 11:45:29 2015 +0000
@@ -1204,7 +1204,7 @@
     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen
   endif
 
-  LIBSPLASHSCREEN_CFLAGS := -DSPLASHSCREEN -DPNG_NO_MMX_CODE \
+  LIBSPLASHSCREEN_CFLAGS := -DSPLASHSCREEN -DPNG_NO_MMX_CODE -DPNG_ARM_NEON_OPT=0 \
       $(foreach dir, $(LIBSPLASHSCREEN_DIRS), -I$(dir))
 
   ifeq ($(OPENJDK_TARGET_OS), macosx)
--- CUT HERE ---




More information about the aarch64-port-dev mailing list