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

Compile error OSX 10.10.5 #638

Closed
btracey opened this issue Sep 10, 2015 · 6 comments
Closed

Compile error OSX 10.10.5 #638

btracey opened this issue Sep 10, 2015 · 6 comments

Comments

@btracey
Copy link
Contributor

btracey commented Sep 10, 2015

Downloading from develop

git clone https://github.com/xianyi/OpenBLAS

Then using make leads to this error

symm.c:153:7: warning: unused variable 'mode' [-Wunused-variable]
  int mode  =  BLAS_SINGLE  | BLAS_COMPLEX;
      ^
zimatcopy.c:171:9: error: void function 'cimatcopy_' should not return a value
      [-Wreturn-type]
        return(0); 
        ^     ~~~
1 error generated.
make[1]: *** [cimatco

Clang:

brendan:~/software/OpenBLAS$ clang --version
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

Trying to compile with gcc (make CC=gcc) eventually gives a lot of errors like

../kernel/x86_64/ssymv_L_microk_sandy-2.c:91:no such instruction: `vmovss %xmm2 ,8(%rax)'
../kernel/x86_64/ssymv_L_microk_sandy-2.c:92:no such instruction: `vmovss %xmm3 ,12(%rax)'
../kernel/x86_64/ssymv_L_microk_sandy-2.c:93:no such instruction: `vzeroupper'
make[1]: *** [ssymv_L.o] Error 1
@martin-frbg
Copy link
Collaborator

clang build appears to be assuming -Werror if it balks on void functions erroneously returning a value, while gcc appears to use an assembler that does not support AVX instructions (which gcc/binutils versions ?)

@btracey
Copy link
Contributor Author

btracey commented Sep 10, 2015

gcc --version
gcc (MacPorts gcc48 4.8.4_0) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@martin-frbg
Copy link
Collaborator

#493 seems to suggest you would need binutils >= 2.25 (and the guy building with clang-6.1/gcc-4.9.2
on 10.10.3 in #593 apparently did not hit either of your problems)
That said, the extraneous "return 0" in zimatcopy.c could do with a patch...

@xianyi
Copy link
Collaborator

xianyi commented Sep 10, 2015

OK, fixed the bug. :)

@martin-frbg
Copy link
Collaborator

Heh. I see xianyi just fixed it.

@btracey
Copy link
Contributor Author

btracey commented Sep 10, 2015

Works now. Thanks!

@btracey btracey closed this as completed Sep 10, 2015
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

3 participants