From owner-freebsd-arm@freebsd.org Mon Mar 8 17:36:19 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DFFFD5504FB for ; Mon, 8 Mar 2021 17:36:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DvQVq5vC8z4vWx for ; Mon, 8 Mar 2021 17:36:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BCC234FCA for ; Mon, 8 Mar 2021 17:36:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 128HaJWl043419 for ; Mon, 8 Mar 2021 17:36:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 128HaJoG043418 for freebsd-arm@FreeBSD.org; Mon, 8 Mar 2021 17:36:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Mon, 08 Mar 2021 17:36:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: me@igalic.co X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2021 17:36:19 -0000 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.=