I got an error building Sage due to a package failing to be built. I have a
Lenovo Thinkpad 11e running Ubuntu Mate 16.04 LTS. Before beginning the
build, I checked that I had all the dependencies and suggested packages
installed beforehand. Then I pulled the code in through git and ran `make`.
I set `MAKE='make -j5 -l4` to make the process a bit faster, since my cpu
has 4 physical cores. Make ran for about 45 minutes or so before it stopped
and reported this error:
Error building Sage.
The following package(s) may have failed to build (not necessarily
during this run of 'make all'):
* package: openblas-0.2.19.p0
log file: /home/christopher/sagemath/sage/logs/pkgs/openblas-0.2.19.p0.log
build directory: /home/christopher/sagemath/sage/local/var/tmp/sage/build/
openblas-0.2.19.p0
So I checked the log file and found a list of errors. The log reports that
detecting the CPU failed and instructs me to set my cpu target explicitly.
make[3]: *** [getarch_2nd] Error 1
Makefile:123: *** OpenBLAS: Detecting CPU failed. Please set TARGET
explicitly,
e.g. make TARGET=your_cpu_target. Please read README for the detail.. Stop.
make[3]: Leaving directory
'/home/christopher/sagemath/sage/local/var/tmp/sage/build/openblas-0.2.19.p0/src'
Error building OpenBLAS
Above this I found a bunch of errors prefaced by `getarch_2nd.c`. To
inexperienced me this looks consistent with what the log report said. It
looks fixable, but this is my first time installing anything from source
and I'm not entirely sure how to proceed. I'm guessing I have to set the
TARGET env variable to my CPU manually for OpenBLAS, but still a bit hazy
on how to do that!
My cpu is an Intel Celeron N2940 with 4 cores and a base clock of 1.83 Ghz,
inxi reports this:
me@thinkpad11e:~$ inxi -C
CPU: Quad core Intel Celeron N2940 (-MCP-) cache: 1024 KB
clock speeds: max: 2249 MHz 1: 1140 MHz 2: 1569 MHz 3: 2245 MHz 4
: 2247 MHz
Hope we can get this figured out soon! I'm eager to try Sagemath.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.