-
Notifications
You must be signed in to change notification settings - Fork 128
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
linking errors in rumprun-bake when building against newer netbsd sources #129
Comments
Hi,
May I suggest you to read that thread the following thread in the
mailing list?
https://www.freelists.org/post/rumpkernel-users/How-to-update-srcnetbsd-status-of-rumpkernel-and-related-questions
I think some parts are relevant.
|
sundbry
added a commit
to arctype-co/src
that referenced
this issue
Sep 10, 2021
Some rump components (libpci_virtio, libvirtio_if_vioif, libvirtio_vioscsi) include their CFDRIVER_DECL(s) via their SRCS. When they link in component_simple to initialize their RUMP_COMPONENT, their CFDRIVER_DECLs are redefined in ioconf.c. This causes linker errors when trying to load these libraries. See: rumpkernel/rumprun#129 Add a preprocessor directive _IO_CONF_NO_CFDRIVER_DECL which will disable redefining the CFDRIVER_DECLs in component_simple when defined.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build process
I Built rumprun with GCC 8.2.0 after applying #127.
I also had to apply #128, as NetBSD seems to have dropped the const qualifier on
_lwp_park
in NetBSD/src@ff4eff8.Updating src-netbsd
I used buildrum.sh/checkout.sh to generate an updated
src-netbsd
repository at https://github.com/fabianfreyer/rumpkernel-src-netbsd/tree/all-src. The CVSDATE of the checkout wasNBSRC_CVSDATE="20180401 0436UTC"
Note: I had to add
--allow-unrelated-histories
to thegit merge
commands, since git >= 2.9 won't merge those otherwise (not sure if I should open a PR for this?):Output
$ x86_64-rumprun-netbsd-gcc helloer.c -o helloer-rumprun
$ rumprun-bake hw_generic helloer-rumprun.bin helloer-rumprun
The text was updated successfully, but these errors were encountered: