bugGNU Octave - Bugs: bug #49071, pkg install -forge fails with...

 
 

bug #49071: pkg install -forge fails with "unable to find mkoctfile" on Fedora 24

Submitted by:  None
Submitted on:  Mon 12 Sep 2016 05:29:27 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: c p priceOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.3
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 12 Sep 2016 06:04:13 PM UTC, comment #7:

PS the title of this bug report is NOT helpful -- please revert to my original title

"install -forge works for some pkgs, fails for others"

-- i know you want it short, but short-circuiting to the ("unable to find mkoctfile") deprives others who may also encounter the puzzling inconsistency (works for some pkgs, not for others

THANKS!

Anonymous
Mon 12 Sep 2016 06:01:32 PM UTC, comment #6:

Alright, glad to help, closing as invalid.

The error that gcc requires a certain rpm config file is something I can't comment on at all, but glad you were able to work it out.

Mike Miller <mtmiller>
Project Administrator
Mon 12 Sep 2016 06:00:06 PM UTC, comment #5:

dmitri, thanks as well!

Anonymous
Mon 12 Sep 2016 05:57:46 PM UTC, comment #4:

houston, we have a winner -- kind of sick that (fedora?) is requiring rpm config files... as i am not repackaging this...

(i've included the forge install dump, for the two warnings.)

$ dnf install redhat-rpm-config

>> pkg -forge install linear-algebra

pgmres.cc: In function ‘octave_value_list Fpgmres(const octave_value_list&, int)’:
pgmres.cc:188:14: warning: deleting object of abstract class type ‘matrixfreematrix’ which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor]
delete A;
^
pgmres.cc:189:14: warning: deleting object of abstract class type ‘matrixfreematrix’ which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor]
delete invP;
^~~~
For information about changes from previous versions of the linear-algebra package, run 'news linear-algebra'.

mike, thanks a ton -- bug listed and solved in less than 30 minutes. WIZARD!!!!

Anonymous
Mon 12 Sep 2016 05:52:18 PM UTC, comment #3:

thanks for the quick turn around, mike. and for great replies:

$ /usr/lib64/octave/4.0.3/mkoctfile-4.0.3 -v
mkoctfile, version 4.0.3

>> mkoctfile -v

error: mkoctfile: unable to find the mkoctfile command, Octave installation is incomplete

adding path to location of wrapper mkoctfile.m

>> addpath /usr/share/octave/4.0.3/m/miscellaneous
>> mkoctfile -v

error: mkoctfile: unable to find the mkoctfile command, Octave installation is incomplete

$ dnf install octave-devel
(now there is /usr/bin/mkoctfile-4.0.3 and /usr/bin/mkoctfile linking to it)

>> pkg -forge install linear-algebra

g++: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
configure: error: Could not run /usr/bin/mkoctfile-4.0.3
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for mkoctfile... /usr/bin/mkoctfile-4.0.3

pkg: error running the configure script for linear-algebra.
error: called from 'configure_make' in file /usr/share/octave/4.0.3/m/pkg/private/configure_make.m near line 79, column 9

and i'm presently working on the absence of /usr/lib/rpm/redhat/redhat-hardened-cc1

...

Anonymous
Mon 12 Sep 2016 05:52:11 PM UTC, comment #2:

You need to install octave-devel package.
The file you want is /usr/bin/mkoctfile-4.0.3 (which is a
shell script that eventually calls
/usr/lib64/octave/4.0.3/mkoctfile-4.0.3).

Dmitri.

Dmitri A. Sergatskov <dasergatskov>
Mon 12 Sep 2016 05:38:55 PM UTC, comment #1:

The packages that did install for you consist entirely of .m file functions, no compiled code. The packages that did not install for you contain compiled functions that require both the gcc compiler and the mkoctfile wrapper program.

Is mkoctfile in your PATH (e.g. run "mkoctfile -v" in a bash shell)? Does the mkoctfile function in Octave work (e.g. run "mkoctfile -v" in the Octave command window)? I'm not too familiar with how Octave is packaged for Fedora, but is there an octave-devel package that you may need to install?

The error message seems to be reporting accurately, and the reason those packages did not install is because they contain code that needs to be compiled, while the others do not.

Maybe Fedora packagers or users can chime in here.

Mike Miller <mtmiller>
Project Administrator
Mon 12 Sep 2016 05:29:27 PM UTC, original submission:

O/S: fedora24 4.6.5-300.fc24.x86_64

NOTES: all tasks detailed below were run from cli as root; in the case of the octave tasks, only the command itself e.g.
( >> pkg list )
is given. similarly, in the interests of brevity i have attempted to provide only relevant output -- please feel free to request more complete dumps as needed.

USING dnf, i installed octave
( $ dnf install octave v4.0.3 )
and all of the other packages which presently exist as fc24 rpms (
octave-audio
octave-control
octave-doctest
octave-general
octave-gsl
octave-image
octave-io
octave-lhapdf
octave-miscellaneous
octave-odepkg
octave-optim
octave-signal
octave-struct
octave-symbolic
)
and the following using forge
( >> pkg install -forge {foo} )
(
geometry
mvn
optics
statistics
)

HOWEVER the following packages (all currently maintained) fail to install via forge
(
linear-algebra
ltfat
strings
tsa
)
(note: this list may not be inclusive; there may be other currently maintained packages that similarly fail to install via forge)
with the following error message:
pkg: unable to find the mkoctfile command, Octave installation is incomplete
error: called from '__gripe_missing_component__' in file /usr/share/octave/4.0.3/m/help/__gripe_missing_component__.m near line 53, column 3

APPARENTLY the first line of this error message is incorrect stating that mkoctfile cannot be found [and that/because] the octave installation is incomplete, de facto because the other -forge installations worked, and de jure because the octave rpm contains mkoctfile, which is located at
/usr/lib64/octave/4.0.3/mkoctfile-4.0.3

LIKELY the first line indicates that the install process terminated before mkoctfile had been called (=> overuse of a generic error message?), and it is only the second line of the error message that is meaningful (although so generic as to be of little use?)

IS there some other missing component? it does not appear so: a) i have determined that the dependencies of all four of those packages listed are met [namely, octave >=3.8.0 and general >=1.3.0], and b) i have observed '-forge install' to intelligently list missing dependencies e.g. in attempting to install the package "vrml", upon failure gives a meaningful error message about the unsatisfied dependency on the package "linear-algebra".

other items which may be potentially useful:
- gcc is installed (although i am not attempting to build from source, that is a potential [but significantly undesirable] avenue of solution...)
- i have spent most of the day combing this site and the rest of the web for solutions to this particular problem, without avail; the nearest similar reports appear to involve attempts to perform local builds from source (which i am not doing)

thanks in advance for any suggestions and/or assistances!

cheers, cp

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dasergatskov (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 12 Sep 2016 06:01:32 PM UTCmtmillerStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Mon 12 Sep 2016 05:38:55 PM UTCmtmillerCategoryOctave Forge Package=>Octave Function
      Item GroupInstallation Failure=>Incorrect Result
      StatusNone=>Need Info
      Summaryinstall -forge works for some pkgs, fails for others ("unable to find mkoctfile")=>pkg install -forge fails with "unable to find mkoctfile" on Fedora 24

    Back to the top


    Powered by Savane 3.1-cleanup1