Open flairtone opened 7 years ago
It seems the SO file path could not be found. Please try using the absolute path for the SO file.
ERROR: ld.so: object 'scripts/../build/src/lib/libnvmemul.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
I managed to get rid of the above error by setting the Scala home path to usr/bin/scala. But still, the scala application doesn't run. It prints the following lines at the beginning. The first four lines are common for code in other languages, but the fifth line only appears for scala applications.
Turbo Boost disabled for all CPUs 2 scripts/../build/src/lib/libnvmemul.so scripts/../nvmemul.ini /usr/share/scala/bin/scala: line 19: cd: /usr/share/scala/bin
Just to give you the complete picture, this is how my statistics look:
$scripts/runenv.sh scala Demo Turbo Boost disabled for all CPUs 2 scripts/../build/src/lib/libnvmemul.so scripts/../nvmemul.ini /usr/share/scala/bin/scala: line 19: cd: /usr/share/scala/bin
===== STATISTICS (Fri Jul 28 10:36:09 2017) =====
PID: 29556 Initialization duration: 2026556 usec Running threads: 0 Terminated threads: 1
== Running threads ==
== Terminated threads == Thread id [29537] : cpu id: 2 : spawn timestamp: 718496343223 : termination timestamp: 718504845070 : execution time: 8501847 usecs : stall cycles: 24063127 : NVM accesses: 80748 : latency calculation overhead cycles: 26110 : injected delay cycles: 143077990 : injected delay in usec: 68164 : longest epoch duration: 20877 usec : shortest epoch duration: 10008 usec : average epoch duration: 10055 usec : number of epochs: 638 : epochs which didn't reach min duration: 0 : static epochs requested: 638/..: File name too long Error: Could not find or load main class scala.tools.nsc.MainGenericRunner
===== STATISTICS (Fri Jul 28 10:36:12 2017) =====
PID: 29559 Initialization duration: 2019925 usec Running threads: 7 Terminated threads: 3
== Running threads == Thread id [29559] : cpu id: 0 : spawn timestamp: 718506871531 : termination timestamp: 0 : execution time: 0 usecs : stall cycles: 1245045 : NVM accesses: 4308 : latency calculation overhead cycles: 7280 : injected delay cycles: 7761963 : injected delay in usec: 3696 : longest epoch duration: 10055 usec : shortest epoch duration: 10038 usec : average epoch duration: 10046 usec : number of epochs: 6 : epochs which didn't reach min duration: 0 : static epochs requested: 6 Thread id [29561] : cpu id: 1 : spawn timestamp: 718506874459 : termination timestamp: 0 : execution time: 0 usecs : stall cycles: 380183 : NVM accesses: 1315 : latency calculation overhead cycles: 1036 : injected delay cycles: 2358944 : injected delay in usec: 1123 : longest epoch duration: 10227 usec : shortest epoch duration: 10004 usec : average epoch duration: 10067 usec : number of epochs: 6 : epochs which didn't reach min duration: 4749 : static epochs requested: 4 Thread id [29563] : cpu id: 1 : spawn timestamp: 718506894383 : termination timestamp: 0 : execution time: 0 usecs : stall cycles: 89662 : NVM accesses: 310 : latency calculation overhead cycles: 0 : injected delay cycles: 547394 : injected delay in usec: 260 : longest epoch duration: 10709 usec : shortest epoch duration: 10023 usec : average epoch duration: 10201 usec : number of epochs: 4 : epochs which didn't reach min duration: 3 : static epochs requested: 4 Thread id [29564] : cpu id: 0 : spawn timestamp: 718506896260 : termination timestamp: 0 : execution time: 0 usecs : stall cycles: 22191 : NVM accesses: 76 : latency calculation overhead cycles: 2844 : injected delay cycles: 134433 : injected delay in usec: 64 : longest epoch duration: 11910 usec : shortest epoch duration: 10011 usec : average epoch duration: 10500 usec : number of epochs: 4 : epochs which didn't reach min duration: 7 : static epochs requested: 4 Thread id [29566] : cpu id: 0 : spawn timestamp: 718506915929 : termination timestamp: 0 : execution time: 0 usecs : stall cycles: 0 : NVM accesses: 0 : latency calculation overhead cycles: 2980 : injected delay cycles: 0 : injected delay in usec: 0 : longest epoch duration: 10042 usec : shortest epoch duration: 10039 usec : average epoch duration: 10040 usec : number of epochs: 2 : epochs which didn't reach min duration: 1373 : static epochs requested: 2 Thread id [29567] : cpu id: 1 : spawn timestamp: 718506916041 : termination timestamp: 0 : execution time: 0 usecs : stall cycles: 1381 : NVM accesses: 4 : latency calculation overhead cycles: 2544 : injected delay cycles: 6158 : injected delay in usec: 2 : longest epoch duration: 10047 usec : shortest epoch duration: 10035 usec : average epoch duration: 10041 usec : number of epochs: 2 : epochs which didn't reach min duration: 637 : static epochs requested: 2 Thread id [29568] : cpu id: 0 : spawn timestamp: 718506919781 : termination timestamp: 0 : execution time: 0 usecs : stall cycles: 0 : NVM accesses: 0 : latency calculation overhead cycles: 2448 : injected delay cycles: 0 : injected delay in usec: 0 : longest epoch duration: 10036 usec : shortest epoch duration: 10007 usec : average epoch duration: 10021 usec : number of epochs: 2 : epochs which didn't reach min duration: 5 : static epochs requested: 2
== Terminated threads == Thread id [29569] : cpu id: 1 : spawn timestamp: 718506920303 : termination timestamp: 718506942350 : execution time: 22047 usecs : stall cycles: 0 : NVM accesses: 0 : latency calculation overhead cycles: 2784 : injected delay cycles: 0 : injected delay in usec: 0 : longest epoch duration: 16640 usec : shortest epoch duration: 16640 usec : average epoch duration: 16640 usec : number of epochs: 1 : epochs which didn't reach min duration: 4 : static epochs requested: 1 Thread id [29565] : cpu id: 1 : spawn timestamp: 718506915792 : termination timestamp: 718506942446 : execution time: 26654 usecs : stall cycles: 232 : NVM accesses: 0 : latency calculation overhead cycles: 3339 : injected delay cycles: 0 : injected delay in usec: 0 : longest epoch duration: 10153 usec : shortest epoch duration: 10019 usec : average epoch duration: 10086 usec : number of epochs: 2 : epochs which didn't reach min duration: 6 : static epochs requested: 2 Thread id [29562] : cpu id: 0 : spawn timestamp: 718506890240 : termination timestamp: 718506942546 : execution time: 52306 usecs : stall cycles: 5285 : NVM accesses: 18 : latency calculation overhead cycles: 0 : injected delay cycles: 22411 : injected delay in usec: 10 : longest epoch duration: 10059 usec : shortest epoch duration: 10020 usec : average epoch duration: 10041 usec : number of epochs: 5 : epochs which didn't reach min duration: 8 : static epochs requested: 5 stty: invalid argument ‘=====’ Try 'stty --help' for more information.
===== STATISTICS (Fri Jul 28 10:36:14 2017) =====
PID: 29537 Initialization duration: 2026556 usec Running threads: 0 Terminated threads: 1
== Running threads ==
== Terminated threads == Thread id [29537] : cpu id: 2 : spawn timestamp: 718496343223 : termination timestamp: 718508992097 : execution time: 12648874 usecs : stall cycles: 57919555 : NVM accesses: 194360 : latency calculation overhead cycles: 15700 : injected delay cycles: 345997089 : injected delay in usec: 164839 : longest epoch duration: 20877 usec : shortest epoch duration: 10006 usec : average epoch duration: 10047 usec : number of epochs: 1242 : epochs which didn't reach min duration: 0 : static epochs requested: 1242
Some threads took more than 8 seconds to complete, so the demo application actually run, right? Could you see what happen in the application? I am not sure what the message "/usr/share/scala/bin/scala: line 19: cd: /usr/share/scala/bin" means. Does this directory exist?
The code runs normally by issuing standard command i.e., $scala Demo It just runs a for loop and prints numbers from 1 to 100. A similar code works when run with Java.
In this case the code is not running at all. If it runs then it should print the numbers 1 to 100 before returning the statistics.
Yes, the directory does exist. I have installed Scala in all possible ways and run it with quartz, but all of them resulted in the same error.
Maybe the standard output was suppressed. Please debug the application while running with quartz. Redirect stdout to a file or try logging what the application does to a file directly. If the scala tool has a verbose logging, use it as well.
ERROR: ld.so: object 'scripts/../build/src/lib/libnvmemul.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. /usr/bin/scala: line 19: cd: /usr/share/scala/bin
Hi, I am getting the above error when i try to run scala programs. There are no issues when I try to run java and C applications.
This is the code which I am trying to run,
object ForLoop { def main(args: Array[String]) { var a = 0; for( a <- 1 to 100){ println( "Value of a: " + a ); } } }
The above code works as usual with scala but, when ran with quartz it returns an error. The following is the command which I gave to run this code, $ scripts/runenv.sh scala ForLoop
Note: