RFR: JDK-8198859 Use elfedit to silence linker warnings on solaris (original) (raw)
Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Thu Mar 1 10:01:51 UTC 2018
- Previous message (by thread): Problems of building JDK 10 on Windows 7 machine
- Next message (by thread): RFR: JDK-8198859 Use elfedit to silence linker warnings on solaris
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Solaris builds have always produced a lot of warnings when linking, like this:
ld: fatal: symbol '__JvmOffsets' has differing types: (file /export/home/magnusi/hg/sandbox-cflags/build/solaris-sparcv9/hotspot/variant-server/libjvm/objs/JvmOffsets.o type=OBJT; file /export/home/magnusi/hg/sandbox-cflags/build/solaris-sparcv9/hotspot/variant-server/libjvm/objs/dtrace_jhelper.o type=FUNC);
This is due to an unresolved bug in dtrace. This bug has been reported on the dtrace team in 2014, but no solution have been coming forth. :-( However, I just discovered that we can actually use elfedit to fix the type of the fields that the linker is complaining about on $(DTRACE_JHELPER_OBJ).
That will make the linker quiet.
Bug: https://bugs.openjdk.java.net/browse/JDK-8198859 WebRev: http://cr.openjdk.java.net/~ihse/JDK-8198859-dtrace-warnings-workaround/webrev.01
/Magnus
- Previous message (by thread): Problems of building JDK 10 on Windows 7 machine
- Next message (by thread): RFR: JDK-8198859 Use elfedit to silence linker warnings on solaris
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]