bugGNU Octave - Bugs: bug #57263, [octave forge] (nan) fails to...

 
 

bug #57263: [octave forge] (nan) fails to build on a system without libblas (Octave built with OpenBLAS)

Submitter:  Mike Miller <mtmiller>
Submitted:  Tue 19 Nov 2019 12:45:11 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed 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 21 Nov 2019 08:05:32 PM UTC, comment #3: 

Thanks, works for me now!

Mike Miller <mtmiller>
Group Member
Thu 21 Nov 2019 08:09:46 AM UTC, comment #2: 

patch applied in repo and included in release 3.4.5 available from
   https://pub.ist.ac.at/~schloegl/matlab/NaN/nan-3.4.5.tar.gz




Alois Schlögl <schloegl>
Tue 19 Nov 2019 12:46:55 AM UTC, comment #1: 

Adding package maintainer in cc.

Mike Miller <mtmiller>
Group Member
Tue 19 Nov 2019 12:45:11 AM UTC, original submission:  

The NaN package fails to install on a system that does not have libblas anywhere on the system library search path.

Here's an example build error output


g++ -I/app/include/octave-5.1.0/octave/.. -I/app/include/octave-5.1.0/octave -I/app/include  -pthread -fopenmp -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -grecord-gcc-switches -shared -Wl,-Bsymbolic -L/app/lib -pthread  -o train.mex  tron.o linear.o /tmp/oct-UBecJI.o /tmp/oct-iGWUGf.o   -lgomp -lblas  -L/app/lib  -L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lblas
collect2: error: ld returned 1 exit status
make: *** [Makefile:184: train.mex] Error 1


The attached patch calls mkoctfile to get the value of BLAS_LIBS, which may be "-lblas" on some systems, and may be "-lopenblas" on other systems.

Mike Miller <mtmiller>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #47888:  nan-blas.patch added by mtmiller (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by schloegl (Posted a comment)
  • -email is unavailable- added by mtmiller
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-21 mtmiller StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2019-11-19 mtmiller Carbon-Copy- Added schloegl
    2019-11-19 mtmiller Carbon-CopyRemoved 80942 -
    2019-11-19 mtmiller Attached File- Added nan-blas.patch, #47888

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code