bugGNU Octave - Bugs: bug #49520, configure does not detect and use...

 
 

bug #49520: configure does not detect and use OpenBLAS libary with --enable-64

Submitter:  None
Submitted:  Thu 03 Nov 2016 12:11:19 AM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Works For Me Assigned to:  None
Originator Name:  Glen Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.3
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 10 Nov 2016 01:51:45 AM UTC, comment #5: 

Absent any response from the OP in the next couple of days, I would say close it.

It sounds like the OP is saying that running ./configure --enable-64 did not automatically use the OpenBLAS library, but running ./configure --enable-64 --with-blas=openblas did, which I find strange and a possible bug if it were true. There is no config.log or configure output here to confirm what it is that configure tested and what exactly failed or succeeded, so we have no way of proceeding.

Mike Miller <mtmiller>
Group Member
Tue 08 Nov 2016 11:40:18 PM UTC, comment #4: 

The Octave Manual in Appendix E.3  Compiling Octave with 64-bit Indexing is very clear that all of Octave's dependent libraries have to be re-built with 64-bit indices if Octave itself is built with --enable-64.  And it really isn't configure's fault if it chooses the wrong library.  When you want to use a specific path to a library then you need to tell configure that by using --with-blas=XXX

Is there anything else, or can this report be closed?

Rik <rik5>
Group administrator
Fri 04 Nov 2016 03:47:56 PM UTC, comment #3: 
Mike Miller <mtmiller>
Group Member
Fri 04 Nov 2016 07:18:49 AM UTC, comment #2: 

In addition to comment #1, I also had my trouble making Octave's dependencies to use 64-bit indicies. Here is the collection of my experience with this topic:

https://github.com/siko1056/GNU-Octave-enable-64/blob/master/Makefile

Kai Torben Ohlhus <siko1056>
Group Member
Thu 03 Nov 2016 05:30:27 PM UTC, comment #1: 

Did you build OpenBLAS with 64-bit indexing? The build script that you provided doesn't look like it does that.

Can you also provide either the stdout of Octave's configure or the full config.log file from the failed configure run? Octave's configure script should check for a working "-lopenblas" as the preferred option when no --with-blas options are given.

Mike Miller <mtmiller>
Group Member
Thu 03 Nov 2016 12:11:19 AM UTC, original submission:  

Computer: VMware Workstation 11.1.4 build-3848939 Running on Windows 10
Operating System: Kubuntu 16.04
Build Commands:
./configure --prefix=/usr --enable-64 << Error Here
make CFLAGS=-O CXXFLAGS=-O LDFLAGS=
make install

Prior to Attempting to build Octave I build openBLAS as 64 bit installed to /usr/lib/libopenblas.so, Late analysis of my system showed that there was also an existing 32 bit version of BLAS (unknown vendor) install as /usr/lib/libblas.so

When I run configure, it attempts to us /usr/lib/libblas.so despite it being incomparable with the --enable-64 flag I passed resulting in a Error stating that BLAS doesn't support 64-bit indexing.

This error can be bypassed using the command:
./configure --prefix=/usr --enable-64 --with-blas=libopenblas

However I believe that the configure script should be selecting the compatible version of BLAS automatically i.e. rather than choose a version of BLAS and then later check it its compatible these step should be combined so that if the first chosen BLAS Fails, it proceeds to try the next version of BLAS

Note: On another computer running the same operating system overall build script works with out using the --with-blas flag
     Computer: Dell OptiPlex 9020
     Operating System: Kubuntu 16.04
This would indicate that the configure script is able to find and use libopenblas, its simply choosing to use a different version on my VMware instances.

P.S. I've attached the (unmodified) System Setup Script I've been using, its been used to setup the systems immediately after installing the OS.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #38871:  setup_system.sh added by None (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-11 mtmiller StatusNeed Info Works For Me
        Open/ClosedOpen Closed
    2016-11-03 mtmiller Summaryconfigure does not detect and use Atempts to use wrong libary configure does not detect and use OpenBLAS libary with --enable-64
    2016-11-03 mtmiller StatusNone Need Info
        SummaryAtempts to use wrong libary configure does not detect and use Atempts to use wrong libary
    2016-11-03 None Attached File- Added setup_system.sh, #38871

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code