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

Can't compile against musl #1552

Closed
staticfloat opened this issue May 9, 2018 · 4 comments
Closed

Can't compile against musl #1552

staticfloat opened this issue May 9, 2018 · 4 comments

Comments

@staticfloat
Copy link
Contributor

I'm trying to cross-compile OpenBLAS for x86_64-linux-musl, and I'm getting errors like the following:

/opt/x86_64-linux-musl/bin/x86_64-linux-musl-gcc -O2 -DMAX_STACK_ALLOC=2048 -Wall -m64 -DF_INTERFACE_GFORT  -fPIC -DDYNAMIC_ARCH -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=16 -DASMNAME=openblas_get_num_threads -DASMFNAME=openblas_get_num_threads_ -DNAME=openblas_get_num_threads_ -DCNAME=openblas_get_num_threads -DCHAR_NAME=\"openblas_get_num_threads_\" -DCHAR_CNAME=\"openblas_get_num_threads\" -DNO_AFFINITY -I../.. -c openblas_get_num_threads.c -o openblas_get_num_threads.o
memory.c: In function ‘get_num_procs’:
memory.c:191:20: error: missing binary operator before token "("
 #if !__GLIBC_PREREQ(2, 3)

This looks to me like __GLIBC_PREREQ(x,y) isn't defined on musl platforms. Is there some kind of compatibility shim that we need to define?

@martin-frbg
Copy link
Collaborator

Are you building 0.2.20, or current "develop" branch ? This bug was (supposedly) fixed shortly after 0.2.20 but xianyi has not found the time to do another release yet.

@staticfloat
Copy link
Contributor Author

Ah, no, that's true, I am building 0.2.20.

Is there a gitsha that the active developers have "blessed" as a particularly stable release candidate?

@martin-frbg
Copy link
Collaborator

Current f5959f2 should do... in fact if nothing serious comes up that one will probably become 0.3.0

@martin-frbg
Copy link
Collaborator

0.3.0 is out now, so closing here.

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

2 participants