bugGNU Octave - Bugs: bug #57092, Build fails due to...

 
 

bug #57092: Build fails due to OCTAVE_DEPRECATED macro

Submitter:  Lars Kindermann <larskindermann>
Submitted:  Mon 21 Oct 2019 05:10:43 AM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 21 Oct 2019 05:50:57 PM UTC, comment #5: 

That solved the problem for me.

Lars Kindermann <larskindermann>
Mon 21 Oct 2019 04:47:43 PM UTC, comment #4: 
John W. Eaton <jwe>
Group administrator
Mon 21 Oct 2019 03:57:46 PM UTC, comment #3: 


~$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609


Lars Kindermann <larskindermann>
Mon 21 Oct 2019 03:51:05 PM UTC, comment #2: 

From the docs, looks like enumerator attributes were first supported in GCC 6.

Mike Miller <mtmiller>
Group Member
Mon 21 Oct 2019 03:42:09 PM UTC, comment #1: 

What version of GCC?

Simple fix is to just remove the deprecation warnings for the enum values.

John W. Eaton <jwe>
Group administrator
Mon 21 Oct 2019 05:10:43 AM UTC, original submission:  

On Ubuntu 16.04 with freshly cloned repository
build fails with this error:


  ...
  LEX      libinterp/parse-tree/lex.cc
  CXX      libinterp/parse-tree/libinterp_parse_tree_libparse_tree_la-oct-lvalue.lo
  CXX      libinterp/parse-tree/libinterp_parse_tree_libparse_tree_la-oct-parse.lo
In file included from ./config.h:2833:0,
                 from src/main-cli.cc:24:
./oct-conf-post.h:36:41: error: expected ‘}’ before ‘__attribute__’
 #    define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__ ("[" #ver "]: " msg)))
                                         ^
./liboctave/util/quit.h:204:3: note: in expansion of macro ‘OCTAVE_DEPRECATED’
   OCTAVE_DEPRECATED (6, "the 'octave_no_exception' enum value is an obsolete internal value; any uses should be removed")
   ^
In file included from ./liboctave/util/lo-utils.h:35:0,
                 from ./liboctave/array/Array.h:41,
                 from ./liboctave/util/str-vec.h:32,
                 from libinterp/octave.h:31,
                 from src/main-cli.cc:39:
./liboctave/util/quit.h:205:3: error: expected unqualified-id before ‘=’ token
   = 0,
   ^
./liboctave/util/quit.h:303:1: error: expected declaration before ‘}’ token
 }
 ^
Makefile:23662: die Regel für Ziel „src/src_octave_cli-main-cli.o“ scheiterte



Lars Kindermann <larskindermann>

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by larskindermann (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
    2019-10-21 mtmiller StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2019-10-21 jwe StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code