Go to Post Deadlines are part of everyday life. - Steve W [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-07-2011, 21:34
wmarshall wmarshall is offline
Registered User
FRC #0011
 
Join Date: Jan 2011
Location: New Jersey
Posts: 8
wmarshall will become famous soon enough
Eclipse WPIlib requires 32-bit libraries on 64-bit linux installs

While migrating our development laptops off Windows and towards Linux, we discovered that WPIlib would not build, preventing us from actually doing development work.
The preverify binary would fail to execute, with the ant script complaining about an IOException.

I poked through a hexdump and saw references to ld-linux.so.2 and glibc, both of which I knew were installed. I took a wild guess and installed ia32-libs (Ubuntu's metapackage for a couple of common 32-bit libraries). After that, there were no issues with either compiling WPIlib or our own code.

TL;DR: If you're running a 64-bit linux distribution, install 32-bit glibc. Otherwise WPIlib will fail to compile.

I find it interesting that there is no precompiled 64-bit binary, despite the ant scripts recognizing 64-bit linux installs.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-07-2011, 09:18
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 71
codedr will become famous soon enoughcodedr will become famous soon enough
Re: Eclipse WPIlib requires 32-bit libraries on 64-bit linux installs

If your build uses the -m32 flag during compile, it will build 32-bit objects.
The resulting build will fail because it cannot find 32-bit version of the libraries needed
to complete the build.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-07-2011, 10:02
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Eclipse WPIlib requires 32-bit libraries on 64-bit linux installs

Quote:
Originally Posted by wmarshall View Post
While migrating our development laptops off Windows and towards Linux
Just a reminder, unless things change next season, you will need a Windows computer to reformat and update the cRIO with image updates. Might be worth it to keep around a Windows VM for that purpose.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
Reply With Quote
  #4   Spotlight this post!  
Unread 30-07-2011, 01:12
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Eclipse WPIlib requires 32-bit libraries on 64-bit linux installs

Quote:
Originally Posted by wmarshall View Post
While migrating our development laptops off Windows and towards Linux, we discovered that WPIlib would not build, preventing us from actually doing development work.
The preverify binary would fail to execute, with the ant script complaining about an IOException.

I poked through a hexdump and saw references to ld-linux.so.2 and glibc, both of which I knew were installed. I took a wild guess and installed ia32-libs (Ubuntu's metapackage for a couple of common 32-bit libraries). After that, there were no issues with either compiling WPIlib or our own code.

TL;DR: If you're running a 64-bit linux distribution, install 32-bit glibc. Otherwise WPIlib will fail to compile.

I find it interesting that there is no precompiled 64-bit binary, despite the ant scripts recognizing 64-bit linux installs.
Thanks! This post helped out a lot. 64-bit Linux installs are becoming more prevalent. WPILib probably needs to get a working 64-bit binary of preverify into the plugin to prevent major frustration from users in the near future.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote
Reply


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 11:03.

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