On 10/2/13 11:53 AM, González Alfonso Eduardo wrote:
> Dear Sir/Madam,
> i'm trying to compile GILDAS with Fink in a Mac, but it crashes.
> I'm copying below the last messages on the terminal.
> Thank you in advance for your help.
> Eduardo Gonzalez Alfonso
> Universidad de Alcala, Spain.
> [email protected]
>
> ps: apologizes as all messages are in Spanish, but hope they are easy
> to understand; in any case, please let me know and i'll try to translate
> to English.
>
> ------------------------------------------------------------------------------------------------
>
>
>
> cpp  -P -traditional -C  -DIEEE="ieee" -DBITS64="bits64" -DDARWIN="darwin" 
> -DFORTRAN2003_PP -ffreestanding -DGFORTRAN="gfortran" -DFFTW="yes" 
> -DCFITSIO="yes" -DATM2009="atm2009" -DPNG="yes" -DGAG_USE_GTK -DGAG_USE_POSIX 
> -DGAG_USE_PYTHON -DGAG_USE_THREADS -DGAG_USE_UNDERSCORE    backtrans.f | grep 
> -v \#pragma > built/x86_64-darwin-gfortran/backtrans.f
> backtrans.f:2:16: error: invalid preprocessing directive
>       #         rms,npix1,npix2,npix3,refpix,val,inc)
>                 ^
> 1 error generated.

<snip>

>
> Also include the following system information:
> Package manager version: 0.35.2
> Distribution version: selfupdate-rsync Wed Oct  2 19:56:53 2013, 10.8, x86_64
> Trees: local/main stable/main
> Xcode.app: 5.0
> Xcode command-line tools: 5.0.0.0.1.1377666378
> Max. Fink build jobs:  1
>

I can confirm that I see the same thing (10.8.5 with Xcode 5).  My guess 
is that this is due to the fact that "cpp" has changed from llvm-gcc to 
clang and that there is an incompatibility.

A potential workaround would be to create a cpp symlink temporarily that 
points to a cpp from llvm-gcc.

1)  If you upgraded from Xcode 4.x, you probably still have a llvm-gcc 
installation, and you can use

        sudo ln -s /sw/bin/cpp /usr/llvm-gcc-4.2/bin/llvm-cpp-4.2

2)  If this is a fresh install, then you can use fink's llvm-gcc42 package:
        
        fink install llvm-gcc42
        sudo ln -s /sw/bin/cpp /sw/bin/llvm-cpp-4.2
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
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