fail to build openblas

237 views
Skip to first unread message

Matthew Rennekamp

unread,
Feb 23, 2017, 11:39:09 PM2/23/17
to sage-devel
I downloaded 7.5.1 from source 3x, (2x were git cloning and once from files.sagemath.org), and <make> failed. I can interpret 
Makefile:123: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail..  Stop.
, but then I also tried <make TARGET=x86_64> + <make TARGET=x86> and the build still failed.

My system is running Fedora 25, on my HP laptop w/ an Intel Celeron N2830. (http://ark.intel.com/products/81071/Intel-Celeron-Processor-N2830-1M-Cache-up-to-2_41-GHz).

I'll try the sage-7.5.1-Fedora_24-x86_64 binary to see if that works.... though I could simply use the sagemath package in the Fedora repos.
openblas-0.2.19.p0.log

Steven Trogdon

unread,
Feb 24, 2017, 8:58:06 PM2/24/17
to sage-devel
These are the supported X86/X86_64

a)Intel CPU:
P2
KATMAI
COPPERMINE
NORTHWOOD
PRESCOTT
BANIAS
YONAH
CORE2
PENRYN
DUNNINGTON
NEHALEM
SANDYBRIDGE
HASWELL
ATOM

I guess you could try 'make TARGET=ATOM'. As a last resort './configure --with-blas=atlas && make'. But I wouldn't do this until all the TARGETS had been exhausted. Building atlas may take for ever. See  https://trac.sagemath.org/ticket/21561#comment:5  for amd archs that have problems.

Dima Pasechnik

unread,
Feb 25, 2017, 4:12:08 AM2/25/17
to sage-devel
a quicker option is to use system's Atlas. This is described in the installation manual, where various environment variables are discussed.

Matthew Rennekamp

unread,
Mar 5, 2017, 8:53:06 PM3/5/17
to sage-devel
checking whether we are using the GNU Fortran compiler... no
checking whether  accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/home/mrennekamp/Downloads/sage-7.5.1':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

I had to do a fresh install of my OS. Now I can't get through configuration before building. I get a problem with the C++ preprocessor. Sage then tells me to check the config.log, which I don't know what is/isn't relevant, so I attached it all. 

Does sage-support do this stuff too?
config.log

Dima Pasechnik

unread,
Mar 6, 2017, 2:08:02 AM3/6/17
to sage-devel
it appears that you don't have c++ compiler (command g++) installed.

(installing gcc does not always install all of its parts; you need g++ and gfortran too)

Matthew Rennekamp

unread,
Mar 6, 2017, 4:59:54 PM3/6/17
to sage-devel
I have the gcc package installed (along with gcc-c++ and gcc-fortran). Well, I guess that means I'll use the sagemath package in the repos.

Consider this done...?

Dima Pasechnik

unread,
Mar 6, 2017, 5:09:41 PM3/6/17
to sage-devel
"installed" need not be equal to "working" (your log says that you have problems with them, what sort of problems is harder to say)

Matthew Rennekamp

unread,
Mar 6, 2017, 5:37:24 PM3/6/17
to sage-devel
"installed" need not be equal to "working" (your log says that you have problems with them, what sort of problems is harder to say)

Well, yeah, you're right. I don't think that anything needs to be done in terms of getting other help or doing something about it; thank you (and Steven) for input.
Reply all
Reply to author
Forward
0 new messages