Whenever I try to run a project, my debug window shows a Java Stack Guard Error. This one to be exact:
Code:
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /tmp/libwpilibJavaJNI4147524003046367514.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/libwpilibJavaJNI4147524003046367514.so: /tmp/libwpilibJavaJNI4147524003046367514.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
I have tried installing the official version of Java (Versus openjdk (I run ubuntu)), and uninstalling and purging every version of java from my system and reinstalling the official java release. Then I started to pay more attention the the error and saw that it asked me to run
Code:
execstack -c /tmp/libwpilibJavaJNI4147524003046367514.so
so I did (after installing execstack of course) but it could not find the file sadly because it was a temp file so was gone already.
Paying attention to the file I see it is wpilib related. I have been using the toast api, but it doesn't look like it was that. I also had a failed installation of frcsim (I have Ubuntu 15.04 not 14.04 so it would not work ): )
Has anyone had this problem and fixed it or know how to fix it? Is this frcsim related or toast or wbilib error or something I am unaware of?
Any help is appreciated. Thanks in advance!
/*
*----------EDIT----------
*
*/
It appears that the Stack Guard error may be caused by
Code:
the wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
. After some googling I found that it is related to my system architecture (32 bit vs 64). Am I correct in saying that wpilib is not architecture specific? Most of the fixes I have seen for this involve rebuilding a file, but I don't know if I can do this for wpilpb. Any sugestions?