Quantcast

Compile issues: error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int).

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Compile issues: error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int).

Stephen
Hello,

I'm trying to install Octave 3.4.2 on a MacBook running 10.6.7. On my machine I have:
- GNU Make
- g++
- gcc
- g77
- gfortran


When I run the ./configure script I get this error:

<code>error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int). </code>

I see that other people have encountered this error. However, I am at a loss to fix it. What are the steps I need to carry out to get Octave to work?

I can't use the Octave.app as I need to use s Matlab script that uses imread() and the application was compiled with this disabled.

Similarly, trying to install octave-devel using macports doesn't work as it hangs when trying to build gcc (despite it already being installed)l.

Any help greatly appreciated!

Thanks a million

Stephen Wilson




</code>




_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile issues: error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int).

bpabbott
Administrator
On Aug 30, 2011, at 9:15 AM, Stephen Wilson wrote:

> Hello,
>
> I'm trying to install Octave 3.4.2 on a MacBook running 10.6.7. On my machine I have:
> - GNU Make
> - g++
> - gcc
> - g77
> - gfortran
>
> When I run the ./configure script I get this error:
>
> <code>error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int). </code>
>
> I see that other people have encountered this error. However, I am at a loss to fix it. What are the steps I need to carry out to get Octave to work?
>
> I can't use the Octave.app as I need to use s Matlab script that uses imread() and the application was compiled with this disabled.
>
> Similarly, trying to install octave-devel using macports doesn't work as it hangs when trying to build gcc (despite it already being installed)l.
>
> Any help greatly appreciated!
>
> Thanks a million
>
> Stephen Wilson

If you are unable to build MacPort's gcc then it is possible you have a problem with your development tools.

Where did you obtain your g++, gcc, g77, & gfortran?

Ben

_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile issues: error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int).

bpabbott
Administrator
On Aug 30, 2011, at 11:03 AM, Stephen Wilson wrote:

On 30 August 2011 15:57, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 9:15 AM, Stephen Wilson wrote:

> Hello,
>
> I'm trying to install Octave 3.4.2 on a MacBook running 10.6.7. On my machine I have:
> - GNU Make
> - g++
> - gcc
> - g77
> - gfortran
>
> When I run the ./configure script I get this error:
>
> <code>error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int). </code>
>
> I see that other people have encountered this error. However, I am at a loss to fix it. What are the steps I need to carry out to get Octave to work?
>
> I can't use the Octave.app as I need to use s Matlab script that uses imread() and the application was compiled with this disabled.
>
> Similarly, trying to install octave-devel using macports doesn't work as it hangs when trying to build gcc (despite it already being installed)l.
>
> Any help greatly appreciated!
>
> Thanks a million
>
> Stephen Wilson

If you are unable to build MacPort's gcc then it is possible you have a problem with your development tools.

Where did you obtain your g++, gcc, g77, & gfortran?

Ben


Hi Ben, 

thanks for the email. When I try to install via MacPorts it hangs on building gcc for over 30 mins, so I cancel it, figuring it shouldn't take that long.

I have g++ and gcc via the Developer tools that came with the Mac, gfortran from a dmg I downloaded from the web, and g77 from binaries that I downloaded and compiled.

What version of gcc did you try to install using MacPorts?

Where did you get your copy of the gfortran dmg?

Ben


_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile issues: error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int).

bpabbott
Administrator

On Aug 30, 2011, at 11:26 AM, Stephen Wilson wrote:

On 30 August 2011 16:17, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 11:03 AM, Stephen Wilson wrote:

On 30 August <a href="tel:2011%2015" value="+49201115" target="_blank">2011 15:57, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 9:15 AM, Stephen Wilson wrote:

> Hello,
>
> I'm trying to install Octave 3.4.2 on a MacBook running 10.6.7. On my machine I have:
> - GNU Make
> - g++
> - gcc
> - g77
> - gfortran
>
> When I run the ./configure script I get this error:
>
> <code>error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int). </code>
>
> I see that other people have encountered this error. However, I am at a loss to fix it. What are the steps I need to carry out to get Octave to work?
>
> I can't use the Octave.app as I need to use s Matlab script that uses imread() and the application was compiled with this disabled.
>
> Similarly, trying to install octave-devel using macports doesn't work as it hangs when trying to build gcc (despite it already being installed)l.
>
> Any help greatly appreciated!
>
> Thanks a million
>
> Stephen Wilson

