bugGNU Octave - Bugs: bug #64507, [octave-forge](signal) package...

 
 

bug #64507: [octave-forge](signal) package fails to install with old compiler

Submitter:  None
Submitted:  Wed 02 Aug 2023 07:16:45 PM UTC
   
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Installation Failure
Status:  Need Info Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * stable
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 11 Aug 2023 08:35:36 AM UTC, comment #6: 

This is a 64 bit version.

Charles Praplan <charprap>
Thu 10 Aug 2023 04:52:08 PM UTC, comment #5: 

For the cl2bp_lib output, they look like warnings only so would not have stopped installation.

Is this a 32 bit or 64 bit version of octave installed?


John Donoghue <lostbard>
Group Member
Wed 09 Aug 2023 03:03:10 PM UTC, comment #4: 

I also experienced a strange behavior updating the signal package to version 1.4.5.
My configuration: Windows 10, Octave 8.2.0

However, as far as I could see, the new version is installed and is working.

>> pkg update -global signal
cl2bp_lib.cc: In function 'int local_max(const MallocArray<double>&, int, MallocArray<int>&)':
cl2bp_lib.cc:65:21: warning: array subscript [-2147483647, -1] is outside array bounds of 'void []' [-Warray-bounds]
   65 |   xx[0] = xx[n + 1] = -BIG_NUMBER;
In file included from cl2bp_lib.cc:27:
In member function 'void MallocArray<T>::resize(int) [with T = double]',
    inlined from 'MallocArray<T>::MallocArray(int) [with T = double]' at cl2bp_lib.h:65:24,
    inlined from 'int local_max(const MallocArray<double>&, int, MallocArray<int>&)' at cl2bp_lib.cc:63:29:
cl2bp_lib.h:58:23: note: at offset [-17179869176, -8] into object of size [0, 9223372036854775807] allocated by '__builtin_malloc'
   58 |     ptr = (T *)realloc(ptr, length * sizeof(T));
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
cl2bp_lib.cc: In function 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)':
cl2bp_lib.cc:446:25: warning: array subscript [-2147483648, -1] is outside array bounds of 'void [17179869176]' [-Warray-bounds]
  446 |         diff_lo = l[ik] - x1[ik];
In member function 'void MallocArray<T>::resize(int) [with T = double]',
    inlined from 'MallocArray<T>::MallocArray(int) [with T = double]' at cl2bp_lib.h:65:24,
    inlined from 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)' at cl2bp_lib.cc:271:28:
cl2bp_lib.h:58:23: note: at offset [-17179869184, -8] into object of size [32, 17179869176] allocated by '__builtin_malloc'
   58 |     ptr = (T *)realloc(ptr, length * sizeof(T));
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
cl2bp_lib.cc: In function 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)':
cl2bp_lib.cc:438:26: warning: array subscript [-2147483648, -1] is outside array bounds of 'void [17179869176]' [-Warray-bounds]
  438 |         diff_up = x1[ik] - u[ik];
In member function 'void MallocArray<T>::resize(int) [with T = double]',
    inlined from 'MallocArray<T>::MallocArray(int) [with T = double]' at cl2bp_lib.h:65:24,
    inlined from 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)' at cl2bp_lib.cc:266:29:
cl2bp_lib.h:58:23: note: at offset [-17179869184, -8] into object of size [32, 17179869176] allocated by '__builtin_malloc'
   58 |     ptr = (T *)realloc(ptr, length * sizeof(T));
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
cl2bp_lib.cc: In function 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)':
cl2bp_lib.cc:417:20: warning: array subscript [-2147483648, -1] is outside array bounds of 'void [17179869176]' [-Warray-bounds]
  417 |         if ( x1[j] < l[j] + 10*eps ) {
In member function 'void MallocArray<T>::resize(int) [with T = double]',
    inlined from 'MallocArray<T>::MallocArray(int) [with T = double]' at cl2bp_lib.h:65:24,
    inlined from 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)' at cl2bp_lib.cc:266:29:
cl2bp_lib.h:58:23: note: at offset [-17179869184, -8] into object of size [32, 17179869176] allocated by '__builtin_malloc'
   58 |     ptr = (T *)realloc(ptr, length * sizeof(T));
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
cl2bp_lib.cc: In function 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)':
cl2bp_lib.cc:398:20: warning: array subscript [-2147483648, -1] is outside array bounds of 'void [17179869176]' [-Warray-bounds]
  398 |         if ( x1[j] > u[j] - 10*eps ) {
In member function 'void MallocArray<T>::resize(int) [with T = double]',
    inlined from 'MallocArray<T>::MallocArray(int) [with T = double]' at cl2bp_lib.h:65:24,
    inlined from 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)' at cl2bp_lib.cc:266:29:
cl2bp_lib.h:58:23: note: at offset [-17179869184, -8] into object of size [32, 17179869176] allocated by '__builtin_malloc'
   58 |     ptr = (T *)realloc(ptr, length * sizeof(T));
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
cl2bp_lib.cc: In function 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)':
cl2bp_lib.cc:357:20: warning: array subscript [-2147483647, -1] is outside array bounds of 'void [8589934588]' [-Warray-bounds]
  357 |           okmin[i] = okmin[i + 1];
In member function 'void MallocArray<T>::resize(int) [with T = int]',
    inlined from 'MallocArray<T>::MallocArray(int) [with T = int]' at cl2bp_lib.h:65:24,
    inlined from 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)' at cl2bp_lib.cc:278:29:
