Hi,

I looked into /sw/lib/ . I do not see any libsfftw_mpi.a

Does that mean I have to reinstall fftw using fink with mpi ?

By the way, In the makefile, I see :

ifeq (NOTYPEPREFIX_FFTW,$(findstring NOTYPEPREFIX_FFTW,$(OPT)))    # fftw
installed with type prefix?
  FFTW_LIB = $(FFTW_LIBS) -lrfftw_mpi -lfftw_mpi -lrfftw -lfftw
else
ifeq (DOUBLEPRECISION_FFTW,$(findstring DOUBLEPRECISION_FFTW,$(OPT)))
  FFTW_LIB = $(FFTW_LIBS) -ldrfftw_mpi -ldfftw_mpi -ldrfftw -ldfftw
else
  FFTW_LIB = $(FFTW_LIBS) -lsrfftw_mpi -lsfftw_mpi -lsrfftw -lsfftw
endif
endif


LIBS   =   $(HDF5LIB) -g  $(MPICHLIB)  $(GSL_LIBS) -lgsl -lgslcblas -lm
$(FFTW_LIB)



Since there are no files of type fftw_mpi in /sw/lib/,  I think that is the
problem.

Let me know if you can give me further inputs. Also, by renaming
/usr/local, do you mean something like:

mv     /usr/local      /usr/temp


Thanks
-Shankar






On Fri, Mar 30, 2012 at 2:34 PM, Alexander Hansen <
[email protected]> wrote:

> 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/<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