Your message dated Sun, 06 Nov 2016 15:36:00 +0000
with message-id <[email protected]>
and subject line Bug#842032: fixed in leveldb 1.19-2
has caused the Debian Bug report #842032,
regarding leveldb: FTBFS on mips*: 'ReadMemoryBarrier' and 'WriteMemoryBarrier'
was not declared in this scope
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
842032: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842032
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: leveldb
Version: 1.19-1
Severity: serious
Tags: sid + patch
Justification: FTBFS
User: [email protected]
Usertags: mips-patch
Hi,
Package leveldb FTBFS on mips* with following error:
> g++ -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong
> -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I.
> -I./include -std=c++0x -fno-builtin-memcmp -pthread -DOS_LINUX
> -DLEVELDB_PLATFORM_POSIX -DLEVELDB_ATOMIC_PRESENT -DSNAPPY -O2 -g -DNDEBUG
> -fPIC -c db/builder.cc -o out-shared/db/builder.o
> In file included from ./port/port_posix.h:47:0,
> from ./port/port.h:14,
> from ./db/filename.h:14,
> from db/builder.cc:7:
> ./port/atomic_pointer.h: In member function 'void*
> leveldb::port::AtomicPointer::Acquire_Load() const':
> ./port/atomic_pointer.h:248:23: error: 'ReadMemoryBarrier' was not declared
> in this scope
> ReadMemoryBarrier();
> ^
> ./port/atomic_pointer.h: In member function 'void
> leveldb::port::AtomicPointer::Release_Store(void*)':
> ./port/atomic_pointer.h:252:24: error: 'WriteMemoryBarrier' was not declared
> in this scope
> WriteMemoryBarrier();
> ^
> In file included from ./port/port_posix.h:47:0,
> from ./port/port.h:14,
> from ./util/coding.h:17,
> from ./db/dbformat.h:14,
> from ./db/db_impl.h:10,
> from db/db_bench.cc:8:
> ./port/atomic_pointer.h: In member function 'void*
> leveldb::port::AtomicPointer::Acquire_Load() const':
> ./port/atomic_pointer.h:248:23: error: 'ReadMemoryBarrier' was not declared
> in this scope
> ReadMemoryBarrier();
> ^
> ./port/atomic_pointer.h: In member function 'void
> leveldb::port::AtomicPointer::Release_Store(void*)':
> ./port/atomic_pointer.h:252:24: error: 'WriteMemoryBarrier' was not declared
> in this scope
> WriteMemoryBarrier();
> ^
> Makefile:429: recipe for target 'out-shared/db/builder.o' failed
> make[1]: *** [out-shared/db/builder.o] Error 1
build logs:
https://buildd.debian.org/status/fetch.php?pkg=leveldb&arch=mips&ver=1.19-1&stamp=1472467702
https://buildd.debian.org/status/fetch.php?pkg=leveldb&arch=mips64el&ver=1.19-1&stamp=1472468168
https://buildd.debian.org/status/fetch.php?pkg=leveldb&arch=mipsel&ver=1.19-1&stamp=1472467519
The attached patch adds the missing ReadMemoryBarrier and WriteMemoryBarrier
functions for mips*.
With this patch I was able to build leveldb successfully on mips, mipsel and
mips64el.
Regards,
Daniel
--- leveldb-1.19.orig/port/atomic_pointer.h
+++ leveldb-1.19/port/atomic_pointer.h
@@ -226,7 +226,10 @@ inline void WriteMemoryBarrier() {
// MIPS
#elif defined(ARCH_CPU_MIPS_FAMILY) && defined(__GNUC__)
-inline void MemoryBarrier() {
+inline void ReadMemoryBarrier() {
+ __asm__ __volatile__("sync" : : : "memory");
+}
+inline void WriteMemoryBarrier() {
__asm__ __volatile__("sync" : : : "memory");
}
#define LEVELDB_HAVE_MEMORY_BARRIER
@@ -353,6 +356,7 @@ class AtomicPointer {
#undef ARCH_CPU_SPARC_FAMILY
#undef ARCH_CPU_SH_FAMILY
#undef ARCH_CPU_PARISC_FAMILY
+#undef ARCH_CPU_MIPS_FAMILY
} // namespace port
} // namespace leveldb
--- End Message ---
--- Begin Message ---
Source: leveldb
Source-Version: 1.19-2
We believe that the bug you reported is fixed in the latest version of
leveldb, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Laszlo Boszormenyi (GCS) <[email protected]> (supplier of updated leveldb package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 06 Nov 2016 13:44:52 +0000
Source: leveldb
Binary: libleveldb1v5 libleveldb-dev libleveldb-dbg leveldb-doc
Architecture: source all amd64
Version: 1.19-2
Distribution: unstable
Urgency: medium
Maintainer: Alessio Treglia <[email protected]>
Changed-By: Laszlo Boszormenyi (GCS) <[email protected]>
Description:
leveldb-doc - LevelDB documentation
libleveldb-dbg - fast key-value storage library (debug symbols)
libleveldb-dev - fast key-value storage library (development files)
libleveldb1v5 - fast key-value storage library
Closes: 842032
Changes:
leveldb (1.19-2) unstable; urgency=medium
.
* Update source URL.
* Add myself to debian/copyright .
.
[ Daniel Knezevic <[email protected]> ]
* Add the missing ReadMemoryBarrier and WriteMemoryBarrier functions for
mips* (closes: #842032).
Checksums-Sha1:
b55908c417d46fcec1b0107b9c3c85ba32a0c9eb 2139 leveldb_1.19-2.dsc
a227b78db1f626d732eb41cb0ca612b67f70f7d7 10200 leveldb_1.19-2.debian.tar.xz
a305061946c10c0feb73e47cafe15a48d8ed05de 33328 leveldb-doc_1.19-2_all.deb
b32250367aec101f6b426592058aefa4d18e0fed 1311726
libleveldb-dbg_1.19-2_amd64.deb
b890d44532f15e0edd8b71781e5a4845c96cacd2 178276 libleveldb-dev_1.19-2_amd64.deb
b056670306ddedf3bcc50a65d494ac9b4093050d 137942 libleveldb1v5_1.19-2_amd64.deb
Checksums-Sha256:
157ce65b6e3b1099298520eb68d5afba222f01a5d9971d4c81d46e3b54f469a7 2139
leveldb_1.19-2.dsc
ba052159fa7eef2b25a072b8baf198f26fb20e114b7a81faa66c2c26ce52516b 10200
leveldb_1.19-2.debian.tar.xz
62685c396e36def0e9a33bfa2adc63e2dc6738af4239d76cad9b268e63e612e7 33328
leveldb-doc_1.19-2_all.deb
fe196bd73eb0c598c6c349166de60e4183d393f82a0501c1b243afb1cd7bbcf9 1311726
libleveldb-dbg_1.19-2_amd64.deb
59980c26a0b1d47638d4371a155e43b1b7eb6c6ef7f9019e93a1b8f44319942e 178276
libleveldb-dev_1.19-2_amd64.deb
4a6f6e23d085dea4c8a6a1b76b3d5bb19064151d404f7b5d819aeaac3f361756 137942
libleveldb1v5_1.19-2_amd64.deb
Files:
66dad29a60d3c21d00795642c2211d98 2139 database optional leveldb_1.19-2.dsc
66127667549bf8f703da8299bc2dc587 10200 database optional
leveldb_1.19-2.debian.tar.xz
30efed3afb65bd7e9406a1adad10050f 33328 doc optional leveldb-doc_1.19-2_all.deb
dea49b8d93c81deeed19f482d26ee0e6 1311726 debug extra
libleveldb-dbg_1.19-2_amd64.deb
b883daa028211078af823e77f11cb2e9 178276 libdevel optional
libleveldb-dev_1.19-2_amd64.deb
ab6613264f591cf6d1af099b62076441 137942 libs optional
libleveldb1v5_1.19-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCAAGBQJYHzwHAAoJENzjEOeGTMi/KggP/1fzE5maG81aNdTTiOLCeuI/
x07MIReomwHsQNp+eiDHM/lVrOh1uN2Xso+IUMSkhVmx15jIezyXvnAFcxH6SIID
pl8eWcLE6FlsfVIQJ9BgThEof2MEMzhr+90f3c2UaQ9Wb6A5qbbMxmvOSUoJp8wf
oVdyCAfSBKKvThmIrIUCUUF/d9swWvimLpuvQyaH6KcKWZ81UD4TyAWvbNtDiUmu
GHRub/xDVlhiYC1PV0MFjSddCvGb+rqGDzEE3BL11OVNgXMgbeuvrOlCtgnJ+BOT
ltzg0dIzAr4XkUIpDansRvcWpmEuBjAPuPA4bemEqr4nxRyE/LWUzQDv4c35OeyJ
GznxUztmhx4xLiN/a3FS5M9mLCrSKcpk0IXJL6xmeTCgVqH+gVIoSikx9owUGowd
R4jXfqRGXyGEXxb1gWxj5t/0J/08Z1vCyXcxcVyI5Af928a06FC3SkhwYu4DlAI2
4EXNBiz2uePMT8vuOVK9tsojbUwXTYO3mlkjdMRJdV9zRe4t8A+LGEgfMkXyESLI
5dv3xPBQxWjKPtcoDomHiA5+HRbs6+fx69CxmliQFRtLPnbe1dBq/33KAbmwfNrE
VA+ie+lbhhP3aZ7nWb1pfnqyzpJOLYUVfHoQSRkRaIuMNCMwV8vsqAd/88BMyymi
0odzSz5d2MPqpBU/CFHI
=BoJN
-----END PGP SIGNATURE-----
--- End Message ---