Skip to content
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

Build problem: RISC-V , Linux starfive 6.6.20-starfive #41SF SMP Fri Sep 20 17:48:26 CST 2024 riscv64 GNU/Linux #968

Open
SysMan-One opened this issue Nov 29, 2024 · 0 comments

Comments

@SysMan-One
Copy link

Hello!

RISC-V , Linux starfive 6.6.20-starfive #41SF SMP Fri Sep 20 17:48:26 CST 2024 riscv64 GNU/Linux

root@starfive:~/Works/netmap/LINUX# make
test -e /root/Works/netmap/LINUX/ext-drivers/virtio_net.c || wget https://raw.githubusercontent.com/torvalds/linux/v4.9/drivers/net/virtio_net.c -P /root/Works/netmap/LINUX/ext-drivers/
mkdir -p virtio_net.c && cp /root/Works/netmap/LINUX/ext-drivers/virtio_net.c virtio_net.c/
patch --quiet --force -p1 < patches/custom--virtio_net.c--4.9;touch get-virtio_net.cmake -C /lib/modules/6.6.20-starfive/build M=/root/Works/netmap/LINUX EXTRA_CFLAGS='-I/root/Works/netmap/LINUX -I/root/Works/netmap/LINUX -I/root/Works/netmap/LINUX/../sys -I/root/Works/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable -Wno-attributes -Wno-packed-not-aligned -Wno-stringop-truncation -Wno-missing-attributes -Wno-format-truncation -Wno-maybe-uninitialized -Wno-unused-variable -Wno-unused-label -Wno-implicit-fallthrough -Wno-missing-prototypes -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE'  modules CONFIG_NETMAP=m  O_DRIVERS="" NETMAP_DRIVER_SUFFIX=
make[1]: Entering directory '/usr/src/linux-headers-6.6.20-starfive'
  CC [M]  /root/Works/netmap/LINUX/netmap_mem2.o
  CC [M]  /root/Works/netmap/LINUX/netmap_mbq.o
  CC [M]  /root/Works/netmap/LINUX/netmap_legacy.o
  CC [M]  /root/Works/netmap/LINUX/netmap_bdg.o
  CC [M]  /root/Works/netmap/LINUX/netmap_kloop.o
  CC [M]  /root/Works/netmap/LINUX/netmap_vale.o
  CC [M]  /root/Works/netmap/LINUX/netmap_offloadings.o
  CC [M]  /root/Works/netmap/LINUX/netmap_pipe.o
  CC [M]  /root/Works/netmap/LINUX/netmap_monitor.o
  CC [M]  /root/Works/netmap/LINUX/netmap_generic.o
  CC [M]  /root/Works/netmap/LINUX/netmap_null.o
  CC [M]  /root/Works/netmap/LINUX/netmap_common.o
  CC [M]  /root/Works/netmap/LINUX/netmap_linux.o
/root/Works/netmap/LINUX/netmap_linux.c: In function 'nm_os_pt_memdev_iomap':/root/Works/netmap/LINUX/netmap_linux.c:1932:39: error: implicit declaration of function 'ioremap_cache'; did you mean 'ioremap_uc'? [-Werror=implicit-function-declaration]
 1932 |         ptn_dev->pci_mem = *nm_addr = ioremap_cache(mem_paddr, *mem_size);
      |                                       ^~~~~~~~~~~~~
      |                                       ioremap_uc/root/Works/netmap/LINUX/netmap_linux.c:1932:37: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1932 |         ptn_dev->pci_mem = *nm_addr = ioremap_cache(mem_paddr, *mem_size);
      |                                     ^
cc1: some warnings being treated as errors
make[3]: *** [/root/Works/netmap/LINUX/Kbuild:29: /root/Works/netmap/LINUX/netmap_linux.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.6.20-starfive/Makefile:1913: /root/Works/netmap/LINUX] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.20-starfive'
make: *** [netmap.mak:79: netmap.ko] Error 2

Any advise ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant