[Met_help] Compiling 32 bit version of MET on 64 bit Linux system

John Halley Gotway johnhg at rap.ucar.edu
Mon Nov 10 13:12:42 MST 2008


Robert,

I don't know immediately what's going on.  I built MET here as 32-bit on Debian Linux system but wasn't able to reproduce the same error message you're seeing.  Looking at your Makefile, I have a
couple of questions...

(1) GSL_BASE is defined to be "/use/local".  I'm wondering if that's a typo.  Do you really intend it to be "/usr/local"?

(2) In NETCDF_LIBS, you're linking to "-L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/32" necessary?  Do you run into problems if you don't link to it?  What happens when you remove that link?

(3) Regarding the undefined reference to "powidf2", I found that function defined on my machine in the following location:
/gcc/i486-linux-gnu/4.1.2/libgcc.a

I ran this command: nm /usr/lib/gcc/i486-linux-gnu/4.1.2/libgcc.a | grep powidf2

But I noticed that it's NOT defined in the corresponding version 3.4.6 file: /usr/lib/gcc/i486-linux-gnu/3.4.6/libgcc.a.

So perhaps it has something to do with conflicting versions of the compiler.  What version of the compiler are you running?
When you do "g++ --version", what do you get?  Perhaps you're running version 4.1.2 of the compiler, but trying to link to version 3.4.6 of the libraries.  Just a thought.

John


Flanigan, Robert (Civ, ARL/CISD) wrote:
> Hi
> 
> I am trying to build a 32 bit version of MET on a RedHat 4 64bit system.
> 
> NetCDF and the other packages compiled in 32 bit mode but I am still have problems with MET.
> The programs were checked with:
> 
> carson:rflaniga /opt/NetCDF/v400_32/bin> file ncdump
> ncdump: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
> 
> My makefile and the output of the compile are attached.
> 
> 
> R.Flanigan
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Met_help mailing list
> Met_help at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/met_help


More information about the Met_help mailing list