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

compile error by run make in LINUX directory #922

Open
wchen8416 opened this issue May 22, 2023 · 4 comments
Open

compile error by run make in LINUX directory #922

wchen8416 opened this issue May 22, 2023 · 4 comments

Comments

@wchen8416
Copy link

/netmap/LINUX/virtio_net.c/virtio_net_src.c:1403:19: error: initialization of ‘void (*)(struct net_device *, struct ethtool_ringparam *, struct kernel_ethtool_ringparam *, struct netlink_ext_ack )’ from incompatible pointer type ‘void ()(struct net_device *, struct ethtool_ringparam *)’ [-Werror=incompatible-pointer-types]
1403 | .get_ringparam = virtnet_get_ringparam,
| ^~~~~~~~~~~~~~~~~~~~~

why?
thanks for your help.

@wchen8416
Copy link
Author

[root@localhost LINUX]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/10.3.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,lto --enable-plugin --enable-initfini-array --disable-libgcj --without-isl --without-cloog --enable-gnu-indirect-function --build=x86_64-linux-gnu --with-stage1-ldflags=' -Wl,-z,relro,-z,now' --with-boot-ldflags=' -Wl,-z,relro,-z,now' --disable-bootstrap --with-tune=generic --with-arch_32=x86-64 --disable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.3.1 (GCC)
[root@localhost LINUX]#
[root@localhost LINUX]# uname -a
Linux localhost.localdomain 5.10.0-136.31.0.107.oe2203sp1.x86_64 #1 SMP Thu May 11 10:59:16 CST 2023 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost LINUX]#

@brvtalcake
Copy link

brvtalcake commented Jun 17, 2023

I just ran into the same issue on :


        `:+ssssssssssssssssss+:`           ---------------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 23.04 x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: Z690 UD 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 6.2.0-20-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 1 day, 18 hours, 15 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 3508 (dpkg), 25 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.2.15 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1920x1080 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 44.1 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: 12th Gen Intel i3-12100 (8) @ 5.500GHz 
    .ossssssssssssssssssdMMMNysssso.       GPU: Intel Alder Lake-S GT1 [UHD Graphics 730] 
      -+sssssssssssssssssyyyssss+-         Memory: 6942MiB / 15752MiB 
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-. 

Configured with a regular ./configure.

Maybe the code downloaded from the Linux kernel is not up to date anymore (or something like that) ?

@giuseppelettieri
Copy link
Collaborator

The virtio_net driver doesn't build at the moment. If you don't need it you can disable it with

./configure --no-drivers=virtio_net.c

@Emjayen
Copy link

Emjayen commented Jun 23, 2023

Is there any ETA on virtio_net being fixed?

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

4 participants