cl2bp_lib.h:58:23: note: at offset [-8589934588, -4] into object of size [16, 8589934588] allocated by '__builtin_malloc'
   58 |     ptr = (T *)realloc(ptr, length * sizeof(T));
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
cl2bp_lib.cc: In function 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)':
cl2bp_lib.cc:351:20: warning: array subscript [-2147483647, -1] is outside array bounds of 'void [8589934588]' [-Warray-bounds]
  351 |           okmax[i] = okmax[i + 1];
In member function 'void MallocArray<T>::resize(int) [with T = int]',
    inlined from 'MallocArray<T>::MallocArray(int) [with T = int]' at cl2bp_lib.h:65:24,
    inlined from 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)' at cl2bp_lib.cc:279:29:
cl2bp_lib.h:58:23: note: at offset [-8589934588, -4] into object of size [16, 8589934588] allocated by '__builtin_malloc'
   58 |     ptr = (T *)realloc(ptr, length * sizeof(T));
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
cl2bp_lib.cc: In function 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)':
cl2bp_lib.cc:526:28: warning: array subscript [-2147483647, -1] is outside array bounds of 'void [8589934588]' [-Warray-bounds]
  526 |           kmin[i - l_kmax] = kmin[i - l_kmax + 1];
In member function 'void MallocArray<T>::resize(int) [with T = int]',
    inlined from 'MallocArray<T>::MallocArray(int) [with T = int]' at cl2bp_lib.h:65:24,
    inlined from 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)' at cl2bp_lib.cc:275:28:
cl2bp_lib.h:58:23: note: at offset [-8589934588, -4] into object of size [16, 8589934588] allocated by '__builtin_malloc'
   58 |     ptr = (T *)realloc(ptr, length * sizeof(T));
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
cl2bp_lib.cc: In function 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)':
cl2bp_lib.cc:522:19: warning: array subscript [-2147483647, -1] is outside array bounds of 'void [8589934588]' [-Warray-bounds]
  522 |           kmax[i] = kmax[i + 1];
In member function 'void MallocArray<T>::resize(int) [with T = int]',
    inlined from 'MallocArray<T>::MallocArray(int) [with T = int]' at cl2bp_lib.h:65:24,
    inlined from 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)' at cl2bp_lib.cc:274:28:
cl2bp_lib.h:58:23: note: at offset [-8589934588, -4] into object of size [16, 8589934588] allocated by '__builtin_malloc'
   58 |     ptr = (T *)realloc(ptr, length * sizeof(T));
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
cl2bp_lib.cc: In function 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)':
cl2bp_lib.cc:515:16: warning: array subscript [-2147483647, -1] is outside array bounds of 'void [40016]' [-Warray-bounds]
  515 |         rhs[i] = rhs[i + 1];
In member function 'void MallocArray<T>::resize(int) [with T = double]',
    inlined from 'MallocArray<T>::MallocArray(int) [with T = double]' at cl2bp_lib.h:65:24,
    inlined from 'bool cl2bp(MallocArray<double>&, int, double, double, double*, double*, int, double, int, void (*)(void*), void*)' at cl2bp_lib.cc:281:30:
cl2bp_lib.h:58:23: note: at offset [-17179869176, -8] into object of size [32, 40016] allocated by '__builtin_malloc'
   58 |     ptr = (T *)realloc(ptr, length * sizeof(T));
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
For information about changes from previous versions of the signal package, run 'news signal'.


Charles Praplan <charprap>
Fri 04 Aug 2023 12:30:27 PM UTC, comment #3: 

Without more information, I am guessing a conflict in what was used to compile octave vs the package ?

Does it also occur trying to install other packages that need to compile sunck as the sockets package?

John Donoghue <lostbard>
Group Member
Wed 02 Aug 2023 09:05:35 PM UTC, comment #2: 

Works for me:


octave:1> ver
----------------------------------------------------------------------
GNU Octave Version: 8.2.1 (hg id: 17529acb5248)
GNU Octave License: GNU General Public License
Operating System: Linux 6.2.0-26-generic #26-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 10 23:39:54 UTC 2023 x86_64
----------------------------------------------------------------------
Package Name  | Version | Installation directory
--------------+---------+-----------------------
     control  |   3.6.1 | /home/uu1/.local/share/octave/api-v58/packages/control-3.6.1
      signal  |   1.4.5 | /home/uu1/.local/share/octave/api-v58/packages/signal-1.4.5
octave:2> pkg test signal
Testing functions in package 'signal':

<...deleted...>

Summary:

  PASS                             1020
  FAIL                                0
  XFAIL (expected failure)            1


gcc version 12.3.0 (Ubuntu 12.3.0-1ubuntu1~23.04)

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 02 Aug 2023 08:27:51 PM UTC, comment #1: 

what compiler is being used? What version of octave?

If you run as:

pkg install -verbose -forge signal


It may provide more info on what being done at the time of the failure

John Donoghue <lostbard>
Group Member
Wed 02 Aug 2023 07:16:45 PM UTC, original submission:  

The signals package fails to install with error

lto1: fatal error: bytecode stream in file ‘mmfir.o’ generated with GCC compiler older than10.0

on ubuntu 23.04

Anonymous

 

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

    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 project members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-08-02 lostbard StatusNone Need Info
        SummarySignals package fails to install [octave-forge](signal) package fails to install with old compiler

    Back to the top

    Powered by Savane 3.12