https://bugzilla.redhat.com/show_bug.cgi?id=1340829
Bug ID: 1340829
Summary: FTBFS on secondary arches
Product: Fedora
Version: rawhide
Component: erlang-eleveldb
Assignee: lemenkov(a)gmail.com
Reporter: dan(a)danny.cz
QA Contact: extras-qa(a)fedoraproject.org
CC: erlang(a)lists.fedoraproject.org, lemenkov(a)gmail.com
Blocks: 467765 (ZedoraTracker), 922257
(ARM64,F-ExcludeArch-aarch64), 1071880 (PPCTracker)
Current erlang-eleveldb 2.2 fails to build on all secondary arches due
...
+ make
cc -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX
-DLEVELDB_PLATFORM_POSIX -DSNAPPY -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -march=z9-109 -mtune=z10
-fPIC -MM -E -MT port/port_posix.d -MT port/port_posix.o -MF port/port_posix.d
port/port_posix.cc
In file included from ./port/port_posix.h:45:0,
from port/port_posix.cc:5:
./port/atomic_pointer.h:143:2: error: #error Please implement AtomicPointer for
this platform.
#error Please implement AtomicPointer for this platform.
^~~~~
...
The problem seems to be caused by the bundled leveldb 2.0.19 where it checks
for <cstdatomic> in build_detect_platform while recent gcc 5.x or 6.x are
providing <atomic>. See eg.
https://github.com/google/leveldb/blob/master/build_detect_platform#L180
links to failed builds are eg.
http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2244725
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3419255
http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=3573239
Version-Release number of selected component (if applicable):
erlang-eleveldb-2.2.19-1.fc25
but seems all version >= 2.2 have the same problem
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=467765
[Bug 467765] Fedora for System z (s390): Bug Tracker
https://bugzilla.redhat.com/show_bug.cgi?id=922257
[Bug 922257] Tracker for ARM64 support
https://bugzilla.redhat.com/show_bug.cgi?id=1071880
[Bug 1071880] (PPCTracker) Fedora for PowerPC architectures
(ppc64,ppc64le): Bug Tracker
--
You are receiving this mail because:
You are on the CC list for the bug.