bugGNU Octave - Bugs: bug #44367, configure: Improve error handling...

 
 

bug #44367: configure: Improve error handling when missing Fortran compiler

Submitter:  Claudius Zingerli <zeuz>
Submitted:  Wed 25 Feb 2015 03:26:47 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  jordigh
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 25 Feb 2015 07:24:12 PM UTC, comment #2: 

Thank you. I modified the whitespace and commit message a bit and pushed your patch:

http://hg.savannah.gnu.org/hgweb/octave/rev/e8ccfc5d892b

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Wed 25 Feb 2015 03:29:49 PM UTC, comment #1: 

Tested on RHEL 6 (gcc 4.4.7) with/without gcc-gfortran 4.4.7

Claudius Zingerli <zeuz>
Wed 25 Feb 2015 03:26:47 PM UTC, original submission:  

The current configure script fails indirectly if there is no Fortran compiler:

./configure
[...]
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... (cached) no
checking whether  accepts -g... (cached) no
checking how to get verbose linking output from ... configure: WARNING: compilation failed

checking for Fortran 77 libraries of ...
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... configure: error: in `/home/zeuz/octave':
configure: error: cannot compile a simple Fortran program
See `config.log' for more details.



This fix changes the error to:


checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... (cached) no
checking whether  accepts -g... (cached) no
checking if we have some usable Fortran compiler...... no
configure: error: No Fortran compiler found



Claudius Zingerli <zeuz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #33183:  fortran-missing.diff added by zeuz (869B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jordigh (Updated the item)
  • -email is unavailable- added by zeuz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-25 jordigh StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2015-02-25 jordigh StatusNone Patch Submitted
        Assigned toNone jordigh
    2015-02-25 zeuz Attached File- Added fortran-missing.diff, #33183

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code