[MDEV-19251] RocksDB fails to build on kfreebsd-amd64 due to 'malloc_np.h: No such file' Created: 2019-04-15  Updated: 2023-10-04

Status: Stalled
Project: MariaDB Server
Component/s: Platform Debian, Storage Engine - RocksDB
Affects Version/s: 10.3, 10.4, 10.5, 10.6
Fix Version/s: 10.4, 10.5

Type: Bug Priority: Major
Reporter: Otto Kekäläinen Assignee: Otto Kekäläinen
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Originally reported at: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920994

It's not nice to leave an architecture without a working mysql client library (and a server as well), now that mariadb-10.1 is gone.

}}
In file included from /<<PKGBUILDDIR>>/storage/rocksdb/rocksdb/db/builder.cc:31:
/<<PKGBUILDDIR>>/storage/rocksdb/rocksdb/table/format.h:15:10: fatal error: malloc_np.h: No such file or directory
 #include <malloc_np.h>
          ^~~~~~~~~~~~~
{{


Full log at https://buildd.debian.org/status/fetch.php?pkg=mariadb-10.3&arch=kfreebsd-amd64&ver=1%3A10.3.13-2&stamp=1554671911&raw=0



 Comments   
Comment by Otto Kekäläinen [ 2019-04-18 ]

Any pointers cvicentiu what this could be related to? Or psergey as our RocksDB expert?

Comment by Sergei Golubchik [ 2019-04-19 ]

I would suspect that this should be reported at https://github.com/facebook/rocksdb/issues

We use a non-modified copy of rocksdb, so we don't have any means of applying custom patches to it.

psergey might correct me, if I'm wrong.

Comment by Otto Kekäläinen [ 2019-04-19 ]

Filed now at https://github.com/facebook/rocksdb/issues/5223

Comment by Otto Kekäläinen [ 2020-01-05 ]

Mitigated in Debian with https://salsa.debian.org/mariadb-team/mariadb-10.3/commit/fc8eb8f634f60ddef64ece979d58e09cb5318d62
I will upstream this commit later.

Comment by Otto Kekäläinen [ 2020-06-27 ]

Upstream merged https://github.com/facebook/rocksdb/pull/6992

Comment by Otto Kekäläinen [ 2021-04-04 ]

I guess this is waiting for psergey to import the latest version of RocksDB on 10.5 and then this issue can be verified as fixed and closed.

Comment by Otto Kekäläinen [ 2021-06-01 ]

RocksDB is MariaDB 10.5 is still 5.8, so this issue will probably never be fixed for 10.5 but only in 10.6. Although in 10.6 RocksDB seems also to still be 5.8 and hasn't updated either? According to comment on upstream PR the fix is in RocksDB 6.13.

10.5: bba5e7bc21093d7cfa765e1280a7c4fdcd284288 storage/rocksdb/rocksdb (v5.8-2306-gbba5e7bc2)

10.6: bba5e7bc21093d7cfa765e1280a7c4fdcd284288 storage/rocksdb/rocksdb (v5.8-2306-gbba5e7bc2)

Comment by Otto Kekäläinen [ 2023-10-04 ]

RocksDB in 10.11.5 seems to be a bit newer, but still from 2020:
10.11: bba5e7bc21093d7cfa765e1280a7c4fdcd284288 storage/rocksdb/rocksdb (bba5e7bc)

Generated at Thu Feb 08 08:50:12 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.