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

Failure to install on Raspberry Pi 4 #150

Open
alejzeis opened this issue Jul 1, 2021 · 0 comments
Open

Failure to install on Raspberry Pi 4 #150

alejzeis opened this issue Jul 1, 2021 · 0 comments

Comments

@alejzeis
Copy link

alejzeis commented Jul 1, 2021

Installation via pip install redislite and python setup.py install (off a fresh clone from master) both fail with the following error while compiling Redis:

gcc   -g -ggdb -rdynamic -o redis-server adlist.o quicklist.o ae.o anet.o dict.o server.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o ziplist.o release.o networking.o util.o object.o db.o replication.o rdb.o t_string.o t_list.o t_set.o t_zset.o t_hash.o config.o aof.o pubsub.o multi.o debug.o sort.o intset.o syncio.o cluster.o crc16.o endianconv.o slowlog.o scripting.o bio.o rio.o rand.o memtest.o crc64.o bitops.o sentinel.o notify.o setproctitle.o blocked.o hyperloglog.o latency.o sparkline.o redis-check-rdb.o redis-check-aof.o geo.o lazyfree.o module.o evict.o expire.o geohash.o geohash_helper.o childinfo.o defrag.o siphash.o rax.o t_stream.o listpack.o localtime.o lolwut.o lolwut5.o ../deps/hiredis/libhiredis.a ../deps/lua/src/liblua.a -lm -ldl -pthread -lrt              
/usr/bin/ld: networking.o: in function `createClient':                                                                              
 /tmp/pip-install-8wo6la69/redislite/redis.submodule/src/networking.c:109: undefined reference to `__atomic_fetch_add_8'              collect2: error: ld returned 1 exit status                                                                                          
 make[1]: *** [Makefile:219: redis-server] Error 1                                                                                   
 make[1]: Leaving directory '/tmp/pip-install-8wo6la69/redislite/redis.submodule/src'                                                
 make: *** [Makefile:9: install] Error 2

This appears to be redis/redis#6275 which was fixed by commit redis/redis@e9564dc

Simply adding to the LD_FLAGS in the redis Makefile appears to fix the issue, which I have verified myself and confirms that redislite does install and function with that change applied to the redis.submodule directory

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

1 participant