Go to Post Darn, I won't be at Pittsburgh. But I ain't going anywhere this year without my gracious professionalism! - Eugenia Gabrielov [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 25-06-2015, 22:57
maglax's Avatar
maglax maglax is offline
Registered User
AKA: Michael Glass
FRC #3966 (L&N STEMpunks)
Team Role: Engineer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: United States
Posts: 7
maglax is an unknown quantity at this point
An Enjoyable(Not) Java Compiler Error (Stack Guard) and ELFCLASS32 *Not Solved*

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?

Last edited by maglax : 26-06-2015 at 03:05. Reason: More information
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:43.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi