bugGNU Octave - Bugs: bug #57771, [Manual] Compiling Octave with...


bug #57771: [Manual] Compiling Octave with 64-bit indexing

Submitted by:  Juan Pablo Carbajal <juanpi>
Submitted on:  Sat 08 Feb 2020 12:42:15 PM UTC  
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  None Assigned to:  None
Originator Name:  juanpi Open/Closed:  Open
Release:  5.2.0 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.


Sat 08 Feb 2020 09:01:28 PM UTC, comment #2: 

LAPACK - Yeah, looks like the 'NOOPT' variable has been renamed to 'FFLAGS_NOOPT' recently. The docs should probably refer to either variable name, for example "the variable NOOPT or FFLAGS_NOOPT, depending on your version of LAPACK". You don't have to build LAPACK with CMake, I don't, so better to avoid mentioning CMake specific variables (users who prefer CMake probably know what they are doing).

QRUPDATE - When I build QRUPDATE for 64-bit integers, I just pass LDFLAGS as an argument to 'make' to point to wherever the custom BLAS and LAPACK libraries are.

SuiteSparse - Last time I built SuiteSparse version 4.5.5, I only need to pass 'BLAS=-lblas' as an argument to the 'make' command to get it to build the way I want. Does that work for you?

ARPACK - Sure, I ran configure with "--with-blas=blas" and "--with-lapack=lapack", and used LDFLAGS again to specify the library directory, but equivalent. I don't build with "--enable-mpi".

If you want to compare and refine your build rules, both Kai and myself have projects to build Octave and all dependencies with 64-bit Fortran integers.

Mike Miller <mtmiller>
Project Administrator
Sat 08 Feb 2020 12:54:19 PM UTC, comment #1: 

I forgot to add that for ARPACK the configure command is something like

./configure FFLAGS="-g -O2 -fdefault-integer-8" --enable-mpi --with-blas=$prefix64/lib/libblas.a --with-lapack=$prefix64/lib/liblapack.a

not only changing FFLAGS but also the libraries to use. alsoi I would mention chaging the prefix with --prefix

Additionally, should mpi be enabled? --enable-mpi

Juan Pablo Carbajal <juanpi>
Project Member
Sat 08 Feb 2020 12:42:15 PM UTC, original submission:  

Following the instructions in

I found the following

  • BLAS and LAPACK: (version 3.9.0)

   * There is no OPTS nor NOOPT variable in make.inc.example. Only FFLAGS_NOOPT, should the other variables be create? Is it enough to modify this variable?
   * Advise to change installation prefix by modifying the variable CMAKE_INSTALL_PREFIX:PATH in the CMakeCache.txt file

  • QRUPDATE: the variable to change the lib folder BLAS and LAPACK are commented as they are only needed for tests in the Makeconf file


  • SuiteSparse: fails with -lopenblas missing. I assume it shouldn't be looking for openblas, but my recently compiled library, shouldn't the instructions say how to change the library to link with?
Juan Pablo Carbajal <juanpi>
Project Member


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by juanpi (Submitted the item)

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

    Only project members can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.6