Project

General

Profile

Actions

Bug #1176

closed

Cannot build LTTng-ust from source with JUL support

Added by Loïc Gelle about 5 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
02/14/2019
Due date:
% Done:

0%

Estimated time:

Description

Hi all,

I can't build LTTng-ust from source on my machine (Fedora 29, 4.20.7), the bug affects branches stable-2.09 to 2.11-rc2. I configure using:

./bootstrap
./configure --enable-java-agent-jul

The configure works fine, bug make gives me this:

make[4] : on entre dans le répertoire « /tmp/tmp.xF9X0lxMas/lttng-ust/liblttng-ust-java-agent/java/lttng-ust-agent-common »
CLASSPATH=.:./.${CLASSPATH:+":$CLASSPATH"} javac -d .    org/lttng/ust/agent/AbstractLttngAgent.java org/lttng/ust/agent/EventNamePattern.java org/lttng/ust/agent/ILttngAgent.java org/lttng/ust/agent/ILttngHandler.java org/lttng/ust/agent/LTTngAgent.java org/lttng/ust/agent/client/ILttngTcpClientListener.java org/lttng/ust/agent/client/SessiondCommand.java org/lttng/ust/agent/client/LttngAgentResponse.java org/lttng/ust/agent/client/LttngTcpSessiondClient.java org/lttng/ust/agent/client/SessiondCommandHeader.java org/lttng/ust/agent/client/SessiondDisableAppContextCommand.java org/lttng/ust/agent/client/SessiondDisableEventCommand.java org/lttng/ust/agent/client/SessiondEnableAppContextCommand.java org/lttng/ust/agent/client/SessiondEnableEventCommand.java org/lttng/ust/agent/client/SessiondListLoggersCommand.java org/lttng/ust/agent/context/LttngContextApi.java org/lttng/ust/agent/context/ContextInfoManager.java org/lttng/ust/agent/context/ContextInfoSerializer.java org/lttng/ust/agent/context/IContextInfoRetriever.java org/lttng/ust/agent/filter/FilterChangeNotifier.java org/lttng/ust/agent/filter/IFilterChangeListener.java org/lttng/ust/agent/session/EventRule.java org/lttng/ust/agent/session/LogLevelSelector.java org/lttng/ust/agent/utils/LttngUstAgentLogger.java
echo timestamp > classnoinst.stamp
jar cfm  lttng-ust-agent-common-1.0.0.jar ./Manifest.txt org/lttng/ust/agent/*.class org/lttng/ust/agent/client/*.class org/lttng/ust/agent/context/*.class org/lttng/ust/agent/filter/*.class org/lttng/ust/agent/session/*.class org/lttng/ust/agent/utils/*.class && rm -f lttng-ust-agent-common.jar && ln -s lttng-ust-agent-common-1.0.0.jar lttng-ust-agent-common.jar
/usr/bin/javah -classpath :. -d ../../jni/common  org.lttng.ust.agent.context.LttngContextApi && \
echo "Context API JNI header generated" > context-jni-header.stamp
Error: Could not find class file for 'org.lttng.ust.agent.context.LttngContextApi'.
make[4]: *** [Makefile:631: context-jni-header.stamp] Error 1
make[4] : on quitte le répertoire « /tmp/tmp.xF9X0lxMas/lttng-ust/liblttng-ust-java-agent/java/lttng-ust-agent-common »
make[3]: *** [Makefile:411: all-recursive] Error 1
make[3] : on quitte le répertoire « /tmp/tmp.xF9X0lxMas/lttng-ust/liblttng-ust-java-agent/java »
make[2]: *** [Makefile:407: all-recursive] Error 1
make[2] : on quitte le répertoire « /tmp/tmp.xF9X0lxMas/lttng-ust/liblttng-ust-java-agent »
make[1]: *** [Makefile:580: all-recursive] Error 1
make[1] : on quitte le répertoire « /tmp/tmp.xF9X0lxMas/lttng-ust »
make: *** [Makefile:456: all] Error 2

For info:

$ javah -version
javah version "1.8.0_201" 

Thanks,
Loïc.


Files

0001-Fix-java-stamp-build-dependency.patch (2.56 KB) 0001-Fix-java-stamp-build-dependency.patch Mathieu Desnoyers, 02/14/2019 03:12 PM
config.log (94.8 KB) config.log Loïc Gelle, 02/14/2019 03:22 PM
Actions #1

Updated by Mathieu Desnoyers about 5 years ago

Can you try with the following patch ?

Also please provide your config.log output.

Thanks,

Mathieu

Actions #2

Updated by Loïc Gelle about 5 years ago

The patch did not fix the problem. See config.log attached.

Actions #3

Updated by Mathieu Desnoyers about 5 years ago

Do you have a liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/context/LttngContextApi.class file in your build tree after issuing this make ?

Actions #4

Updated by Loïc Gelle about 5 years ago

Mathieu Desnoyers wrote:

Do you have a liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/context/LttngContextApi.class file in your build tree after issuing this make ?

Yes.

Actions #5

Updated by Loïc Gelle about 5 years ago

Fixed by replacing my preinstalled javah binary (from OpenJDK, provided by Fedora) by the one found in Oracle's JDK.

Actions #6

Updated by Michael Jeanson about 2 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF