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 binary support centos7 ? #15

Open
huanghuangzym opened this issue Jul 10, 2023 · 3 comments
Open

can binary support centos7 ? #15

huanghuangzym opened this issue Jul 10, 2023 · 3 comments

Comments

@huanghuangzym
Copy link

can make binary build in glibc 2.17 to support centos7?

@imuxin
Copy link
Owner

imuxin commented Jul 10, 2023

I tried to compile in centos7 with gcc4.8 installed. But failed to build, got the error:

running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "c_src/mimalloc/include" "-I" "c_src/mimalloc/src" "-Wall" "-Wextra" "-ftls-model=initial-exec" "-DMI_DEBUG=0" "-o" "/root/ql/kubectl-watch/target/debug/build/libmimalloc-sys-83bf035ad26abe40/out/c_src/mimalloc/src/static.o" "-c" "c_src/mimalloc/src/static.c"
  cargo:warning=In file included from c_src/mimalloc/include/mimalloc-types.h:13:0,
  cargo:warning=                 from c_src/mimalloc/include/mimalloc-internal.h:11,
  cargo:warning=                 from c_src/mimalloc/src/static.c:17:
  cargo:warning=c_src/mimalloc/include/mimalloc-atomic.h:34:23: fatal error: stdatomic.h: No such file or directory
  cargo:warning= #include <stdatomic.h>
  cargo:warning=                       ^
  cargo:warning=compilation terminated.
  exit status: 1

  --- stderr

And I found glibc version must be greater than 4.9.

This file is missing. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58016
It was fixed only in gcc 4.9, as its release notes says (http://gcc.gnu.org/gcc-4.9/changes.html)

References:

@huanghuangzym
Copy link
Author

image
can use quay.io/pypa/manylinux2010_x86_64 to build ?

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