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
[BUG] passing CFLAGS="_latomic" does not solve the standard missing libstdc++ atomic support #10426
Comments
@egbertn I guess you're referring to libc, not libstdc++ (Redis is not written in C++).
|
Linux ... 5.15.27-v8+ #1531 SMP PREEMPT Wed Mar 9 11:36:50 GMT 2022 aarch64 GNU/Linux |
if I execute this... I get 'yes' echo "#include <stdatomic.h>" > foo.c; cc -std=c11 -c foo.c -o foo.o > /dev/null 2>&1; if [ -f foo.o ]; then echo "yes"; rm foo.o; fi; |
@yossigo Great. FYI when I hard code it to '' instead of 'yes' it also fails. |
Describe the bug
We need a way to get atomic support for GCC in the make process. On ARM7 e.g. we get
/usr/bin/ld: server.o: in function
resetServerStats': path/redis-6.2.6/src/server.c:3115: undefined reference to
__atomic_store_8'To reproduce
download redis-6.2.6.
run
make USE_SYSTEMD=yes BUILD_TLS=yes
or try
make USE_SYSTEMD=yes BUILD_TLS=yes CFLAGS="_latomic"
Expected behavior
finished & succeeded build
Additional information
In some architectures, e.g. ARM, support for atomic in libc is missing]
The text was updated successfully, but these errors were encountered: