https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236922
--- Comment #42 from John Hartley <d...@graphica.com.au> --- (In reply to Tommy P from comment #41) Hi Tommy P & Brian V & Vicenzo, the VirtIO network update conflicts with Vincenzo's netmap fix. In my earlier test of VirtIO patch test I had just disable netmap via GENERIC conf file and not applied netmap fix. I have now tested against 12.1 where I first applied the netmap fix. Here is compile error: cc -target x86_64-unknown-freebsd12.1 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.if_vtnet.o -MTif_vtnet.o -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -Werror /usr/src/sys/dev/virtio/network/if_vtnet.c In file included from /usr/src/sys/dev/virtio/network/if_vtnet.c:351: /usr/src/sys/dev/netmap/if_vtnet_netmap.h:94:2: error: implicit declaration of function 'D' is invalid in C99 [-Werror,-Wimplicit-function-declaration] D("freed %d mbufs, %d netmap bufs on %d queues", ^ /usr/src/sys/dev/netmap/if_vtnet_netmap.h:94:2: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] /usr/src/sys/dev/netmap/if_vtnet_netmap.h:297:3: error: implicit declaration of function 'ND' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ND(3,"sent %d packets, hwcur %d", n, nm_i); ^ /usr/src/sys/dev/netmap/if_vtnet_netmap.h:297:3: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] /usr/src/sys/dev/netmap/if_vtnet_netmap.h:306:7: error: implicit declaration of function 'ND' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ND(5, "pure notify ? head %d tail %d nused %d %d", ^ /usr/src/sys/dev/netmap/if_vtnet_netmap.h:340:3: error: implicit declaration of function 'ND' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ND(3, "disable intr, hwcur %d", nm_i); ^ /usr/src/sys/dev/netmap/if_vtnet_netmap.h:343:3: error: implicit declaration of function 'ND' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ND(3, "enable intr, hwcur %d", nm_i); ^ /usr/src/sys/dev/netmap/if_vtnet_netmap.h:297:37: error: variable 'n' is uninitialized when used here [-Werror,-Wuninitialized] ND(3,"sent %d packets, hwcur %d", n, nm_i); ^ /usr/src/sys/dev/netmap/if_vtnet_netmap.h:245:9: note: initialize the variable 'n' to silence this warning u_int n; ^ = 0 /usr/src/sys/dev/netmap/if_vtnet_netmap.h:486:6: error: implicit declaration of function 'RD' is invalid in C99 [-Werror,-Wimplicit-function-declaration] RD(1, "Truncated virtio-net-header, " ^ /usr/src/sys/dev/netmap/if_vtnet_netmap.h:486:6: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] /usr/src/sys/dev/netmap/if_vtnet_netmap.h:498:2: error: implicit declaration of function 'ND' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ND("[B] h %d c %d hwcur %d hwtail %d", ^ /usr/src/sys/dev/netmap/if_vtnet_netmap.h:566:4: error: implicit declaration of function 'D' is invalid in C99 [-Werror,-Wimplicit-function-declaration] D("strange, null netmap ring %d", r); ^ /usr/src/sys/dev/netmap/if_vtnet_netmap.h:662:2: error: implicit declaration of function 'D' is invalid in C99 [-Werror,-Wimplicit-function-declaration] D("max rings %d", sc->vtnet_max_vq_pairs); ^ /usr/src/sys/dev/virtio/network/if_vtnet.c:3411:3: error: implicit declaration of function 'D' is invalid in C99 [-Werror,-Wimplicit-function-declaration] D("try to attach again"); ^ 14 errors generated. *** Error code 1 As sys/dev/netmap/if_vtnet_netmap.h was one of replaced files that was provided with fix, I put back the original 12.1 version (this was not changed or update by Vincenzo's netmap fix). The result was failure in compiling sys/dev/virtio/network/if_vtnet.c Here is compile result: cc -target x86_64-unknown-freebsd12.1 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.if_vtnet.o -MTif_vtnet.o -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -Werror /usr/src/sys/dev/virtio/network/if_vtnet.c /usr/src/sys/dev/virtio/network/if_vtnet.c:3219:6: error: implicit declaration of function 'vtnet_netmap_init_rx_buffers' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (vtnet_netmap_init_rx_buffers(sc)) ^ /usr/src/sys/dev/virtio/network/if_vtnet.c:3219:6: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] /usr/src/sys/dev/virtio/network/if_vtnet.c:3411:3: error: implicit declaration of function 'D' is invalid in C99 [-Werror,-Wimplicit-function-declaration] D("try to attach again"); ^ /usr/src/sys/dev/virtio/network/if_vtnet.c:3411:3: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] 4 errors generated. *** Error code 1 Stop. make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC *** Error code 1 Given that both Brian (virtio committer) and Vincenzo (netmap committer) have both been involved in helping to resolve VirtIO and netmap related issues, it would be great if we could get VirtIO and netmap fixes that worked together. Thanks, John Hartley. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"