← Back to team overview

openjdk team mailing list archive

[Bug 1640845] Re: Strip -O3 from hotspot and jdk build flags

 

** Changed in: openjdk-8 (Ubuntu)
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-8 in Ubuntu.
https://bugs.launchpad.net/bugs/1640845

Title:
  Strip -O3 from hotspot and jdk build flags

Status in openjdk-8 package in Ubuntu:
  Fix Committed

Bug description:
  ppc64el has -O3 set on dpkg-buildflags' CFLAGS/CXXFLAGS vendor
  setting, thus it is necessary to strip -O3 from those during the
  hotspot and jdk builds (as openjdk sets its own optimization flags).

  Example from the the 8u111-b14-2ubuntu0.16.10.2 (Yakkety) ppc64el
  buildlog:

  Compiling k_rem_pio2.c (for libfdlibm.a)
  /usr/bin/gcc-5 -W -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -D_LP64=1 -D_LITTLE_ENDIAN -DLINUX -DNDEBUG -DARCH='"ppc64le"' -Dppc64le -DRELEASE='"1.8.0_111"' -I/<<PKGBUILDDIR>>/build/jdk/include -I/<<PKGBUILDDIR>>/build/jdk/include/linux -I/<<PKGBUILDDIR>>/src/jdk/src/share/javavm/export -I/<<PKGBUILDDIR>>/src/jdk/src/solaris/javavm/export -I/<<PKGBUILDDIR>>/src/jdk/src/share/native/common -I/<<PKGBUILDDIR>>/src/jdk/src/solaris/native/common -Wdate-time -D_FORTIFY_SOURCE=2 -g -O3 -fstack-protector-strong -Wformat -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/build/jdk/gensrc_headers -I/<<PKGBUILDDIR>>/src/jdk/src/share/native/java/lang/fdlibm/include      -O0  -DTHIS_FILE='"k_rem_pio2.c"' -c -MMD -MF /<<PKGBUILDDIR>>/build/jdk/objs/libfdlibm/k_rem_pio2.d -o /<<PKGBUILDDIR>>/build/jdk/objs/libfdlibm/k_rem_pio2.o /<<PKGBUILDDIR>>/src/jdk/src/share/native/java/lang/fdlibm/src/k_rem_pio2.c

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1640845/+subscriptions


References