LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2014, 04:14 AM   #1
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 260

Rep: Reputation: 25
BLAS and LAPACK on Slackware64


I am trying to install Octave on my x86_64 using the source package process. When I run ./configure it gets hung on the BLAS prerequsite (Both Octave 3.6 and 3.8).
I had previously installed BLAS and LAPACK ( i thought) but I was told that I needed x86_64 versions so I snagged some rpm files and got the lib...so and dropped them in /usr/lib64 but still no help. I'm wondering if BLAS and LAPACK are just nightmares meant to torment people. Can anyone provide advice?

BTW: The complaint of configure for Octave 3.8.0 is "found but incompatible with fortran 77 settings" and for Octave 3.6.4, "not found."

Last edited by rdx; 07-10-2014 at 04:19 AM. Reason: addn info
 
Old 07-11-2014, 09:57 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You could try the BLAS, LAPACK, and Octave SlackBuilds at slackbuilds.org. They should all work together. If you'd like to build Octave from source, you will likely need to pass the --with-blas and --with-lapack options to the Octave configure script.

I have four implementations of BLAS and three of LAPACK on my machine. Octave builds against all of them in any combination.
 
1 members found this post helpful.
Old 07-15-2014, 04:23 AM   #3
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 260

Original Poster
Rep: Reputation: 25
no luck from SlackBuild

I tried using the files from SlackBuild but I found them to be odd in that they didn't contain any data files. There were install.sh files which failed to find the appropriate .tgz. The only thing I've been able to do so far is create a blas_LINUX.a from the fortran sources.

Maybe its just me but dependencies have proved really troublesome. Is it possible that something is wrong with the compiler under Slackware64 14.0? Cmake made some vague complaint that makes me wonder.

Last edited by rdx; 07-15-2014 at 04:27 AM. Reason: more
 
Old 07-15-2014, 09:19 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
What data files are you expecting? Where were these install.sh files? The three SlackBuilds in question don't come with any install.sh files. Neither do any of the three packages you're trying to install, IIRC.

blas_LINUX.a is correct if you make no changes to the BLAS make.inc file. The BLAS SlackBuild contains commands for building a shared library if you need or want that.

What dependencies are you having problems with? For which of the three packages are these dependencies causing you problems? What are the exact problems you're having with each of these dependencies?

It's more likely your installation of Slackware is borked than there is something wrong with the compiler collection. Of course, if you posted cmake's "vague complaint" it might be easier to figure out what's going on.

At this point, it sounds like user error more than anything else.
 
Old 07-15-2014, 12:06 PM   #5
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 260

Original Poster
Rep: Reputation: 25
lol, you're probably right, maybe my expectations are too high. After all I have Octave running under Window 8 and silly me, I expect Linux to do better. Let me see if I can capture some real errors and I'll edit them into this message.

Okay, running Octave 3-6-4 ./configure generates lots of output ending with the following.

checking if sgemm_ is being linked in already... no
checking for ATL_xerbla in -latlas... no
checking for sgemm_ in -lblas... yes
checking for dgemm_ in -ldgemm... no
checking for sgemm_ in -lmkl... no
checking for sgemm_ in -framework vecLib... no
checking for sgemm_ in -lcxml... no
checking for sgemm_ in -ldxml... no
checking for sgemm_ in -lscs... no
checking for sgemm_ in -lcomplib.sgimath... no
checking for sgemm_ in -lblas... (cached) yes
checking for sgemm_ in -lessl... no
checking for sgemm_ in -lblas... (cached) yes
checking whether LSAME is called correctly from Fortran... no
checking whether ISAMAX is called correctly from Fortran... no
checking whether SDOT is called correctly from Fortran... no
checking whether DDOT is called correctly from Fortran... no
checking whether CDOTU is called correctly from Fortran... no
checking whether ZDOTU is called correctly from Fortran... no
checking whether the integer size is correct... no
checking if sgemm_ is being linked in already... no
checking for ATL_xerbla in -latlas... (cached) no
checking for sgemm_ in -lblas... (cached) yes
checking for dgemm_ in -ldgemm... (cached) no
checking for sgemm_ in -lmkl... (cached) no
checking for sgemm_ in -framework vecLib... no
checking for sgemm_ in -lcxml... (cached) no
checking for sgemm_ in -ldxml... (cached) no
checking for sgemm_ in -lscs... (cached) no
checking for sgemm_ in -lcomplib.sgimath... (cached) no
checking for sgemm_ in -lblas... (cached) yes
checking for sgemm_ in -lessl... (cached) no
checking for sgemm_ in -lblas... (cached) yes
checking whether LSAME is called correctly from Fortran... no
checking whether ISAMAX is called correctly from Fortran... no
checking whether SDOT is called correctly from Fortran... no
checking whether DDOT is called correctly from Fortran... no
checking whether CDOTU is called correctly from Fortran... no
checking whether ZDOTU is called correctly from Fortran... no
checking whether the integer size is correct... no
configure: error: A BLAS library was detected but found incompatible with your Fortran 77 compiler settings.

