install of octave not possible?

Gregory Wright gwright at antiope.com
Wed Dec 13 15:00:55 PST 2006


Hi Joerg,

On Dec 13, 2006, at 11:38 AM, Jörg Frauendiener wrote:

> Hi,
>
>>>
>>> I tried to install octave. First I got a checksum error because  
>>> the port uses SparseSuite-2.1.1 while the current downloaded  
>>> version is 2.3.1. After changing to the old version the chacksum  
>>> was ok but I get compilation errors from that same package  
>>> SparseSuite-2.3.1:
>>>
>>> cc -O -c -DCOMPLEX -I../../AMD/Include -I../../COLAMD -I../../BTF/ 
>>> Include -I../Include -I../../UFconfig ../Source/klu.c -o klu_z.o
>>> In file included from /usr/include/math.h:26,
>>>                  from ../Include/klu_internal.h:87,
>>>                  from ../Source/klu.c:52:
>>> /usr/include/architecture/ppc/math.h:686: error: duplicate member  
>>> 'component'
>>>
>>> Anybody knows what's happening?
>>
>> Looks like the same thing that's happening here: https:// 
>> svn.macosforge.org/projects/macports/ticket/11014
>>
>> There's a patch posted that should fix it.
>
> Thanks a lot for pointing me to the patch. Now it worked. However,  
> along the way gcc-4.0.3 was also installed even though I have  
> gcc-4.0.1 available which comes with Xcode.
>
> I wonder whether this is really necessary? Is there a way to tell  
> `port' which compiler to use?
>

Yes, this is really necessary.  The gcc40 port was built so you would  
have a gfortran that is
ABI compatible with your gcc and g++.  Apple does not supply gfortran  
so MacPorts has to build it.
(And Octave really does have modules written in c, c++ and fortran :-) )

The Octave port uses Apple's gcc and g++, which means it may well  
fail to build when Apple's
compilers move from 4.0.x to 4.1 or 4.2.  The R port takes a more  
conservative approach
and builds with gcc, g++ and gfortran from a single release.  We used  
to have a fortran only
port (g77) but there were endless problems in getting executables to  
link properly with modules
compiled by different version of Apple's compilers.

Best Wishes,
Greg

> Joerg
> --
> Jörg Frauendiener         | Tel.: +49-7071-2975922
> Theoretische Astrophysik  | Fax:  +49-7071-29-5889
> Universität Tübingen      | joerg.frauendiener at uni-tuebingen.de
> Auf der Morgenstelle 10   | http://www.tat.physik.uni-tuebingen.de/ 
> ~joergf
> D-72076 Tübingen
>
>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users
>
>




More information about the macports-users mailing list