If you are unable to build MacPort's gcc then it is possible you have a problem with your development tools.

Where did you obtain your g++, gcc, g77, & gfortran?

Ben


Hi Ben, 

thanks for the email. When I try to install via MacPorts it hangs on building gcc for over 30 mins, so I cancel it, figuring it shouldn't take that long.

I have g++ and gcc via the Developer tools that came with the Mac, gfortran from a dmg I downloaded from the web, and g77 from binaries that I downloaded and compiled.

What version of gcc did you try to install using MacPorts?

Where did you get your copy of the gfortran dmg?

Ben

Thanks for taking the time to reply :-)

When fetching Octave using MacPorts, it tries to install gcc44 and hangs. I had gcc4.0 and gcc4.2 already installed independently. 

I got the gfortran dmg from here: http://r.research.att.com/tools/

Thanks :)

Stephen

For gfortran, you installed gfortran-lion-5666-3.pkg?

How, and where, did you install gcc-4.0?

What do the following return for you?

$ ls /usr/bin/gcc*
/usr/bin/gcc /usr/bin/gcc-4.2

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Ben

p.s. please reply-all and respond below so that those who arrive late can follow along. Thanks!



_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile issues: error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int).

Stephen


On 30 August 2011 16:37, Ben Abbott <[hidden email]> wrote:

On Aug 30, 2011, at 11:26 AM, Stephen Wilson wrote:

On 30 August <a href="tel:2011%2016" value="+49201116" target="_blank">2011 16:17, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 11:03 AM, Stephen Wilson wrote:

On 30 August <a href="tel:2011%2015" value="+49201115" target="_blank">2011 15:57, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 9:15 AM, Stephen Wilson wrote:

> Hello,
>
> I'm trying to install Octave 3.4.2 on a MacBook running 10.6.7. On my machine I have:
> - GNU Make
> - g++
> - gcc
> - g77
> - gfortran
>
> When I run the ./configure script I get this error:
>
> <code>error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int). </code>
>
> I see that other people have encountered this error. However, I am at a loss to fix it. What are the steps I need to carry out to get Octave to work?
>
> I can't use the Octave.app as I need to use s Matlab script that uses imread() and the application was compiled with this disabled.
>
> Similarly, trying to install octave-devel using macports doesn't work as it hangs when trying to build gcc (despite it already being installed)l.
>
> Any help greatly appreciated!
>
> Thanks a million
>
> Stephen Wilson

If you are unable to build MacPort's gcc then it is possible you have a problem with your development tools.

Where did you obtain your g++, gcc, g77, & gfortran?

Ben


Hi Ben, 

thanks for the email. When I try to install via MacPorts it hangs on building gcc for over 30 mins, so I cancel it, figuring it shouldn't take that long.

I have g++ and gcc via the Developer tools that came with the Mac, gfortran from a dmg I downloaded from the web, and g77 from binaries that I downloaded and compiled.

What version of gcc did you try to install using MacPorts?

Where did you get your copy of the gfortran dmg?

Ben

Thanks for taking the time to reply :-)

When fetching Octave using MacPorts, it tries to install gcc44 and hangs. I had gcc4.0 and gcc4.2 already installed independently. 

I got the gfortran dmg from here: http://r.research.att.com/tools/

Thanks :)

Stephen

For gfortran, you installed gfortran-lion-5666-3.pkg?

How, and where, did you install gcc-4.0?

What do the following return for you?

$ ls /usr/bin/gcc*
/usr/bin/gcc /usr/bin/gcc-4.2

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build <a href="tel:2335.15.00" value="+4923351500" target="_blank">2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Ben

p.s. please reply-all and respond below so that those who arrive late can follow along. Thanks!



I installed  gfortran4.2.3.dmg

$ls /usr/bin/gcc* returns

/usr/bin/gcc        /usr/bin/gcc-4.0    /usr/bin/gcc-4.2

$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile issues: error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int).

bpabbott
Administrator
On Aug 30, 2011, at 11:43 AM, Stephen Wilson wrote:

On 30 August 2011 16:37, Ben Abbott <[hidden email]> wrote:

On Aug 30, 2011, at 11:26 AM, Stephen Wilson wrote:

