[PATCH]: linux-sparc build fixes

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Sat May 27 12:28:04 UTC 2017


Hello!

openjdk-9 currently fails to build from source on Debian/sparc64 [1].

One of the reasons it fails is because of a misnamed header filename:

In file included from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/memory/allocation.inline.hpp:28:0,
                 from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/utilities/array.hpp:29,
                 from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/memory/universe.hpp:29,
                 from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/code/oopRecorder.hpp:28,
                 from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/asm/codeBuffer.hpp:28,
                 from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/asm/assembler.hpp:28,
                 from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/asm/macroAssembler.hpp:28,
                 from /<<PKGBUILDDIR>>/src/hotspot/src/cpu/sparc/vm/nativeInst_sparc.hpp:28,
                 from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/code/nativeInst.hpp:30,
                 from ad_sparc.hpp:32,
                 from ad_sparc_misc.cpp:28:
/<<PKGBUILDDIR>>/src/hotspot/src/share/vm/runtime/atomic.hpp:126:31: fatal error: atomic_linux_sparc.hpp: No such file or directory
 #include OS_CPU_HEADER(atomic)

While fixing this, I also discovered some other problems with the build on Debian/sparc64.

I'm attaching a set of three patches which address all the issues I have discovered with
openjdk-9 on Debian/sparc64 so far. They should apply to all builds on 64-bit Linux SPARC.

Please note, this is my first attempt ever trying to get patches into OpenJDK, so I will
definitely need a little guidance. I have already asked in the #openjdk channel and after
signing the OCA and sending it in, I was told to post my patches here. So here they are :).

Let's hope I can get them into the proper shape for getting them merged.

All patches are:

Signed-off by: John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de>

Thanks,
Adrian

> [1] https://buildd.debian.org/status/fetch.php?pkg=openjdk-9&arch=sparc64&ver=9%7Eb170-2&stamp=1495173966&raw=0

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-missing-thread-parameter.patch
Type: text/x-patch
Size: 1133 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20170527/4832b843/0001-Add-missing-thread-parameter.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-missing-logging-log-hpp-include.patch
Type: text/x-patch
Size: 701 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20170527/4832b843/0002-Add-missing-logging-log-hpp-include.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Rename-atomic-linux-sparc-inline-hpp.patch
Type: text/x-patch
Size: 16071 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20170527/4832b843/0003-Rename-atomic-linux-sparc-inline-hpp.patch>


More information about the build-dev mailing list