Error on make -C $DAIKONDIR rebuild-everything on Linux

54 views
Skip to first unread message

GP

unread,
Nov 8, 2019, 8:05:02 PM11/8/19
to Daikon discuss
Hello,

The following error occurs when trying to install Daikon:

gp@home:~$ make -C $DAIKONDIR rebuild-everything
make: Entering directory '/home/gp/Desktop/daikon/daikon-5.7.2'
make -C /home/gp/Desktop/daikon/daikon-5.7.2 rebuild-everything-but-kvasir
make[1]: Entering directory '/home/gp/Desktop/daikon/daikon-5.7.2'
make -C /home/gp/Desktop/daikon/daikon-5.7.2/java compile
make[2]: Entering directory '/home/gp/Desktop/daikon/daikon-5.7.2/java'
make --stop all_directly junit
make[3]: Entering directory '/home/gp/Desktop/daikon/daikon-5.7.2/java'
rm -f `find daikon -name "*.class" -print`
echo "CLASSPATH = "
CLASSPATH =
echo "DAIKON_CLASSPATH = /home/gp/Desktop/daikon/daikon-5.7.2/java/lib/*:/home/gp/Desktop/daikon/daikon-5.7.2/java"
DAIKON_CLASSPATH = /home/gp/Desktop/daikon/daikon-5.7.2/java/lib/*:/home/gp/Desktop/daikon/daikon-5.7.2/java
javac -cp /home/gp/Desktop/daikon/daikon-5.7.2/java/lib/*:/home/gp/Desktop/daikon/daikon-5.7.2/java -Xlint -J-Xmx1024m -g -XDignore.symbol.file -Xmaxerrs 100000 -Xmaxwarns 100000 -source 8 -target 8 -Werror -Xlint:-path -Xlint:-options -Xlint:-classfile  @java_files.txt
./daikon/chicory/DTraceWriter.java:286: warning: [deprecation] isAccessible() in AccessibleObject has been deprecated
    if (!classField.isAccessible()) classField.setAccessible(true);
                   ^
./daikon/chicory/DTraceWriter.java:317: warning: [deprecation] isAccessible() in AccessibleObject has been deprecated
    if (!classField.isAccessible()) classField.setAccessible(true);
                   ^
... a lot more warnings ...

1 error
49 warnings
make[3]: *** [Makefile:432: all_directly] Error 1
make[3]: Leaving directory '/home/gp/Desktop/daikon/daikon-5.7.2/java'
make[2]: *** [Makefile:414: all_stop_on_error] Error 2
make[2]: Leaving directory '/home/gp/Desktop/daikon/daikon-5.7.2/java'
make[1]: *** [Makefile:271: rebuild-everything-but-kvasir] Error 2
make[1]: Leaving directory '/home/gp/Desktop/daikon/daikon-5.7.2'
make: *** [Makefile:267: rebuild-everything] Error 2
make: Leaving directory '/home/gp/Desktop/daikon/daikon-5.7.2'

When I try to run the StackAR example on the manual, at the command
java -cp .:$DAIKONDIR/daikon.jar daikon.DynComp DataStructures.StackArTester, the following error occurs:
Can't find dcomp_rt.jar on the classpath or in $DAIKONDIR/java .
Probably you forgot to build it.
See the Daikon manual, section "Instrumenting the JDK with DynComp" for help.

In fact, at $DAIKONDIR/java there is a dcom_premain.jar, not a dcomp_rt.jar.

Anyone who encountered a similar error can share the solution?

Michael Ernst

unread,
Nov 9, 2019, 8:19:55 AM11/9/19
to daikon-discuss
I'm sorry you are having trouble.

I suspect you can resolve your problems by using Java 8, though I'm not sure from the information you gave.

Mike

PS: For the future, it would be helpful if you could provide a complete bug report.
The "Reporting problems" section of the manual tells you how to do so: http://plse.cs.washington.edu/daikon/download/doc/daikon.html#Reporting-problems

For example (but this is not a complete list):
 * Are you installing Daikon from its distribution or from its GitHub repository?  (Please give complete instructions to reproduce your problem, not just the last command in a sequence.)
 * What version of Java are you using?
 * Show complete output, not just a snippet.

--
You received this message because you are subscribed to the Google Groups "Daikon discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to daikon-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/daikon-discuss/ec9cd866-ee16-445f-a975-fe967c76d2f4%40googlegroups.com.

GP

unread,
Nov 9, 2019, 2:05:03 PM11/9/19
to Daikon discuss
Thanks for replying.

- I am installing Daikon from its distribution, version 5.7.2.

- This is the output of java -version
openjdk version "11.0.5-ea" 2019-10-15
OpenJDK Runtime Environment (build 11.0.5-ea+10-post-Ubuntu-0ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.5-ea+10-post-Ubuntu-0ubuntu1, mixed mode, sharing)

- These are all the actions I took:
    1 - Downloaded and extracted Daikon by doing
    tar zxf daikon-5.7.2.tar.gz
    2 - Placed the following commands in ~/.bashrc   
    # The absolute pathname of the directory that contains Daikon
export DAIKONDIR=~/Desktop/daikon/daikon-5.7.2
# The absolute pathname of the directory that contains the Java JDK
export JAVA_HOME=/usr/lib/jvm/jdk-13.0.1
# source $DAIKONDIR/scripts/daikon.bashrc



Michael Ernst

unread,
Nov 9, 2019, 2:08:31 PM11/9/19
to daikon-discuss
Thanks!  That's very helpful.
What was the result when you tried my suggestion of using Java 8?

Mike

--
You received this message because you are subscribed to the Google Groups "Daikon discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to daikon-discus...@googlegroups.com.

GP

unread,
Nov 9, 2019, 8:17:59 PM11/9/19
to Daikon discuss
The installation proceeds with Java 8.
The User manual states that "In order to run Daikon, you must have a Java 8 (or later) JDK". Maybe the "or later" should be replaced by "preferably".
Thank you for the time and help.

Michael Ernst

unread,
Nov 11, 2019, 11:08:26 AM11/11/19
to daikon-discuss
Thanks for confirming that Java 8 works.

And thank you for identifying a bug in the documentation.  It shouldn't say "Java 8 (or later)", but should require Java 8.  I suspect this crept in when we changed the text from saying "Java 7 (or later)", and then we forgot to update the text when later versions of Java were released.  Sorry about that!

We are working to make Daikon compatible with Java 11.  This is a difficult process because of the way Daikon instruments the JDK (for the DynComp tool) is not compatible with Java 11.  Bear with us (or help us!), and we'll release a new version of Daikon as soon as possible.

Mike

--
You received this message because you are subscribed to the Google Groups "Daikon discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to daikon-discus...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages