Loading... (original) (raw)
Solaris/Sparc slowdebug build fails for memset_with_concurrent_readers.cpp
The file hotspot/src/cpu/sparc/vm/memset_with_concurrent_readers.cpp uses the extended asm syntax that is new in Solaris Studio 12. That file builds and works fine when compiled on Solaris/sparc for product or fastdebug. However, when compiled for slowdebug something goes badly wrong and we get a pretty much incomprehensible error message:
Unexpected character in sparc4.c
/scratch/cphillim/jdk9.bastore/hotspot/make/solaris/makefiles/rules.make:148: recipe for target 'memset_with_concurrent_readers_sparc.o' failed
Adding -xO0 (or -xO[anything valid]) seems to work around the problem.
It seems like there might be a Solaris Studio compiler bug here.