Building SPARC CPU code for Zero

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Wed Aug 30 12:02:04 UTC 2017


Hi!

I am currently working on fixing JDK-8186578:

    Zero fails to build on linux-sparc due to sparc-specific code

One necessary change to be able to fix this bug is to build the
SPARC-specific source memset_with_concurrent_readers_sparc.cpp on
Zero as well. This is necessary because on SPARC, we have to use
the custom implementation of memset() to be able to have a working
memset_with_concurrent_readers, the glibc version doesn't work in
this case.

Now, my first suggested way of addressing this problem was to move
memset_with_concurrent_readers_sparc.cpp into the same location
as memset_with_concurrent_readers.hpp and just make the code in
the former compilation unit conditional so it's built on SPARC
only [1].

Unfortunately, this proposed change was rejected due to the fact
that it moves SPARC code into a generic location. So, I'm now looking
for a way to tell the build system to build memset_with_concurrent_\
readers_sparc.cpp when building Zero if SPARC is defined.

Can any build wizard shed some light on this and say whether it's
possible to achieve that?

Adrian

> [1] http://cr.openjdk.java.net/~glaubitz/8186578/webrev.00/

-- 
  .''`.  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



More information about the build-dev mailing list