Last edited by rdx; 07-15-2014 at 12:12 PM.
 
Old 07-15-2014, 12:59 PM   #6
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 260

Original Poster
Rep: Reputation: 25
linkable blas lib successful

I was able to modify the makefile to generate a .so library. The command looks like:

gcc -march=x86-64 -shared -O2 *.f -o libblas.so -fPIC
 
Old 07-15-2014, 03:25 PM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
I don't use Windows, so I don't know what it takes to get Octave working on that platform. Whether Linux is "better" depends on the definition of "better."

So, does the Octave configure script find your shared library and does the shared library still cause the same error message? You did clean your build directory (or delete and untar Octave) before you tried again with the new BLAS library? I can't tell if you've solved your problem, have the same problem, a new problem.....
 
Old 07-16-2014, 05:47 AM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,809
Blog Entries: 58

Rep: Reputation: Disabled
Quote:
Originally Posted by rdx View Post
I tried using the files from SlackBuild but I found them to be odd in that they didn't contain any data files. There were install.sh files which failed to find the appropriate .tgz.
Doesn't look like you've read the SlackBuild HOWTO page.
 
1 members found this post helpful.
Old 07-25-2014, 03:28 PM   #9
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 260

Original Poster
Rep: Reputation: 25
SlackBuild? My, my, how things have changed. Okay, another bunch of stuff to read. Thanks, and fingers crossed.

No, I haven't solved the problem, still the same complaint that fortran 77 is incompatible. One problem is I'm taking courses that keep me pretty busy so I can't devote the time to solve this immediately. I will post if I make progress or if the error messages change.

Better, wrt Windows means it installs and runs, dependencies are managed within the package. I hate Windows, esp. Win 8 so I really hate it when it is easier. Running Octave from Windows is a sub-optimal solution but the course I'm taking requires it.

Last edited by rdx; 07-25-2014 at 03:35 PM. Reason: incorp other posts
 
Old 07-25-2014, 05:57 PM   #10
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 260

Original Poster
Rep: Reputation: 25
configure: error: A BLAS library was detected but found incompatible with your Fortran 77 compiler settings.

In other words, after using the SlackBuild procedure I get exactly the same result. The one caveat is that I dont have LAPACK installed yet because www.netlib.org/lapack seems to be offline. But I did get and install BLAS using SlackBuild and tried Octave to see wut happened.
 
Old 08-02-2014, 03:49 AM   #11
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 260

Original Poster
Rep: Reputation: 25
Octave-3.8 successfully installed on Slack64 14.1

I finally gave up on Slackware64 14.0 and installed 14.1 instead. With this change I was able to use SlackBuilds to compile Octave. In fact 14.1 uses the newer Octave 3.8 compared to the 3.6 that 14.0 specified. Thanks everyone for your suggestions and comments.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
instruction for installing lapack and lapack-devel on Centos 6.5 yalashloo Linux - Software 15 12-18-2016 02:35 AM
Confused about LAPACK, ATLAS and BLAS statguy Slackware 14 01-29-2014 03:53 AM
Problem about linking LAPACK and BLAS penghcp Linux - Newbie 1 04-26-2012 01:22 AM
lapack/blas linking problem dsmith Linux - Software 1 01-29-2010 07:24 AM
some problem about LAPACK and BLAS ztdep Linux - Software 8 08-03-2005 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration