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

From: Trevor Law <lawtrevor_at_nyahnyahspammersnyahnyah>
Date: Thu, 12 Apr 2007 12:27:28 -0700

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
Received on Thu Apr 12 2007 - 13:27:28 MDT

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