Re: Need 64bit gcc4 PyNGL build, or some sort of hack?

From: Jeff Whitaker <jswhit_at_nyahnyahspammersnyahnyah>
Date: Thu, 12 Apr 2007 16:32:28 -0600

Trevor Law wrote:
> Hello,
>
> My name is Trevor Law and I have a substantial code base that I've
> developed for visualizing biological neuron data that uses PyNGL.
> Because of compatibility issues, we at my lab changed our linux
> distribution from Redhat enterprise to OpenSuse. Unfortunately,
> OpenSuse uses gcc4 and we have a 64-bit machine architecture (x86_64).
> I tried using the 32-bit gcc4 binaries as I thought x86_64 was
> backwards compatible, but the machine complains about an incorrect ELF
> class:
>
> featureserver:/usr/lib/python2.5/site-packages/PyNGL_numpy # python
> Python 2.5 (r25:51908, Jan 9 2007, 17:00:50)
> [GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import Ngl
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "Ngl.py", line 58, in <module>
> from hlu import *
> File "hlu.py", line 5, in <module>
> import _hlu
> ImportError: ./_hlu.so: wrong ELF class: ELFCLASS32
>
>
> I do not have a ton of linux expertise, but I'm guessing that what
> needs to happen is the source code needs to be compiled for the x86_64
> architecture with gcc4 to work. If someone could give me some tips on
> how to do this, or work some other "hack" to fix things, I would
> appreciate it very much.
>
> Here is the output of "gcc --version":
> gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> Thank you advance for any time you could devote to my problem
> _______________________________________________
> pyngl-talk mailing list
> pyngl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Trevor: You want

PyNGL/PyNIO 1.1.0 for Linux x86_64 (64-bit)
<http://www.earthsystemgrid.org/download/restrictedHttpDownloadToken.htm?lfn=pyngl.1.1.0.bin_numpy.PyNGL_numpy-1.1.0.linux-x86_64.tar.gz&url=http://dataportal.ucar.edu:8080/data/xserve/pyngl/1.1.0/bin_numpy/PyNGL_numpy-1.1.0.linux-x86_64.tar.gz&size=20477711&service=DISKatNCAR>

from the earthsystemgrid download page. I don't think it's compiled
with gcc 4, but it works fine on our x86_64 OpenSuse system.

-Jeff

-- 
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/PSD  R/PSD1        Email  : Jeffrey.S.Whitaker_at_noaa.gov
325 Broadway                Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg
_______________________________________________
pyngl-talk mailing list
pyngl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Thu Apr 12 2007 - 16:32:28 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 17 2007 - 15:42:04 MDT