bugGNU Octave - Bugs: bug #44754, Octave build failure when...

 
 

bug #44754: Octave build failure when user-supplied CPPFLAGS not understood by Qt moc

Submitter:  Mike Miller <mtmiller>
Submitted:  Tue 07 Apr 2015 03:04:13 AM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  mtmiller
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 07 Apr 2015 03:08:38 AM UTC, comment #1: 
Mike Miller <mtmiller>
Group Member
Tue 07 Apr 2015 03:04:13 AM UTC, original submission:  

This has come up before and was partially fixed (see bug #42839). However, there is still a build failure when the user supplies valid CPPFLAGS that are not recognized by Qt's moc tool.

For example, cpp does accept several -W options, these should be accepted as valid CPPFLAGS but should not be passed to moc. See for example:

https://reproducible.debian.net/rb-pkg/unstable/amd64/octave.html

Excerpt:

( echo '#ifdef HAVE_CONFIG_H'; echo '#include <config.h>'; echo '#endif'; moc-qt4 -DHAVE_CONFIG_H -I. -I..  -Werror=date-time -D_FORTIFY_SOURCE=2   src/dialog.h ) > src/moc-dialog.cc-t
moc: Invalid argument
Usage: moc [options] <header-file>
...


I have a fix for this, just wanted to log the bug so this can be looked up for reference later.

Mike Miller <mtmiller>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-07 mtmiller StatusIn Progress Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code