Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652098 - =dev-db/redis-4.0.2-r1 fails to build on platforms without builtin support for 8-byte atomics (need -latomic): undefined reference to `__atomic_fetch_add_8'
Summary: =dev-db/redis-4.0.2-r1 fails to build on platforms without builtin support fo...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-31 18:47 UTC by Sergei Trofimovich
Modified: 2018-11-23 23:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-db-redis-4.0.2-r1-build.log (dev-db-redis-4.0.2-r1-build.log,42.29 KB, text/x-log)
2018-03-31 18:47 UTC, Sergei Trofimovich
Details
build.log (redis-4.0.10:20180708-204005.log,88.01 KB, text/plain)
2018-07-08 21:03 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich gentoo-dev 2018-03-31 18:47:22 UTC
Created attachment 526208 [details]
dev-db-redis-4.0.2-r1-build.log

Build fails as:

timberdoodle /dev/shm/portage/dev-db/redis-4.0.2-r1/work/redis-4.0.2 # LANG=C make V=1
cd src && make all
make[1]: Entering directory '/dev/shm/portage/dev-db/redis-4.0.2-r1/work/redis-4.0.2/src'
powerpc-unknown-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu  -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 fpconv.o strbuf.o lua_bit.o lua_cjson.o lua_cmsgpack.o lua_struct.o ../deps/hiredis/libhiredis.a -lm -llua -lm -ldl -pthread -ljemalloc -ldl
networking.o: In function `createClient':
networking.c:(.text+0x1fc): undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:193: redis-server] Error 1
make[1]: Leaving directory '/dev/shm/portage/dev-db/redis-4.0.2-r1/work/redis-4.0.2/src'
make: *** [Makefile:6: all] Error 2

Adding -latomic to LDFLAGS makes it link correctly.
Comment 1 Tomáš Mózes 2018-04-03 11:05:01 UTC
Sergei, would you mind reporting this upstream please?
Comment 2 ernsteiswuerfel 2018-07-08 21:03:19 UTC
Created attachment 538862 [details]
build.log

Same here with dev-db/redis-4.0.10.