[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57263] [octave forge] (nan) fails to build on
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #57263] [octave forge] (nan) fails to build on a system without libblas (Octave built with OpenBLAS) |
Date: |
Mon, 18 Nov 2019 19:45:13 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?57263>
Summary: [octave forge] (nan) fails to build on a system
without libblas (Octave built with OpenBLAS)
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Mon 18 Nov 2019 04:45:11 PM PST
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Build Failure
Status: Patch Submitted
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: other
Operating System: GNU/Linux
_______________________________________________________
Details:
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.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 18 Nov 2019 04:45:11 PM PST Name: nan-blas.patch Size: 2KiB By:
mtmiller
<http://savannah.gnu.org/bugs/download.php?file_id=47888>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57263>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57263] [octave forge] (nan) fails to build on a system without libblas (Octave built with OpenBLAS),
Mike Miller <=