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

 
 

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

Submitted by:  None
Submitted on:  Thu 03 Nov 2016 12:11:19 AM UTC  
 
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build Failure
Status: Works For MeAssigned to: None
Originator Name: GlenOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.3
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Administrator
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>
Project Administrator
Fri 04 Nov 2016 03:47:56 PM UTC, comment #3:

See also https://bitbucket.org/mtmiller/octave-64-bit-index-builder

Mike Miller <mtmiller>
Project Administrator
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>
Project 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>
Project Administrator
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 File(s):
   
   
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
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by siko1056 (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 11 Nov 2016 08:04:31 PM UTCmtmillerStatusNeed Info=>Works For Me
      Open/ClosedOpen=>Closed
    Thu 03 Nov 2016 05:30:50 PM UTCmtmillerSummaryconfigure does not detect and use Atempts to use wrong libary=>configure does not detect and use OpenBLAS libary with --enable-64
    Thu 03 Nov 2016 05:30:27 PM UTCmtmillerStatusNone=>Need Info
      SummaryAtempts to use wrong libary=>configure does not detect and use Atempts to use wrong libary
    Thu 03 Nov 2016 12:11:19 AM UTCNoneAttached File-=>Added setup_system.sh, #38871

    Back to the top


    Powered by Savane 3.1-cleanup1