I should also add a link to an old github issue, where I think this particular setting originally came from: https://github.com/xianyi/OpenBLAS/issues/983
On Thursday, July 13, 2017 at 7:51:23 PM UTC-4, David Lowry-Duda wrote: > > Hello! > > Firstly, if you are just trying to try Sagemath, you might consider > installing a pre-built binary. See for instance: > http://doc.sagemath.org/html/en/installation/binary.html > The first time I tried sage, I used a prebuilt binary on Ubuntu, and that > worked very well for me. > > Concerning OpenBLAS, you might try to enter the following command in the > same terminal in which you are building sage. > > export OPENBLAS_CONFIGURE="TARGET=ATOM" > > This resolved the problem as reported in this other thread: > https://groups.google.com/forum/#!topic/sage-devel/zQsZsivts0I > > Good luck! > > > On Wednesday, July 12, 2017 at 9:12:18 PM UTC-4, Christopher Phoenix wrote: >> >> 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.