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

Fails to build on opensuse 13.1 #6029

Closed
dilawar opened this issue Mar 3, 2014 · 9 comments
Closed

Fails to build on opensuse 13.1 #6029

dilawar opened this issue Mar 3, 2014 · 9 comments
Labels
building Build system, or building Julia or its dependencies system:linux Affects only Linux

Comments

@dilawar
Copy link

dilawar commented Mar 3, 2014

Submodule path 'deps/libuv': checked out 'a37279a16158923480bab1c23fc8430f76a17bed'
Makefile:827: *** "unknown arch for openblas cross-compile".  Stop.
Makefile:43: recipe for target 'julia-release' failed

I had to manually modify the Makefile to continue.

@ivarne
Copy link
Member

ivarne commented Mar 3, 2014

Did you get something that works and passes tests? (make testall)

@dilawar
Copy link
Author

dilawar commented Mar 3, 2014

Nope.

 make testall
    JULIA test/all
    From worker 4:       * core
    From worker 3:       * linalg2
    From worker 2:       * linalg1
    From worker 5:       * keywordargs
    From worker 5:       * numbers
    From worker 4:       * strings
    From worker 4:       * collections
    From worker 4:       * hashing
exception on 3: ERROR: assertion failed: |W \ v - iFv| <= 7.105427357601002e-10
  W \ v = -105.1618383308551
30.132386546280248
103.10478249210304
85.5026629379321
42.8100069344292

  iFv = -105.16183834007155
30.132386548803957
103.10478250114792
85.50266294548928
42.81000693815962

  difference = 9.21644982554426e-9 > 7.105427357601002e-10  From worker 4:       * remote

 in error at error.jl:22
 in test_approx_eq at test.jl:68
 in anonymous at no file:98
 in runtests at /home/dilawar/Work/Others/julia/test/testdefs.jl:5
 in anonymous at multi.jl:822
 in run_work_thunk at multi.jl:590
 in anonymous at task.jl:822
while loading linalg2.jl, in expression starting on line 23
exception on 2: ERROR: assertion failed: |det(capd) - det(apd)| <= 0.002384185791015625
  det(capd) = 1.626428240984628e9
  det(apd) = 1.626428241004378e9
  difference = 0.019750118255615234 > 0.002384185791015625
 in error at error.jl:22
 in test_approx_eq at test.jl:68
 in anonymous at no file:54
 in runtests at /home/dilawar/Work/Others/julia/test/testdefs.jl:5
 in anonymous at multi.jl:822
 in run_work_thunk at multi.jl:590
 in anonymous at task.jl:822
while loading linalg1.jl, in expression starting on line 23
ERROR: assertion failed: |det(capd) - det(apd)| <= 0.002384185791015625
  det(capd) = 1.626428240984628e9
  det(apd) = 1.626428241004378e9
  difference = 0.019750118255615234 > 0.002384185791015625
 in anonymous at task.jl:1311
while loading linalg1.jl, in expression starting on line 23
while loading /home/dilawar/Work/Others/julia/test/runtests.jl, in expression starting on line 34

Makefile:14: recipe for target 'all' failed
make[1]: *** [all] Error 1
Makefile:344: recipe for target 'testall' failed
make: *** [testall] Error 2

I made following changes.

$ git diff
diff --git a/Make.inc b/Make.inc
index 67fddbd..8346263 100644
--- a/Make.inc
+++ b/Make.inc
@@ -14,18 +14,18 @@ USE_SYSTEM_LLVM=0
 USE_SYSTEM_LIBUNWIND=0
 USE_SYSTEM_READLINE=0
 USE_SYSTEM_PCRE=0
-USE_SYSTEM_LIBM=0
+USE_SYSTEM_LIBM=1
 USE_SYSTEM_OPENLIBM=0
 UNTRUSTED_SYSTEM_LIBM=0
 USE_SYSTEM_OPENSPECFUN=0
 USE_SYSTEM_BLAS=0
 USE_SYSTEM_LAPACK=0
 USE_SYSTEM_FFTW=0
-USE_SYSTEM_GMP=0
-USE_SYSTEM_MPFR=0
+USE_SYSTEM_GMP=1
+USE_SYSTEM_MPFR=1
 USE_SYSTEM_ARPACK=0
 USE_SYSTEM_SUITESPARSE=0
-USE_SYSTEM_ZLIB=0
+USE_SYSTEM_ZLIB=1
 USE_SYSTEM_GRISU=0
 USE_SYSTEM_RMATH=0
 USE_SYSTEM_LIBUV=0
diff --git a/deps/Makefile b/deps/Makefile
index 7a70fc1..1a641d6 100644
--- a/deps/Makefile
+++ b/deps/Makefile
@@ -824,7 +824,7 @@ OPENBLAS_BUILD_OPTS += BINARY=32
 else ifeq ($(ARCH),x86_64)
 OPENBLAS_BUILD_OPTS += BINARY=64
 else
-$(error "unknown arch for openblas cross-compile")
+OPENBLAS_BUILD_OPTS += BINARY=32
 endif

 ifeq ($(OS),WINNT)

@dilawar
Copy link
Author

dilawar commented Mar 3, 2014

But I was able to compile (make) and install (sudo make install) it. I am not sure if I should trust this build.

@mschauer
Copy link
Contributor

mschauer commented Mar 3, 2014

This is a 32-bit system? Then the test error is unrelated to your troubles with the build process.

@ivarne
Copy link
Member

ivarne commented Mar 3, 2014

Can you find out what your $(ARCH) variable is set to? (eg change the error to $(error "unknown arch for openblas cross-compile ($(ARCH))"))

Also (unrelated comment), the standard way to change the make variables is to create a file named Make.user in the root of the repository. It will automatically be included and override the variables set in Make.inc

@dilawar
Copy link
Author

dilawar commented Mar 3, 2014

"unknown arch i586 for openblas cross-compile". Stop

@jiahao
Copy link
Member

jiahao commented Mar 3, 2014

@pao
Copy link
Member

pao commented Mar 5, 2014

cc @ronisbr

@ronisbr
Copy link
Member

ronisbr commented Mar 6, 2014

Hi dilawar,

Yesterday I could finally build Julia in openSUSE Build Service (see Issue #5920). However, the problem was related to KVM only and I have never seen your problem since I could always build Julia locally. You can check the rpm spec here https://build.opensuse.org/package/view_file/home:Ronis_BR/julia/julia.spec?expand=1

Maybe it can help you to fix your problem. Otherwise, you can try the package that I built and tell me if everything is working fine. Notice that I set the configurations to build Julia using systems' BLAS instead of openblas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies system:linux Affects only Linux
Projects
None yet
Development

No branches or pull requests

7 participants