Date: Mon, 08 Mar 2021 17:36:19 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 254137] releng/13.0: virtio if_vtbe fails to compile on armv7 SOCKIT-BERI Message-ID: <bug-254137-7@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254137 Bug ID: 254137 Summary: releng/13.0: virtio if_vtbe fails to compile on armv7 SOCKIT-BERI Product: Base System Version: 13.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: me@igalic.co i haven't had time to verify STABLE or CURRENT yet, because a single compile takes around 6 hours and poudriere helpfully deletes fails pkgbase builds= =E2=80=A6 anyway, here's is the compile failure: ``` --- if_vtbe.o --- In file included from /poudriere/jails/13-release-armv7/usr/src/sys/dev/beri/virtio/network/if_vt= be.c:84: /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:295:7: error: offsetof of incomplete type 'struct udphdr' case offsetof(struct udphdr, uh_sum): ^ ~~~~~~ /poudriere/jails/13-release-armv7/usr/src/sys/sys/stddef.h:43:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /poudriere/jails/13-release-armv7/usr/src/sys/sys/cdefs.h:472:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:295:23: note: forward declaration of 'struct udphdr' case offsetof(struct udphdr, uh_sum): ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:296:7: error: offsetof of incomplete type 'struct tcphdr' case offsetof(struct tcphdr, th_sum): ^ ~~~~~~ /poudriere/jails/13-release-armv7/usr/src/sys/sys/stddef.h:43:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /poudriere/jails/13-release-armv7/usr/src/sys/sys/cdefs.h:472:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:296:23: note: forward declaration of 'struct tcphdr' case offsetof(struct tcphdr, th_sum): ^ Building /usr/obj/poudriere/jails/13-release-armv7/usr/src/arm.armv7/sys/SOCKIT-BERI= /hints.o /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:342:7: error: use of undeclared identifier 'IPPROTO_TCP' case IPPROTO_TCP: ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:343:43: error: invalid application of 'sizeof' to an incomplete type 'struct tcphdr' if (__predict_false(m->m_len < offset + sizeof(struct tcphd= r))) ^ ~~~~~~~~~~~~~= ~~ /poudriere/jails/13-release-armv7/usr/src/sys/sys/cdefs.h:451:51: note: expanded from macro '__predict_false' #define __predict_false(exp) __builtin_expect((exp), 0) ^ ~~~~ /poudriere/jails/13-release-armv7/usr/src/sys/sys/cdefs.h:472:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:296:23: note: forward declaration of 'struct tcphdr' case offsetof(struct tcphdr, th_sum): ^ Building /usr/obj/poudriere/jails/13-release-armv7/usr/src/arm.armv7/sys/SOCKIT-BERI= /hints.o /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:342:7: error: use of undeclared identifier 'IPPROTO_TCP' case IPPROTO_TCP: ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:343:43: error: invalid application of 'sizeof' to an incomplete type 'struct tcphdr' if (__predict_false(m->m_len < offset + sizeof(struct tcphd= r))) ^ ~~~~~~~~~~~~~= ~~ /poudriere/jails/13-release-armv7/usr/src/sys/sys/cdefs.h:451:51: note: expanded from macro '__predict_false' #define __predict_false(exp) __builtin_expect((exp), 0) ^~~ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:343:57: note: forward declaration of 'struct tcphdr' if (__predict_false(m->m_len < offset + sizeof(struct tcphd= r))) ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:348:7: error: use of undeclared identifier 'IPPROTO_UDP' case IPPROTO_UDP: ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:349:43: error: invalid application of 'sizeof' to an incomplete type 'struct udphdr' if (__predict_false(m->m_len < offset + sizeof(struct udphd= r))) ^ ~~~~~~~~~~~~~= ~~ /poudriere/jails/13-release-armv7/usr/src/sys/sys/cdefs.h:451:51: note: expanded from macro '__predict_false' #define __predict_false(exp) __builtin_expect((exp), 0) ^~~ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:349:57: note: forward declaration of 'struct udphdr' if (__predict_false(m->m_len < offset + sizeof(struct udphd= r))) ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:467:22: error: variable has incomplete type 'struct tcphdr' struct tcphdr *tcp, tcphdr; ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:467:9: note: forward declaration of 'struct tcphdr' struct tcphdr *tcp, tcphdr; ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:469:42: error: invalid application of 'sizeof' to an incomplete type 'struct tcphdr' if (__predict_false(m->m_len < offset + sizeof(struct tcphdr))) { ^ ~~~~~~~~~~~~~~~ /poudriere/jails/13-release-armv7/usr/src/sys/sys/cdefs.h:451:51: note: expanded from macro '__predict_false' #define __predict_false(exp) __builtin_expect((exp), 0) ^~~ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:467:9: note: forward declaration of 'struct tcphdr' struct tcphdr *tcp, tcphdr; ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:470:25: error: invalid application of 'sizeof' to an incomplete type 'struct tcphdr' m_copydata(m, offset, sizeof(struct tcphdr), (caddr_t) &tcphdr); ^ ~~~~~~~~~~~~~~~ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:467:9: note: forward declaration of 'struct tcphdr' struct tcphdr *tcp, tcphdr; ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:475:30: error: incomplete definition of type 'struct tcphdr' hdr->hdr_len =3D offset + (tcp->th_off << 2); ~~~^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:467:9: note: forward declaration of 'struct tcphdr' struct tcphdr *tcp, tcphdr; ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:480:9: error: incomplete definition of type 'struct tcphdr' if (tcp->th_flags & TH_CWR) { ~~~^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:467:9: note: forward declaration of 'struct tcphdr' struct tcphdr *tcp, tcphdr; ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:480:22: error: use of undeclared identifier 'TH_CWR' if (tcp->th_flags & TH_CWR) { ^ /poudriere/jails/13-release-armv7/usr/src/sys/dev/virtio/network/virtio_net= .h:526:32: error: use of undeclared identifier 'IPPROTO_TCP' if (__predict_false(proto !=3D IPPROTO_TCP)) { ^ 13 errors generated. *** [if_vtbe.o] Error code 1 make[2]: stopped in /usr/obj/poudriere/jails/13-release-armv7/usr/src/arm.armv7/sys/SOCKIT-BERI --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254137-7>