bugGNU Octave - Bugs: bug #48366, Failed to compile the...

 
 

bug #48366: Failed to compile the "control" package

Submitter:  Andrea Vicere' <vicere>
Submitted:  Fri 01 Jul 2016 02:49:43 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.2 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 01 Jul 2016 04:07:16 PM UTC, comment #2: 

Many thanks, it is indeed an issue with MacPorts, I could fix it by reinstalling octave, evidently this aligns the compilers and solves the dependency issue.

Andrea Vicere' <vicere>
Fri 01 Jul 2016 03:26:11 PM UTC, comment #1: 

This has been reported before, and is still not a bug in the control package or in Octave. See bug #41520.

This is not a bug in the control package, but a bug in your system configuration (or the configuration of the Octave packaging that you have used from MacPorts).

If you look into how the control package is built and how Octave stores the FLIBS variable, it is probably working correctly. What probably happened is that your Octave package was built or installed using one version of GCC, that was then uninstalled or upgraded, and the path is no longer valid.

On Debian the compiler reports the GCC version directory as just "5" instead of "5.4.0", this makes upgrading between minor versions much smoother.

You should work with MacPorts to improve this situation, either by adding a harder dependency against the exact version of GCC that Octave was compiled against, or by fixing the GCC paths to be less specific.

Mike Miller <mtmiller>
Group Member
Fri 01 Jul 2016 02:49:43 PM UTC, original submission:  

I am trying to build the "control" package in octave 4.02.
My computer is a MacBook Pro running MacOS X 10.11.5, and octave had been installed using MacPorts.

I download the package directly from forge with the command

>> pkg install -forge control

clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
ld: warning: directory not found for option '-L/opt/local/lib/gcc5/gcc/x86_64-apple-darwin15/5.3.0'
ld: warning: directory not found for option '-L/opt/local/lib/gcc5/gcc/x86_64-apple-darwin15/5.3.0/../../..'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: * [__control_slicot_functions__.oct] Error 1
tar -xzf slicot.tar.gz
/opt/local/bin/mkoctfile-4.0.2 _control_helper_functions_.cc
mkdir sltmp
mv slicot/src/*.f ./sltmp
mv slicot/src_aux/*.f ./sltmp
cp TG04BX.fortran ./sltmp/TG04BX.f
cp TB01ZD.fortran ./sltmp/TB01ZD.f
cd sltmp; /opt/local/bin/mkoctfile-4.0.2 -c *.f
ar -rc slicotlibrary.a ./sltmp/*.o
rm -rf sltmp slicot
LFLAGS="-L/opt/local/lib/octave/4.0.2 -L/opt/local/lib  -lvecLibFort -L/opt/local/lib -L/opt/local/lib/gcc5/gcc/x86_64-apple-darwin15/5.3.0 -L/opt/local/lib/gcc5/gcc/x86_64-apple-darwin15/5.3.0/../../.. -lgfortran -lquadmath -lm" \
    /opt/local/bin/mkoctfile-4.0.2 _control_slicot_functions_.cc common.cc slicotlibrary.a

pkg: error running `make' for the control package.
error: called from 'configure_make' in file /opt/local/share/octave/4.0.2/m/pkg/private/configure_make.m near line 96, column 9

When checking the libraries installed in my system, I find the directory
/opt/local/lib/gcc5/gcc/x86_64-apple-darwin15/5.4.0, not 5.3.0
but I do not understand why the configuration looks for an older version

Andrea Vicere' <vicere>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vicere (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-26 mtmiller Carbon-CopyRemoved 80942 -
    2016-07-01 mtmiller Dependencies- Depends on bugs #41520
    2016-07-01 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code