Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBLAS not compiling #370

Closed
mahrz24 opened this issue Feb 18, 2012 · 19 comments
Closed

OpenBLAS not compiling #370

mahrz24 opened this issue Feb 18, 2012 · 19 comments
Assignees

Comments

@mahrz24
Copy link

mahrz24 commented Feb 18, 2012

I constantly get the error while trying to build julia

Makefile:121: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.. Stop.
make[1]: *** [openblas-v0.1alpha2.4/libopenblas.a] Error 2
make: *** [julia-release] Error 2

even though I specified it in the Make.inc, supplied it via make TARGET= and tried to write it directly to the openblas make.inc.
I'm on Arch Linux 3.2.2 x86_64 on a Core i5-2500.

I also suspect that make clean does not really revert the build state. I'm now trying with a fresh clone from git and specifying TARGET before calling make. But even if that works, this should be mentioned in the documentation or solved in a way that avoids the need to recompile for example llvm again.

@ghost ghost assigned ViralBShah Feb 18, 2012
@ViralBShah
Copy link
Member

This is a known openblas build issue, which is fixed on the openblas develop branch. See discussion in:

OpenMathLib/OpenBLAS#69

Until that is available in a release, set your TARGET_OPENBLAS_ARCH to NEHALEM in Make.inc.

@mahrz24
Copy link
Author

mahrz24 commented Feb 18, 2012

I've read the other issue, but the problem was that even after setting the TARGET_OPENBLAS_ARCH in the Make.inc the make process still had the same problem until I cloned it from github again and rerun everything. I thought that's different from the problem that it does not detect the architucure itself.

@kinleyd
Copy link

kinleyd commented Feb 19, 2012

My compile also fails. I tried adding =NEHALEM in the fix mentioned but that didn't help either. I'm basically getting pages of errors on my terminal, and it finally ends with this:

Saving to: lapack-3.4.0.tgz' 2012-02-19 01:03:26 (55.3 KB/s) -lapack-3.4.0.tgz' saved [6127787/6127787]
make[3]: gfortran: Command not found make[3]: * [lsame.o] Error 127 /bin/sh: ./testlsame: not found /bin/sh: ./testslamch: not found /bin/sh: ./testdlamch: not found /bin/sh: ./testsecond: not found /bin/sh: ./testdsecnd: not found /bin/sh: ./testieee: not found /bin/sh: ./testversion: not found make[2]: * [lapack_install] Error 127 make[1]: * [lapack-3.4.0/INSTALL/dlamch.o] Error 2 make: * [julia-release] Error 2

The root error is probably buried in the pages of earlier messages. I'll post it if it might be helpful - let me know.

@kinleyd
Copy link

kinleyd commented Feb 19, 2012

Forgot to mention, I'm on Linux 3.0.0-16-server #28-Ubuntu x86_64

@tapichu
Copy link

tapichu commented Feb 19, 2012

Looks like you forgot to install gfortran.

@kinleyd
Copy link

kinleyd commented Feb 19, 2012

@tapichu: Hmm, I was under the assumption make would pull in all dependencies, as it seems to be doing for the others. Would that be wrong to assume?

@tapichu
Copy link

tapichu commented Feb 19, 2012

I think these are required: make, gcc, g++, gfortran, perl and wget.

And then the rest will be downloaded.

@kinleyd
Copy link

kinleyd commented Feb 19, 2012

@tapichu: Thanks, I was missing gfortran from your list, as well as libncurses5-dev (make complained about missing lncurses and lcurses as well). So I've got Julia on for our first date. :)

@thelongestusername
Copy link

[root@irlab julia]# make
LINK uijulia-release-readline
/usr/bin/ld: cannot find -lncurses
collect2: ld 返回 1
make[1]: *** [/home/huangshaomang/soft/julia/julia-release-readline] 错误 1
make: *** [julia-release] 错误 2
[root@irlab julia]#

what 's the matter then ?

@kinleyd
Copy link

kinleyd commented Feb 27, 2012

~$ sudo apt-get install libncurses5-dev

@thelongestusername
Copy link

thank you for your help. but:
[root@irlab julia]# yum -y install libncurse5-devLoaded plugins: fastestmirror, refresh-packagekitLoading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * extras: mirror.bit.edu.cn * updates: mirror.bit.edu.cnSetting up Install ProcessNo package libncurse5-dev available.Error: Nothing to do[root@irlab julia]#

Date: Mon, 27 Feb 2012 04:08:13 -0800
From: [email protected]
To: [email protected]
Subject: Re: [julia] OpenBLAS not compiling (#370)

~$ sudo apt-get libncurses5-dev


Reply to this email directly or view it on GitHub:
#370 (comment)

@thelongestusername
Copy link

excuse me.is this ok? [root@irlab julia]# yum -y install libncurse*Loaded plugins: fastestmirror, refresh-packagekitLoading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * extras: mirror.bit.edu.cn * updates: mirror.bit.edu.cnSetting up Install ProcessPackage ncurses-libs-5.7-3.20090208.el6.x86_64 already installed and latest versionNothing to do[root@irlab julia]#

Date: Mon, 27 Feb 2012 04:08:13 -0800
From: [email protected]
To: [email protected]
Subject: Re: [julia] OpenBLAS not compiling (#370)

~$ sudo apt-get libncurses5-dev


Reply to this email directly or view it on GitHub:
#370 (comment)

@thelongestusername
Copy link

[root@irlab julia]# make
LINK uijulia-release-readline
LINK ui/webserverjulia-release-webserver
JULIA sys0.ji

make: *** [sys0.ji] 错误 1

now..... ask for help..

@ViralBShah
Copy link
Member

Darn - the pretty printing of the compilation seems to be hiding the error.

-viral

On Mon, Feb 27, 2012 at 5:56 PM, yuletianxia
[email protected]
wrote:

[root@irlab julia]# make
   LINK uijulia-release-readline
   LINK ui/webserverjulia-release-webserver
   JULIA sys0.ji

make: *** [sys0.ji] 错误 1

now..... ask for help..


Reply to this email directly or view it on GitHub:
#370 (comment)

-viral

@ViralBShah
Copy link
Member

BTW, this thread is totally mis-classified. Should not be in this issue.

@thelongestusername
Copy link

e,... so ? we do not known what's the real issue ? and .. so there does not exists an easy way to sovle it?

@ViralBShah
Copy link
Member

Can you do a make cleanall, and then try make debug and post the entire thing to julia-dev? If it still does not print the error messages, then we can try disabling the clean make output and fix it.

In any case, let's take the discussion off this issue page and to the mailing list, since issue #370 is closed.

@ozemoed
Copy link

ozemoed commented Sep 22, 2015

Recently ran into this "Detecting CPU failed" error while building v0.5-dev on an Ubuntu 14.04 machine with a Broadwell processor. Setting OPENBLAS_TARGET_ARCH=HASWELL in Make.inc and running make TARGET=HASWELL worked for me.

@yuyichao
Copy link
Contributor

@ozemoed It should work on OpenBLAS master. We'll need a new release of OpenBLAS (@xianyi) although I think Tony is still trying to figure out some other issues with OpenBLAS's LAPACK.

cmcaine pushed a commit to cmcaine/julia that referenced this issue Nov 11, 2022
Keno pushed a commit that referenced this issue Oct 9, 2023
* global breakpoints

* tests

* test is broken on 1.0/1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants