bugGNU Octave - Bugs: bug #57231, [octave forge] (nan) Build failure...

 
 

bug #57231: [octave forge] (nan) Build failure with Octave 5.1.0

Submitter:  Rafael Laboissière <rlaboiss>
Submitted:  Thu 14 Nov 2019 06:16:58 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 14 Nov 2019 06:55:21 AM UTC, comment #1: 

This was pointed out to me just a day ago, and I filed bug #57228 about the same problem :) Closing this bug report as a duplicate. I'll attach your patch to that report as well.

Mike Miller <mtmiller>
Group Member
Thu 14 Nov 2019 06:16:58 AM UTC, original submission:  

The new version of the nan package (3.4.3) does not compile against Octave 5.1.0, with g++ 9.2.1 on a Debian GNU/Linux unstable system.  Here is an excerpt of the build log:


[snip]
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:195: histo_mex.mex] Error 1
make[1]: *** Waiting for unfinished jobs....
g++ -I/usr/include/octave-5.1.0/octave/.. -I/usr/include/octave-5.1.0/octave  -pthread -fopenmp -g -O2 -fdebug-prefix-map=/var/data/rlaboiss/debian/PKGS/octave-nan/octave-nan=. -fstack-protector-strong -Wformat
-Werror=format-security -shared -Wl,-Bsymbolic -pthread -Wl,--no-undefined   -o covm_mex.mex  /tmp/oct-zVHE78.o   -lgomp  -L/usr/lib/x86_64-linux-gnu  -Wl,-z,relro
/usr/bin/ld: /tmp/oct-zVHE78.o: in function `mexFunction':
./src/covm_mex.cpp:95: undefined reference to `mxIsDouble'
/usr/bin/ld: ./src/covm_mex.cpp:98: undefined reference to `mexErrMsgTxt'
/usr/bin/ld: ./src/covm_mex.cpp:99: undefined reference to `mxGetM'
/usr/bin/ld: ./src/covm_mex.cpp:100: undefined reference to `mxGetN'
/usr/bin/ld: ./src/covm_mex.cpp:131: undefined reference to `mexCallMATLAB'
/usr/bin/ld: ./src/covm_mex.cpp:135: undefined reference to `mxDestroyArray'
/usr/bin/ld: ./src/covm_mex.cpp:153: undefined reference to `mxCreateDoubleMatrix'
/usr/bin/ld: ./src/covm_mex.cpp:154: undefined reference to `mxGetPr'
/usr/bin/ld: ./src/covm_mex.cpp:157: undefined reference to `mxCreateDoubleMatrix'
/usr/bin/ld: ./src/covm_mex.cpp:158: undefined reference to `mxGetPr'
/usr/bin/ld: ./src/covm_mex.cpp:803: undefined reference to `mxGetNumberOfElements'
/usr/bin/ld: ./src/covm_mex.cpp:95: undefined reference to `mxIsComplex'
/usr/bin/ld: ./src/covm_mex.cpp:95: undefined reference to `mxIsSparse'
/usr/bin/ld: ./src/covm_mex.cpp:96: undefined reference to `mxGetPr'
/usr/bin/ld: ./src/covm_mex.cpp:104: undefined reference to `mxGetNumberOfElements'
/usr/bin/ld: ./src/covm_mex.cpp:118: undefined reference to `mxGetNumberOfElements'

/usr/bin/ld: ./src/covm_mex.cpp:135: undefined reference to `mxDestroyArray'
/usr/bin/ld: ./src/covm_mex.cpp:153: undefined reference to `mxCreateDoubleMatrix'
/usr/bin/ld: ./src/covm_mex.cpp:154: undefined reference to `mxGetPr'
/usr/bin/ld: ./src/covm_mex.cpp:157: undefined reference to `mxCreateDoubleMatrix'
/usr/bin/ld: ./src/covm_mex.cpp:158: undefined reference to `mxGetPr'
/usr/bin/ld: ./src/covm_mex.cpp:803: undefined reference to `mxGetNumberOfElements'
/usr/bin/ld: ./src/covm_mex.cpp:95: undefined reference to `mxIsComplex'
/usr/bin/ld: ./src/covm_mex.cpp:95: undefined reference to `mxIsSparse'
/usr/bin/ld: ./src/covm_mex.cpp:96: undefined reference to `mxGetPr'
/usr/bin/ld: ./src/covm_mex.cpp:104: undefined reference to `mxGetNumberOfElements'
/usr/bin/ld: ./src/covm_mex.cpp:118: undefined reference to `mxGetNumberOfElements'
/usr/bin/ld: ./src/covm_mex.cpp:131: undefined reference to `mexCallMATLAB'
/usr/bin/ld: ./src/covm_mex.cpp:135: undefined reference to `mxDestroyArray'
/usr/bin/ld: ./src/covm_mex.cpp:145: undefined reference to `mxGetM'
/usr/bin/ld: ./src/covm_mex.cpp:146: undefined reference to `mxGetN'
/usr/bin/ld: ./src/covm_mex.cpp:149: undefined reference to `mexErrMsgTxt'
/usr/bin/ld: ./src/covm_mex.cpp:91: undefined reference to `mexErrMsgTxt'
/usr/bin/ld: ./src/covm_mex.cpp:133: undefined reference to `mxGetScalar'
/usr/bin/ld: ./src/covm_mex.cpp:76: undefined reference to `mexPrintf'
/usr/bin/ld: ./src/covm_mex.cpp:77: undefined reference to `mexPrintf'
/usr/bin/ld: ./src/covm_mex.cpp:124: undefined reference to `mexErrMsgTxt'
/usr/bin/ld: ./src/covm_mex.cpp:805: undefined reference to `mxGetClassID'
/usr/bin/ld: ./src/covm_mex.cpp:107: undefined reference to `mxIsDouble'
/usr/bin/ld: ./src/covm_mex.cpp:107: undefined reference to `mxIsComplex'
/usr/bin/ld: ./src/covm_mex.cpp:111: undefined reference to `mexErrMsgTxt'
/usr/bin/ld: ./src/covm_mex.cpp:816: undefined reference to `mxGetData'
/usr/bin/ld: ./src/covm_mex.cpp:108: undefined reference to `mxGetPr'
/usr/bin/ld: ./src/covm_mex.cpp:829: undefined reference to `mxGetData'
/usr/bin/ld: ./src/covm_mex.cpp:825: undefined reference to `mxGetData'
/usr/bin/ld: ./src/covm_mex.cpp:821: undefined reference to `mxGetData'
/usr/bin/ld: ./src/covm_mex.cpp:810: undefined reference to `mxGetData'
/usr/bin/ld: ./src/covm_mex.cpp:807: undefined reference to `mxGetData'
/usr/bin/ld: ./src/covm_mex.cpp:837: undefined reference to `mexPrintf'
/usr/bin/ld: ./src/covm_mex.cpp:122: undefined reference to `mxGetPr'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:195: covm_mex.mex] Error 1
make[1]: Leaving directory '/var/data/rlaboiss/debian/PKGS/octave-nan/octave-nan/src'


The patch attached to this bug report fixes the problem.

Rafael Laboissière <rlaboiss>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-14 mtmiller Dependencies- Depends on bugs #57228
    2019-11-14 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
    2019-11-14 rlaboiss Attached File- Added drop-no-undefined-ldflags.patch, #47864

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code