bugGNU Octave - Bugs: bug #65530, (communications) should include...

 
 

bug #65530: (communications) should include <cassert>

Submitter:  Dmitri A. Sergatskov <dasergatskov>
Submitted:  Thu 28 Mar 2024 07:37:32 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 29 Mar 2024 01:07:13 PM UTC, comment #1: 

Thanks, I committed the patch to the Sourceforge package repository.

Nir Krakauer <nir_krakauer>
Thu 28 Mar 2024 07:37:32 PM UTC, original submission:  

On a recent Octave 10 (dev), vompilation fails:

g++ -std=gnu++17 -c  -fPIC -I/usr/local/include/octave-10.0.0/octave/.. -I/usr/local/include/octave-10.0.0/octave -I/usr/local/include  -pthread -fopenmp -ggdb3 -O2 -march=native -mtune=native -mavx -mavx2 -flto=auto    -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H ov-galois.cc -o ov-galois.o

ov-galois.cc: In member function ‘octave_value_list octave_galois::dotref(const octave_value_list&)’:
ov-galois.cc:97:3: error: ‘assert’ was not declared in this scope
   97 |   assert (idx.length () == 1);
      |   ^~~~~~
ov-galois.cc:54:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
   53 | #include "ov-galois.h"
  +++ |+#include <cassert>
   54 |
make: *** [Makefile:44: ov-galois.o] Error 1
make: *** Waiting for unfinished jobs....


mxe-octave patch to make it compile is here:

https://hg.octave.org/mxe-octave/rev/f076b7e562b0

Discussions is here:

https://octave.discourse.group/t/assert-panic-error-and-ndebug/5409/20

Dmitri.
--


Dmitri A. Sergatskov <dasergatskov>

 

(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 nir_krakauer (Posted a comment)
  • -email is unavailable- added by dasergatskov (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code