jvm-profiling-tools / perf-map-agent

A java agent to generate method mappings to use with the linux `perf` tool
GNU General Public License v2.0
1.64k stars 260 forks source link

Can't compile on Raspberry 4 with jdk 8u181 #88

Open tinspin opened 3 years ago

tinspin commented 3 years ago
pi@raspberrypi:~/perf-map-agent $ make
[ 50%] Built target perfmap
[ 66%] Building Java objects for attach-main.jar
error: error reading /home/pi/jdk1.8.0_181/lib/ct.sym; cannot read zip file
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
make[2]: *** [CMakeFiles/attach-main.dir/build.make:70: CMakeFiles/attach-main.dir/java_compiled_attach-main] Error 3
make[1]: *** [CMakeFiles/Makefile2:110: CMakeFiles/attach-main.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

The ct.sym file is there. Edit: The libperfmap.so is correctly compiled, it's the generation of the http://fem.rupy.se/attach-main.jar that fails, luckily I had it from a previous compile all it does is to attach libperfmap.so to the JVM. So I manage to get most things working but when I run sudo perf script > out.perf I get: Failed to open /home/pi/jdk1.8.0_181/jre/lib/rt.jar, continuing without symbols So the Java SE methods do not get replaced properly but you can guess what they are, the dumped ones however do: http://move.rupy.se/file/graph.svg