Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Eclipse WPIlib requires 32-bit libraries on 64-bit linux installs (http://www.chiefdelphi.com/forums/showthread.php?t=96194)

wmarshall 12-07-2011 21:34

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.

codedr 13-07-2011 09:18

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.

jtdowney 13-07-2011 10:02

Re: Eclipse WPIlib requires 32-bit libraries on 64-bit linux installs
 
Quote:

Originally Posted by wmarshall (Post 1068941)
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.

Mr. Lim 30-07-2011 01:12

Re: Eclipse WPIlib requires 32-bit libraries on 64-bit linux installs
 
Quote:

Originally Posted by wmarshall (Post 1068941)
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.


All times are GMT -5. The time now is 22:16.

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