-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
RocksDB fails to build on kfreebsd-amd64 due to 'malloc_np.h: No such file' #5223
Comments
This include was explicitly placed in place by an open-source contributor: #1428 . Feel free to send a pull request to do appropriate adjustment to make it work. |
There is no such file as There is no real commit message in d1b1835 explaining the stuff commit messages usually cover. Could you @wjwithagen please elaborate a bit on what that change was, and where the Thanks! |
I am not sure @wjwithagen will respond. I Googled the file and it shows up here: https://github.com/freebsd/freebsd/blob/master/include/malloc_np.h Maybe the right fix is to improve the test here: https://github.com/facebook/rocksdb/blob/master/build_tools/build_detect_platform#L394-L406 to run exactly the same code as in the source files and set ROCKSDB_MALLOC_USABLE_SIZE properly. |
Sorry, it took a while, but it got pushed down in my mailbox and just now I got triggered again... On FreeBSD is the And contains those jemalloc parts that are not required by Posix, like:
And if I remeber correctly was So I guess that kfreebsd triggers the |
If just because of |
@siying Also by itself my submitted patch is not wrong, it just did not take into account dat kFreeBSD announces itself as OS_FREEBSD but does not have the FreeBSD files.... |
@wjwithagen you can resolve this with @ottok in whatever way you agree with. I'll merge the PR you agree on. |
@siying @ottok |
Hello!
If somebody watching this makes an attempt to make a patch, I an happy to
include it in the next upload of MariaDB to Debian experimental.
|
@ottok |
the librocksdb in Debian does actually not even try to build for kFreeBSD (https://buildd.debian.org/status/package.php?p=rocksdb). MariaDB steps into the picture as it is the place where RocksDB is tried to build for all Debian platforms (https://buildd.debian.org/status/package.php?p=mariadb-10.3&suite=sid). The kFreeBSD testing images directory is empty at the moment (https://d-i.debian.org/daily-images/kfreebsd-amd64/) so I am not sure how to spin up a virtual machine with kFreeBSD at the moment etc. Maybe it is so marginal that it does not make sense to invest more time in? |
@ottok |
The original report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920994 was closed via https://salsa.debian.org/mariadb-team/mariadb-10.4/-/blob/master/debian/patches/rocksdb-kfreebsd.patch by @jrtc27 Please review that patch and apply it upstream so we don't have to carry a patched version of RocksDB downstream. |
On systems with the kfreebsd kernel (not Linux) and arch amd64 RocksDB fails to compile with the error message:
Full log can be seen here where MariaDB 10.3 is build on Debian official builders:
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
This was originally reported at:
The fix should be done as upstream as possible, that is in this Facebook/RocksDB repository.
The text was updated successfully, but these errors were encountered: