On 5/29/12 5:21 AM, Kees Weemstra wrote:
> Hi all,
> 
> I have a serious problem.
> It all started after an attempt to install the atlas (LAPACK) package
> with Fink.
> This didn't work out for some reason, so I ran 'fink selfupdate' and
> 'fink update all'.
> However, for some reason, I'm unable to compile any fortran code.
> Previously installed fortran code that was compiling perfectly, doesn't
> compile anymore.
> The linker (ld) gives the following warning(s):
> 
> /ld: warning: in /usr/local/sac/lib/libsacio.a, file was built for
> unsupported file format which is not the architecture being linked (i386)
> ld: warning: in /usr/local/sac/lib/libsac.a, file was built for
> unsupported file format which is not the architecture being linked (i386)
> /...
> 
> Subsequenly the main code doesn't recognize the routines called in the
> main code:
> 
> /Undefined symbols:
>   "_wsac1_", referenced from:
>       _MAIN__ in ccLd2K67.o
>   "_getnhv_", referenced from:
>       _MAIN__ in ccLd2K67.o
>       _MAIN__ in ccLd2K67.o
>       _MAIN__ in ccLd2K67.o
>       _MAIN__ in ccLd2K67.o
>       _MAIN__ in ccLd2K67.o
>       _MAIN__ in ccLd2K67.o
>   "_sfftw_plan_dft_c2r_1d_", referenced from:
>       _MAIN__ in ccLd2K67.o
>   "_sfftw_execute_", referenced from:
>       _MAIN__._omp_fn.5 in ccLd2K67.o
>       _MAIN__._omp_fn.2 in ccLd2K67.o
>   "_getkhv_", referenced from:
>       _MAIN__ in ccLd2K67.o
>   "_sfftw_plan_dft_r2c_1d_", referenced from:
>       _MAIN__ in ccLd2K67.o
>   "_getfhv_", referenced from:
>       _MAIN__ in ccLd2K67.o
>       _MAIN__ in ccLd2K67.o
>   "_rsac1_", referenced from:
>       _MAIN__ in ccLd2K67.o/
> /ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [BIN/Xcorr] Error 1/
> 
> 
> Fyi: these libraries were perfectly linking before, so it is not due to
> them!
> The error must be related to some other configuration related issue I think.
> I don't know how to deal with this problem. Some help would be appreciated.
> My OS is: Mac OS version 10.6.8
> 2.66 GHz Intel Core i7  (so 64 bit and not 32 bit as i386)

The _capabilities_ of your machine are absolutely irrelevant here.

> 
> fink version:
> Package manager version: 0.32.6
> Distribution version: selfupdate-rsync Mon May 28 10:47:13 2012, 10.6, i386

You specifically chose to use a 32-bit Fink.

> Trees: local/main stable/main stable/crypto unstable/main unstable/crypto
> 
> Some help would be highly appreciated!
> Thanks in advance!
> 
> Best regards,
> Kees
> 
> 
> 
> -- 
> 
> __________________________________________________________________
> 
> Cornelis Weemstra
> PhD Student
> 
> NO H 39.2
> Institute of Geophysics
> ETH Zurich
> Sonneggstrasse 5
> CH-8092 Zürich
> Switzerland
> 
> e-mail:   [email protected] <mailto:[email protected]>
> tel:    0041 44 6337161
> cell:   0041 77 4046628
> __________________________________________________________________
> 
> 
> 

I expect that what happened is that you installed fink's gcc47 package
in attempting to build atlas (we're working on a fix for newer machines,
by the way) and your original "gfortran" executable is no longer the
first one in the PATH.  You can confirm this by running

"type -a gfortran"

You can use "fink remove gcc47" to remove it.

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to