bugGNU Octave - Bugs: bug #54112, mkoctfile confused by -fFOO...

 
 

bug #54112: mkoctfile confused by -fFOO compiler flag

Submitter:  Sébastien Villemot <svillemot>
Submitted:  Wed 13 Jun 2018 01:44:36 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 13 Jun 2018 05:04:56 PM UTC, comment #1: 

I think this is another symptom of bug #53099. A change was made in mkoctfile (https://hg.savannah.gnu.org/hgweb/octave/rev/298c6a6bd869) to try to treat unknown options as having optional arguments. But that breaks exactly this kind of use case, where an unknown option is followed by more than one source file.

It would be helpful if mkoctfile supported the '--' feature to separate options from arguments, but that also doesn't work here. The only workaround at this point is to add unknown options before known options, or add an unnecessary '-v' or redundant '-g' option after unknown options.

Mike Miller <mtmiller>
Group Member
Wed 13 Jun 2018 01:44:36 PM UTC, original submission:  

With Octave 4.4, when trying to compile to compile two C++ source files into a single .oct file, and adding a compilation flag starting with "-f", I get an error:


$ mkoctfile -v -ffloat-
store conndef.cc connectivity.cc
g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-4.4.0/octave/.. -I/usr/include/octave-4.4.0/octave  -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-b4reVK/octave-4.4.0=. -fstack-protector-strong -Wformat -Werror=format-security  -ffloat-store conndef.cc   connectivity.cc -oconnectivity.o
g++: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.


The problem does not appear with a compilation flag starting with "-W".

Also, this is a regression compared to Octave 4.2.

Sébastien Villemot <svillemot>

 

(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 mtmiller (Posted a comment)
  • -email is unavailable- added by svillemot (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-13 mtmiller Dependencies- Depends on bugs #53099
    2018-06-13 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code