LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-09-2018, 01:04 PM   #1
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Rep: Reputation: 28
14.2/x86_64 SBo numpy/numpy3 builds cannot find installed Fortran compiler


The gcc-compiler suite version 5.5.0 is installed here; just re-installed all versions. However, neither numpy nor numpy3 will build. They fail almost instantly with this error:

File "/tmp/SBo/numpy-1.14.3/numpy/distutils/fcompiler/gnu.py", line 83, in gnu_version_match
raise ValueError(err + version_string)
ValueError: A valid Fortran version was not found in this string:
stderr is not a tty - where are you?
5.5.0

A web search for the value error returns hits on selecting the fortran compiler for f2py, and nothing relevant to the error encountered here.

I don't understand why the installed gfortran is not seen by these packages. Explanations are needed so I can fix this issue on both numpy versions.
 
Old 10-09-2018, 03:02 PM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
I think the error is coming from the Fortran compiler when numpy tries to query the version. What is the output of

Code:
gfortran -dumpversion
(Run it in the same environment where you are trying to build numpy. For example, if you are doing it over SSH, then run this command over SSH too.) Also, this is a very old thread, but maybe it will be of some help:

https://www.linuxquestions.org/quest...re-you-215918/
 
1 members found this post helpful.
Old 10-10-2018, 08:18 AM   #3
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
Montagdude,

The version of gfortran dumped is 5.5.0 and this is shown on the last line of the failure report. This is what puzzles me: if the ValueError is not finding a valid Fortran version why does the process display the number of the installed Fortran version?

Thanks,

Rich
 
Old 10-10-2018, 09:04 AM   #4
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by rshepard View Post
Montagdude,

The version of gfortran dumped is 5.5.0 and this is shown on the last line of the failure report. This is what puzzles me: if the ValueError is not finding a valid Fortran version why does the process display the number of the installed Fortran version?

Thanks,

Rich
What I think is happening is that when the installer runs the command `gfortran -dumpversion`, for some reason gfortran is first printing "stderr is not a tty - where are you?" and then the version. The "stderr is not a tty" part is confusing the installer, and it is unable to parse the version string correctly. Do you not see that error when you run `gfortran -dumpversion` manually?
 
Old 10-11-2018, 08:28 AM   #5
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by montagdude View Post
Do you not see that error when you run `gfortran -dumpversion` manually?
Yes:

$ gfortran -dumpversion
5.5.0
 
  


Reply

Tags
fortran, numpy



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
Slackware 14.2-x86_64 + Multilib + SBo( x2goserver / x2goclient ) kjhambrick Slackware 4 07-13-2016 04:15 AM
Intel Fortran Compiler - program does not find new version aend Linux - Software 5 05-28-2010 03:03 AM
g77 in gcc 4.1.0 not found only gfortran fortran 95 compiler! I need fortran 77. TheBrick Linux - Software 3 07-04-2007 06:39 AM
how do find out whether i have gcc compiler installed? ashlesha Linux - Newbie 3 06-27-2006 03:42 PM
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:37 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
Open Source Consulting | Domain Registration