On 3/30/12 12:11 PM, Shankar Agarwal wrote:
> Hi,
>
> I installed fftw-2.1.5 on macbook 10.6.8 by doing:
>
>           fink install fftw-2.1.5
>
> Then, In my makefile (for a cosmology code named Gadget), I have set 
> the following paths:
>
> CC       =  mpicc
> OPTIMIZE = -O3 -Wall
> GSL_INCL = -I/sw/include
> GSL_LIBS = -L/sw/lib
> FFTW_INCL= -I/sw/include
> FFTW_LIBS= -L/sw/lib
> MPICHLIB =
> HDF5INCL = -I/sw/include
> HDF5LIB  = -L/sw/lib -lhdf5 -lz
>
> While building my code, I get the following error:
>
> ld: warning: in /usr/local/lib/libsrfftw_mpi.a, file was built for 
> unsupported file format which is not the architecture being linked (i386)
> ld: warning: in /usr/local/lib/libsfftw_mpi.a, file was built for 
> unsupported file format which is not the architecture being linked (i386)
>
>
> Question: Why is it looking into /usr/local/lib  instead of  /sw/lib   ?
>
That may be hardcoded in your Makefile.  It's hard to say without seeing 
that, or at least the line of output that the linker was trying to run 
before you got those warnings.

Also, the OS X build tools always look in /usr and /usr/local, 
regardless of any particular -I or -L settings, so it's quite difficult 
to avoid having builds pick up on stuff that is installed in those 
locations.

> How may I solve the problem?
>
> Thanks
> Shankar
Rename /usr/local temporarily while you do your build.  Or get rid of 
your third-party fftw now that you have one through Fink.

-- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/2012/02/21/got-job/


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to