On 30 August <a href="tel:2011%2016" value="+49201116" target="_blank" class="">2011 16:17, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 11:03 AM, Stephen Wilson wrote:

On 30 August <a href="tel:2011%2015" value="+49201115" target="_blank" class="">2011 15:57, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 9:15 AM, Stephen Wilson wrote:

> Hello,
>
> I'm trying to install Octave 3.4.2 on a MacBook running 10.6.7. On my machine I have:
> - GNU Make
> - g++
> - gcc
> - g77
> - gfortran
>
> When I run the ./configure script I get this error:
>
> <code>error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int). </code>
>
> I see that other people have encountered this error. However, I am at a loss to fix it. What are the steps I need to carry out to get Octave to work?
>
> I can't use the Octave.app as I need to use s Matlab script that uses imread() and the application was compiled with this disabled.
>
> Similarly, trying to install octave-devel using macports doesn't work as it hangs when trying to build gcc (despite it already being installed)l.
>
> Any help greatly appreciated!
>
> Thanks a million
>
> Stephen Wilson

If you are unable to build MacPort's gcc then it is possible you have a problem with your development tools.

Where did you obtain your g++, gcc, g77, & gfortran?

Ben


Hi Ben, 

thanks for the email. When I try to install via MacPorts it hangs on building gcc for over 30 mins, so I cancel it, figuring it shouldn't take that long.

I have g++ and gcc via the Developer tools that came with the Mac, gfortran from a dmg I downloaded from the web, and g77 from binaries that I downloaded and compiled.

What version of gcc did you try to install using MacPorts?

Where did you get your copy of the gfortran dmg?

Ben

Thanks for taking the time to reply :-)

When fetching Octave using MacPorts, it tries to install gcc44 and hangs. I had gcc4.0 and gcc4.2 already installed independently. 

I got the gfortran dmg from here: http://r.research.att.com/tools/

Thanks :)

Stephen

For gfortran, you installed gfortran-lion-5666-3.pkg?

How, and where, did you install gcc-4.0?

What do the following return for you?

$ ls /usr/bin/gcc*
/usr/bin/gcc /usr/bin/gcc-4.2

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build <a href="tel:2335.15.00" value="+4923351500" target="_blank" class="">2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Ben

p.s. please reply-all and respond below so that those who arrive late can follow along. Thanks!

I installed  gfortran4.2.3.dmg

$ls /usr/bin/gcc* returns

/usr/bin/gcc        /usr/bin/gcc-4.0    /usr/bin/gcc-4.2

$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Ok. gfortran-4.2.3.dmg is for OSX Tiger (10.4). This is likely the the problem with both MacPorts' gcc and with the error you encountered with Octave's configure.

I don't know if it is possible to install the correct gfortran over the one you have, but you can try. 

From http://r.research.att.com/tools/ scroll down to "GNU Fortran 4.2.4 for Mac OS X 10.6 (Snow Leopard)" and install the gfortran package that corresponds to your version of Xcode. If you are still unable build gcc via MacPorts, then I suggest you reinstall Xcode, skip AT&T's version of gfortran and proceed directly to MacPorts and try to install octave-devel.

Once you have octave-devel installed, and if you are interested in compiling the development sources, I can help you set that up.

Ben


_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile issues: error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int).

Stephen


On 30 August 2011 16:57, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 11:43 AM, Stephen Wilson wrote:

On 30 August <a href="tel:2011%2016" value="+49201116" target="_blank">2011 16:37, Ben Abbott <[hidden email]> wrote:

On Aug 30, 2011, at 11:26 AM, Stephen Wilson wrote:

On 30 August <a href="tel:2011%2016" value="+49201116" target="_blank">2011 16:17, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 11:03 AM, Stephen Wilson wrote:

On 30 August <a href="tel:2011%2015" value="+49201115" target="_blank">2011 15:57, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 9:15 AM, Stephen Wilson wrote:

> Hello,
>
> I'm trying to install Octave 3.4.2 on a MacBook running 10.6.7. On my machine I have:
> - GNU Make
> - g++
> - gcc
> - g77
> - gfortran
>
> When I run the ./configure script I get this error:
>
> <code>error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int). </code>
>
> I see that other people have encountered this error. However, I am at a loss to fix it. What are the steps I need to carry out to get Octave to work?
>
> I can't use the Octave.app as I need to use s Matlab script that uses imread() and the application was compiled with this disabled.
>
> Similarly, trying to install octave-devel using macports doesn't work as it hangs when trying to build gcc (despite it already being installed)l.
>
> Any help greatly appreciated!
>
> Thanks a million
>
> Stephen Wilson

