[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GEMPAK #AZF-499449]: snow-leopard build -- 32 and 64-bit issues



Hi Neil,

It appears that netcdf was built as 64bit but it's trying to link as 32. I 
would first try adding "-m64" to COPT in your Makeinc.darwin and try the build 
again - if that fails try adding "-arch x86_64 -m64" instead.  This should 
force the build of 64 bit binaries and hopefully the linking conflict will be 
resolved.

Michael





> I'm trying a build on Mac OS X Snow Leopard, vers. 10.6.4
> The hardware is iMac intel Core i7 (intel 2010 quad core) - 64-bit
> capable.
> 
> 
> I'm using gcc and gfortran version 4.2 from a fink install.
> 
> I'm getting errors that begin with netcdf that state:
> 
> 
> ld: warning: in /Users/gempak/GEMPAK5.11.4/os/darwin/lib/libnetcdf.a,
> file was built for unsupported file format which is not the
> architecture being linked (i386)
> 
> make.out and Makeinc.darwin are attached.
> 
> As to architecture, there is some confusing info to be had regarding
> what i'm running on. But it is the 64 bit EFI and the System Profiler
> shows the kernel and extensions (mostly) are 64 bit. So it must be
> running the 64 bit arch.
> 
> Given that, should I try building a universal binary on this host,
> with anticipation that it will  be run on non-64 bit kernel intel
> macs? If so, how to do so? Use both "-arch i386" and "-arch x86_64"?
> 
> Is there a way around this architecture confusion?
> 
> Thanks,
> -Neil
> address@hidden
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


Ticket Details
===================
Ticket ID: AZF-499449
Department: Support GEMPAK
Priority: Normal
Status: Open