not sure which variant you are running: I think (double check this) but I think freebsd has better rust support. I am working up an openbsd variant myself on an old thinkpad but I havenât been able to compile anything important because Iâve working through pfsense and getting network routing setup correctly.
Prelim research for OBSD found semarie is working porting the rustLang but check the issues section as things are on the edge here.
wish I had more for you and Iâm excited to see what you end up with
I successfully run grin node and grin wallet in FreeBSD system. Unfortunately OpenBSD do not support rustup. From now and on my public node will run in FreeBSD.
Can you please explain me what is this? And how can I fix it? I am really close to run grin in OpenBSD.
Compiling croaring-sys v0.4.6
The following warnings were emitted during compilation:
warning: In file included from CRoaring/roaring.c:2:
warning: CRoaring/roaring.h:41:10: fatal error: 'malloc.h' file not found
warning: #include <malloc.h> // this should never be needed but there are some reports that it is needed.
warning: ^~~~~~~~~~
warning: 1 error generated.
error: failed to run custom build command for `croaring-sys v0.4.6`
Iâm not an openbsd user so I can merely guess. Based on some quick googling, It might have something to do with this Re: UPDATE: security/keepassxc . If itâs not available and stdlib.h should be used instead, Iâm not sure what a âquickfixâ would be for it apart from perhaps forking the lib, changing the roaring code (potentially on multiple places) and then pointing to this forked dependency instead. This is just a guess and a potential direction on what to look at if youâre comfortable with these things. If youâre not, the simplest thing would be to build on a more common system i.e. a Debian derivative, which is also what Iâd consider if I hit the error and this was an option.
20221116 23:53:24.393 INFO grin_util::logger - log4rs is initialized, file level: Info, stdout level: Warn, min. level: Info
20221116 23:53:24.393 INFO grin - Using configuration file at /home/unix/.grin/main/grin-server.toml
20221116 23:53:24.393 INFO grin - This is Grin version 5.2.0-alpha.2 (git v5.2.0-alpha.2), built for x86_64-unknown-openbsd by rustc 1.63.0.
20221116 23:53:24.393 INFO grin - Chain: Mainnet
20221116 23:53:24.393 INFO grin - Accept Fee Base: 500000
20221116 23:53:24.393 INFO grin - Future Time Limit: 300
20221116 23:53:24.393 INFO grin - Feature: NRD kernel enabled: false
20221116 23:53:24.393 WARN grin::cmd::server - Starting GRIN in UI modeâŚ
20221116 23:53:24.394 INFO grin_servers::server - Starting server, genesis block: 40adad0aec27
20221116 23:53:24.483 INFO grin_servers::server - Starting rest apis at: 127.0.0.1:3413
20221116 23:53:24.483 WARN grin_api::handlers - Starting HTTP Node APIs server at 127.0.0.1:3413.
20221116 23:53:24.483 WARN grin_api::handlers - HTTP Node listener started.
20221116 23:53:24.483 INFO grin_servers::server - Starting dandelion monitor: 127.0.0.1:3413
20221116 23:53:24.484 WARN grin_servers::server - Grin server started.
20221116 23:53:24.484 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: None
20221116 23:53:30.278 INFO grin_store::lmdb - Resized database from 1048576 to 134217728
20221116 23:53:30.468 ERROR grin_p2p::peers - Could not save received peer addresses: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.506 ERROR grin_p2p::peers - Could not save connected peer address: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.506 ERROR grin_p2p::peers - Could not save connected peer address: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.512 ERROR grin_p2p::peers - Could not save connected peer address: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.513 ERROR grin_p2p::peers - Could not save connected peer address: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.513 ERROR grin_p2p::peers - Could not save connected peer address: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.603 ERROR grin_p2p::peers - Could not save received peer addresses: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.613 ERROR grin_p2p::peers - Could not save received peer addresses: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.617 ERROR grin_p2p::peers - Could not save received peer addresses: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.635 ERROR grin_p2p::peers - Could not save received peer addresses: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.638 ERROR grin_p2p::peers - Could not save received peer addresses: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.825 ERROR grin_p2p::peers - Could not save connected peer address: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.845 ERROR grin_p2p::peers - Could not save connected peer address: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.912 ERROR grin_p2p::peers - Could not save connected peer address: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:30.961 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.026 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.088 ERROR grin_p2p::peers - Could not save received peer addresses: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:31.092 ERROR grin_p2p::peers - Could not save received peer addresses: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:31.162 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.179 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.233 ERROR grin_p2p::peers - Could not save received peer addresses: Store(LmdbErr(Error::Code(-30798, âMDB_NOTFOUND: No matching key/data pair foundâ)))
20221116 23:53:31.246 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.330 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.408 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.469 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.494 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.555 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.575 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.635 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.690 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.713 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.769 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:31.800 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:40.681 INFO grin_servers::common::adapters - Received 32 block headers from 213.239.217.14:3414
20221116 23:53:40.723 ERROR grin_servers::sync::syncer - unexpected error: StoreErr(NotFoundErr(âHEADâ), âchain headâ)
An OpenBSD developer answered. The message is here.
" If thatâs using lmdb built from upstream source code rather than the package, it wonât have the patch to force MDB_WRITEMAP which is needed on OpenBSD where you canât mix file and mmap access without syncs (no unified buffer cache). It has downsides too, less safety against application bugs (LMDB: LMDB API) but thereâs no alternative."