If you are unable to build MacPort's gcc then it is possible you have a problem with your development tools.

Where did you obtain your g++, gcc, g77, & gfortran?

Ben


Hi Ben, 

thanks for the email. When I try to install via MacPorts it hangs on building gcc for over 30 mins, so I cancel it, figuring it shouldn't take that long.

I have g++ and gcc via the Developer tools that came with the Mac, gfortran from a dmg I downloaded from the web, and g77 from binaries that I downloaded and compiled.

What version of gcc did you try to install using MacPorts?

Where did you get your copy of the gfortran dmg?

Ben

Thanks for taking the time to reply :-)

When fetching Octave using MacPorts, it tries to install gcc44 and hangs. I had gcc4.0 and gcc4.2 already installed independently. 

I got the gfortran dmg from here: http://r.research.att.com/tools/

Thanks :)

Stephen

For gfortran, you installed gfortran-lion-5666-3.pkg?

How, and where, did you install gcc-4.0?

What do the following return for you?

$ ls /usr/bin/gcc*
/usr/bin/gcc /usr/bin/gcc-4.2

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build <a href="tel:2335.15.00" value="+4923351500" target="_blank">2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Ben

p.s. please reply-all and respond below so that those who arrive late can follow along. Thanks!

I installed  gfortran4.2.3.dmg

$ls /usr/bin/gcc* returns

/usr/bin/gcc        /usr/bin/gcc-4.0    /usr/bin/gcc-4.2

$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Ok. gfortran-4.2.3.dmg is for OSX Tiger (10.4). This is likely the the problem with both MacPorts' gcc and with the error you encountered with Octave's configure.

I don't know if it is possible to install the correct gfortran over the one you have, but you can try. 

From http://r.research.att.com/tools/ scroll down to "GNU Fortran 4.2.4 for Mac OS X 10.6 (Snow Leopard)" and install the gfortran package that corresponds to your version of Xcode. If you are still unable build gcc via MacPorts, then I suggest you reinstall Xcode, skip AT&T's version of gfortran and proceed directly to MacPorts and try to install octave-devel.

Once you have octave-devel installed, and if you are interested in compiling the development sources, I can help you set that up.

Ben

D'oh! Ok, thanks :-) I will try out the suggestions and report back!

Thanks again

S

_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile issues: error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int).

Stephen
In reply to this post by bpabbott


On 30 August 2011 16:57, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 11:43 AM, Stephen Wilson wrote:

On 30 August <a href="tel:2011%2016" value="+49201116" target="_blank">2011 16:37, Ben Abbott <[hidden email]> wrote:

On Aug 30, 2011, at 11:26 AM, Stephen Wilson wrote:

On 30 August <a href="tel:2011%2016" value="+49201116" target="_blank">2011 16:17, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 11:03 AM, Stephen Wilson wrote:

On 30 August <a href="tel:2011%2015" value="+49201115" target="_blank">2011 15:57, Ben Abbott <[hidden email]> wrote:
On Aug 30, 2011, at 9:15 AM, Stephen Wilson wrote:

> Hello,
>
> I'm trying to install Octave 3.4.2 on a MacBook running 10.6.7. On my machine I have:
> - GNU Make
> - g++
> - gcc
> - g77
> - gfortran
>
> When I run the ./configure script I get this error:
>
> <code>error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int). </code>
>
> I see that other people have encountered this error. However, I am at a loss to fix it. What are the steps I need to carry out to get Octave to work?
>
> I can't use the Octave.app as I need to use s Matlab script that uses imread() and the application was compiled with this disabled.
>
> Similarly, trying to install octave-devel using macports doesn't work as it hangs when trying to build gcc (despite it already being installed)l.
>
> Any help greatly appreciated!
>
> Thanks a million
>
> Stephen Wilson

If you are unable to build MacPort's gcc then it is possible you have a problem with your development tools.

Where did you obtain your g++, gcc, g77, & gfortran?

Ben


Hi Ben, 

thanks for the email. When I try to install via MacPorts it hangs on building gcc for over 30 mins, so I cancel it, figuring it shouldn't take that long.

