sys/common_ansi.h not found (dde rump)- sculpt for virt qemu riscv
Sebastian Sumpf
Sebastian.Sumpf at genode-labs.com
Mon Mar 13 11:37:36 CET 2023
Hello Pranab,
On 3/13/23 07:47, Pranab Kumar Rout cs21m045 wrote:
> Hello genodians,
> While building sculpt for virt_qemu_riscv, I found that dde_rump port is not
> prepared for RISCV. Taking help from the community, I used the same approach as
> for arm_v8a (aarch64) as found under "repos/dde_rump/lib/mk/spec/arm_64/*" just
> for "spec/riscv" in order to enable rump support for RISC-V.
> I am getting this error. If you find it familiar, kindly help me
> checking library dependencies...
> Library ldso_so_support
> COMPILE so_support.o
> MERGE ldso_so_support.lib.a
> Library ld
> CONVERT ld.symbols.s
> ASSEMBLE ld.symbols.o
> MERGE ld.abi.so <http://ld.abi.so>
> Library base
> MERGE base.lib.a
> Library block_session
> MERGE block_session.lib.a
> Library config
> MERGE config.lib.a
> Library file_system
> MERGE file_system.lib.a
> Library file_system_session
> MERGE file_system_session.lib.a
> Library os
> MERGE os.lib.a
> Library rump_include
> MERGE rump_include.lib.a
> Library rump
> COMPILE __main.o
> In file included from
> /genode/depot/genodelabs/src/rump/2023-03-07-b/src/lib/dde_rump/src/sys/sys/types.h:47,
> from
> /genode/depot/genodelabs/src/rump/2023-03-07-b/src/lib/dde_rump/src/sys/lib/libkern/__main.c:33:
> /genode/depot/genodelabs/bin/riscv/rump/2023-03-07-b.build/var/libcache/rump/include/machine/ansi.h:3:10: fatal error: sys/common_ansi.h: No such file or directory
> 3 | #include <sys/common_ansi.h>
> | ^~~~~~~~~~~~~~~~~~~
When looking at "contrib/dde_rump-<hash>/src/lib/dde_rump_aarch64_backport" I
can see that only "src/sys/arch" [1] is checked out from [2] while
"common_ansi.h" resides under "src/sys/sys/common_ansi.h" [3]. Therefore, you
could adjust [1] to also checkout "src/sys" or "src/sys/sys" and update the
"INC_DIR" and/or symlinks under "dde_rump/lib/mk/spec/riscv" accordingly.
[1] repos/dde_rump/ports/dde_rump.port
[2] https://github.com/justincormack/netbsd-src
[3]
https://github.com/justincormack/netbsd-src/blob/master/src/sys/sys/common_ansi.h
*Note: When adjusting "dde_rump.port" you need to execute
! ./tool/ports/update_hash dde_rump
in order to create a new hash for the port.
Regards,
Sebastian
--
Sebastian Sumpf
Genode Labs
http://www.genode-labs.com · http://genode.org
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
More information about the users
mailing list