I have g++ and gcc via the Developer tools that came with the Mac, gfortran from a dmg I downloaded from the web, and g77 from binaries that I downloaded and compiled.

What version of gcc did you try to install using MacPorts?

Where did you get your copy of the gfortran dmg?

Ben

Thanks for taking the time to reply :-)

When fetching Octave using MacPorts, it tries to install gcc44 and hangs. I had gcc4.0 and gcc4.2 already installed independently. 

I got the gfortran dmg from here: http://r.research.att.com/tools/

Thanks :)

Stephen

For gfortran, you installed gfortran-lion-5666-3.pkg?

How, and where, did you install gcc-4.0?

What do the following return for you?

$ ls /usr/bin/gcc*
/usr/bin/gcc /usr/bin/gcc-4.2

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build <a href="tel:2335.15.00" value="+4923351500" target="_blank">2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Ben

p.s. please reply-all and respond below so that those who arrive late can follow along. Thanks!

I installed  gfortran4.2.3.dmg

$ls /usr/bin/gcc* returns

/usr/bin/gcc        /usr/bin/gcc-4.0    /usr/bin/gcc-4.2

$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Ok. gfortran-4.2.3.dmg is for OSX Tiger (10.4). This is likely the the problem with both MacPorts' gcc and with the error you encountered with Octave's configure.

I don't know if it is possible to install the correct gfortran over the one you have, but you can try. 

From http://r.research.att.com/tools/ scroll down to "GNU Fortran 4.2.4 for Mac OS X 10.6 (Snow Leopard)" and install the gfortran package that corresponds to your version of Xcode. If you are still unable build gcc via MacPorts, then I suggest you reinstall Xcode, skip AT&T's version of gfortran and proceed directly to MacPorts and try to install octave-devel.

Once you have octave-devel installed, and if you are interested in compiling the development sources, I can help you set that up.

Ben



Hi Ben,

I have been able to install octave-devel via MacPorts. It appears to run from the terminal. What benefits (if any) would I gain from compiling the sources again and how would I go about doing it?

Thanks,

Stephen

_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile issues: error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int).

bpabbott
Administrator
On Aug 31, 2011, at 3:45 AM, Stephen Wilson wrote:

> Hi Ben,
>
> I have been able to install octave-devel via MacPorts. It appears to run from the terminal. What benefits (if any) would I gain from compiling the sources again and how would I go about doing it?
>
> Thanks,
>
> Stephen

Ok, that's good news. Before worrying about the developers sources, you'll want to add some additional ports.

        sudo port install epstool pstoedit transfig fltk-devel
        sudo port activate qhull @2010.1_3

If the "activate" doesn't work, they try ...

        sudo port install qhull @2010.1_3
        sudo port activate qhull @2010.1_3

And then rebuild octave (so that it will use qhull and fltk).

        sudo port upgrade -f octave-devel

This will ensure your Octave is fully functional.


The benefit, of using the developer's sources, is you'd be able to contribute to Octave's development.

If you are interested, go to the link below ....

        http://www.gnu.org/software/octave/download.html

... and scroll down to, and follow, the instructions under Development Sources.

When you have a local copy of the sources you'll be able to compile by ...

        cd "path to your copy of the sources"

        ./autogen.sh
        export PREFIX=/opt/local
        export CC=/opt/local/bin/gcc-mp-4.4
        export CXX=/opt/local/bin/g++-mp-4.4
        export CXXCPP="/opt/local/bin/g++-mp-4.4 -E"
        export F77=/opt/local/bin/gfortran-mp-4.4
        export FC=/opt/local/bin/gfortran-mp-4.4
        export CXXFLAGS="-pipe -O2 -m64"
        export FFLAGS="$CXXFLAGS -D_THREAD_SAFE -pthread"
        export CFLAGS="$FFLAGS -lstdc++"
        export LDFLAGS=-L$PREFIX/lib
        export CPPFLAGS=-I$PREFIX/include
        export BLAS_LIBS="-lcblas -lf77blas -latlas"
        export LAPACK_LIBS=-llapack

        ./configure --prefix="/opt/local" --without-framework-carbon --with-x \
           --with-cholmod="-lcholmod -lmetis"

Once that is done, I recommend you *not* install Octave since MacPorts will be unable to uninstall it later. However, you can still run the developers version by typing ./run-octave from the directory containing the sources.

Ben
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Loading...