[From nobody Thu Jun 25 05:55:19 2020
Received: from grosjo.net ([94.130.37.163])
 by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux))
 id 1hvAmU-0000wm-UQ
 for openwrt-devel@lists.openwrt.org; Wed, 07 Aug 2019 01:30:25 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=grosjo.net; 
 s=dkim;
 h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:
 Content-Type:MIME-Version:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=YWUZzuGleDT1+phgzZ18PQyA2PVKc7LKa8i+9O55GNg=; b=aP7awKHozyDGavkeSBHRjrf8rL
 IB7lZmutPzOfSyJQcvNAhx+uUbW1sRqwRGg88kzc/IaKsWiR5oyRl+aD17KWiII/Y9LtJ5OowrF7/
 k0C5q3bz0KMU8fezJDzcAESgqb7HimNI830xS/NrTQRz8R637T0BUbouSnAto//rccwI=;
Received: from localhost ([127.0.0.1] helo=grosjo.net)
 by grosjo.net with esmtp (Exim 4.92.1)
 (envelope-from &lt;jom@grosjo.net&gt;)
 id 1hvAmN-0004tA-Jp; Wed, 07 Aug 2019 01:30:17 +0000
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary=&quot;=_a1baf04542b4a10d8cfc4f4dc061965e&quot;
Date: Wed, 07 Aug 2019 09:30:15 +0800
From: Joan Moreau &lt;jom@grosjo.net&gt;
To: Rosen Penev &lt;rosenp@gmail.com&gt;
Cc: =?UTF-8?Q?Petr_=C5=A0tetiar?= &lt;ynezz@true.cz&gt;, OpenWrt Development List
 &lt;openwrt-devel@lists.openwrt.org&gt;
Subject: Re: [OpenWrt-Devel] package mt76 fails to compile under certain
 configuration [Was: Compilation error on master / mt7620]
In-Reply-To: &lt;3b4d7396132017a9253bedb2cc3862b2@grosjo.net&gt;
References: &lt;mailman.13754.1564703810.19300.openwrt-devel@lists.openwrt.org&gt;
 &lt;20190802103653.GP74752@meh.true.cz&gt;
 &lt;2a6780799fb7077e5d731337bcfadbe0@grosjo.net&gt;
 &lt;b13b66b94fb80ac49631e0e2dc971c60@grosjo.net&gt;
 &lt;2cec2c33f72eb4cc8d33e0a18289d099@grosjo.net&gt;
 &lt;mailman.14120.1564793695.19300.openwrt-devel@lists.openwrt.org&gt;
 &lt;CAKxU2N9hwSx3w0SLfJQBH_GMyJUwKLNU-k7sgjCCnB1ZgHy0Gw@mail.gmail.com&gt;
 &lt;5ec256e502e0298841b973a58ba9a3d2@grosjo.net&gt;
 &lt;3b4d7396132017a9253bedb2cc3862b2@grosjo.net&gt;
User-Agent: Roundcube Webmail/1.4-git
Message-ID: &lt;1e49744bc6d328ed0fa8284789d16aea@grosjo.net&gt;
X-Sender: jom@grosjo.net
X-GJ: Sent from localhost
X-Spam-Score: -2.9 (--)
X-Spam-Report: Spam detection software, running on the system &quot;gjserver&quot;,
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 admin@grosjo.net for details.
 Content preview:  Hello How to solve this ? Thank you so much 
 Content analysis details:   (-2.9 points, 3.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
 0.0 HTML_MESSAGE           BODY: HTML included in message
X-GJ-SMTP: h_FROM = Joan Moreau &lt;jom@grosjo.net&gt; RPATH=jom@grosjo.net
 SENDERADR= jom@grosjo.net:
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20190806_183023_435697_2B83C6A6 
X-CRM114-Status: GOOD (  13.38  )
X-Spam-Score: -0.2 (/)
X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary:
 Content analysis details:   (-0.2 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [94.130.37.163 listed in list.dnswl.org]
 0.0 HTML_MESSAGE           BODY: HTML included in message
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
 valid
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
 author's domain
 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
 envelope-from domain

--=_a1baf04542b4a10d8cfc4f4dc061965e
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8;
 format=flowed

Hello=20

How to solve this ?=20

Thank you so much=20

On 2019-08-03 20:58, Joan Moreau wrote:

&gt; To narrow down the problem, my mt76 device (zbt826) runs fines on OpenWrt=
 19.07-SNAPSHOT r10233-4a7a8d93fa (including DebugFS and JFFS)=20
&gt;=20
&gt; On current 19.07, DebugFS makes the compilation fails, and here the detai=
ls of JFFS2 dmesg=20
&gt;=20
&gt; dmesg | grep -i jffs=20
&gt;=20
&gt; [ 0.000000] Kernel command line: console=3DttyS0,115200 rootfstype=3Dsqua=
shfs,jffs2
&gt; [ 0.753768] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRI=
ORITY) (c) 2001-2006 Red Hat, Inc.
&gt; [ 9.720839] jffs2: Error: unknown compressor &quot;zlib&quot;
&gt; [ 9.726302] mount_root: failed to mount -t jffs2 /dev/mtdblock6 /tmp/over=
lay: Invalid argument
&gt; [ 9.743698] mount_root: switching to jffs2 overlay
&gt; [ 9.748830] mount_root: switching to jffs2 failed - fallback to ramoverla=
y
&gt;=20
&gt; On 2019-08-03 10:18, Joan Moreau wrote:=20
&gt;=20
&gt; well maybe=20
&gt;=20
&gt; Bottom line : mt76 is not usable in master or 19.07.=20
&gt;=20
&gt; So far=20
&gt;=20
&gt; - DebugFS creates compilation error=20
&gt;=20
&gt; - SquashFS does not include LZO and creates compilation errors=20
&gt;=20
&gt; On 2019-08-03 09:57, Rosen Penev wrote:=20
&gt; On Fri, Aug 2, 2019 at 5:55 PM Joan Moreau via openwrt-devel
&gt; &lt;openwrt-devel@lists.openwrt.org&gt; wrote:=20
&gt; The sender domain has a DMARC Reject/Quarantine policy which disallows
&gt; sending mailing list messages using the original &quot;From&quot; header.
&gt;=20
&gt; To mitigate this problem, the original message has been wrapped
&gt; automatically by the mailing list software.
&gt;=20
&gt; ---------- Forwarded message ----------
&gt; From: Joan Moreau &lt;jom@grosjo.net&gt;
&gt; To: &quot;Petr =C5=A0tetiar&quot; &lt;ynezz@true.cz&gt;
&gt; Cc: openwrt-devel@lists.openwrt.org
&gt; Bcc:
&gt; Date: Sat, 03 Aug 2019 08:54:45 +0800
&gt; Subject: Re: [OpenWrt-Devel] package mt76 fails to compile under certain =
configuration [Was: Compilation error on master / mt7620]
&gt;=20
&gt; In an attempt to force LZO with JFFS2, I clicked on &quot;mksquash&quot; in menucon=
fig.
&gt;=20
&gt; I reach the follwoing error
&gt;=20
&gt; mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtu=
ne=3D24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=3Dunused-but=
-set-variable -Wno-error=3Dunused-result -msoft-float -mips16 -minterlink-m=
ips16 -iremap/usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/squashfs=
-tools-4.3:squashfs-tools-4.3 -Wformat -Werror=3Dformat-security -fstack-pr=
otector -D_FORTIFY_SOURCE=3D1 -Wl,-z,now -Wl,-z,relro -I/usr/src/openwrt/4g=
/staging_dir/target-mipsel_24kc_musl/usr/include -I/usr/src/openwrt/4g/stag=
ing_dir/target-mipsel_24kc_musl/include -I/usr/src/openwrt/4g/staging_dir/t=
oolchain-mipsel_24kc_gcc-7.4.0_musl/usr/include -I/usr/src/openwrt/4g/stagi=
ng_dir/toolchain-mipsel_24kc_gcc-7.4.0_musl/include/fortify -I/usr/src/open=
wrt/4g/staging_dir/toolchain-mipsel_24kc_gcc-7.4.0_musl/include -I. -D_FILE=
_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=3D\&quot;gzip=
\&quot; -Wall -DGZIP_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -c -o mksq=
uashfs.o mksquashfs.c
&gt; mksquashfs.c: In function 'create_inode':
&gt; mksquashfs.c:996:24: error: called object 'major' is not a function or fu=
nction pointer
&gt; unsigned int major =3D major(buf-&gt;st_rdev);
&gt; ^~~~~
&gt; mksquashfs.c:996:16: note: declared here
&gt; unsigned int major =3D major(buf-&gt;st_rdev);
&gt; ^~~~~
&gt;=20
&gt; Something is very broken in mt76 That error is related to squashfs-tools,=
 not mt76:
&gt; https://downloads.openwrt.org/snapshots/faillogs/mips_24kc/packages/squas=
hfs-tools/compile.txt=20
&gt;=20
&gt; On 2019-08-02 23:12, Joan Moreau wrote:
&gt;=20
&gt; Additionally, I get the following error in the image generated (master) w=
ithout the debugfs option then to allow compilation
&gt;=20
&gt; [ 8.936247] jffs2: Error: unknown compressor &quot;zlib&quot;
&gt; [ 8.941939] mount_root: failed to mount -t jffs2 /dev/mtdblock6 /tmp/over=
lay: Invalid argument
&gt; [ 8.951033] mount_root: overlay filesystem has not been fully initialized=
 yet
&gt; [ 8.958979] mount_root: switching to jffs2 overlay
&gt; [ 8.964114] mount_root: switching to jffs2 failed - fallback to ramoverla=
y
&gt;=20
&gt; On 2019-08-02 21:37, Joan Moreau wrote:
&gt;=20
&gt; Removing &quot;debug fs&quot; in compilation options removes the problem.
&gt;=20
&gt; So there is something very awkward in the Makefile
&gt;=20
&gt; On 2019-08-02 20:28, Joan Moreau wrote:
&gt;=20
&gt; attached
&gt;=20
&gt; On 2019-08-02 18:36, Petr =C5=A0tetiar wrote:
&gt;=20
&gt; Joan Moreau via openwrt-devel &lt;openwrt-devel@lists.openwrt.org&gt; [2019-08-=
02 07:56:41]:
&gt;=20
&gt; Hello,
&gt;=20
&gt; I reach the following error while compiling my MT7620/ZBT826-16M on
&gt; master (no error on 18.06) :
&gt;=20
&gt; CC [M]
&gt; /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620=
/mt76-2019-07-22-75656a45/mt7603/pci.o
&gt; &lt;command-line&gt;:0:37: error: redeclaration of enumerator
&gt; 'IEEE80211_HW_REPORTS_TX_ACK_STATUS'
&gt; &lt;command-line&gt;:0:37: note: in definition of macro
&gt; 'IEEE80211_HW_TX_STATUS_NO_AMPDU_LEN'
&gt; In file included from
&gt; /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620=
/mt76-2019-07-22-75656a45/mt7603/../mt76.h:27:0,
&gt; from
&gt; /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620=
/mt76-2019-07-22-75656a45/mt7603/mt7603.h:8,
&gt; from
&gt; /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620=
/mt76-2019-07-22-75656a45/mt7603/pci.c:7:
&gt; /usr/src/openwrt/4g/staging_dir/target-mipsel_24kc_musl/usr/include/mac80=
211/net/mac80211.h:2293:2:
&gt; note: previous definition of 'IEEE80211_HW_REPORTS_TX_ACK_STATUS' was
&gt; here
&gt; IEEE80211_HW_REPORTS_TX_ACK_STATUS,
&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&gt; make[6]: *** [scripts/Makefile.build:327:
&gt; /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620=
/mt76-2019-07-22-75656a45/mt7603/pci.o]
&gt; Error 1
&gt; make[5]: *** [scripts/Makefile.build:585:
&gt; /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620=
/mt76-2019-07-22-75656a45/mt7603]
&gt; Error 2
&gt; make[4]: *** [Makefile:1532:
&gt; _module_/usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramip=
s_mt7620/mt76-2019-07-22-75656a45]
&gt; Error 2
&gt;=20
&gt; Can you help ?
&gt;=20
&gt; the problem is probably in this compile check[1], so please do following:
&gt;=20
&gt; make package/mt76/{clean,prepare}
&gt; sed -i 's;TMP&quot;;TMP&quot; 2&gt; $(TOPDIR)/meh.log;' build_dir/target-mipsel_24kc_m=
usl/linux-ramips_mt7620/mt76-2019-07-22-75656a45/mt7603/Makefile
&gt; make package/mt76/compile
&gt; scripts/diffconfig.sh &gt;&gt; meh.log; gzip meh.log
&gt;=20
&gt; and send meh.log.gz file as attachment.
&gt;=20
&gt; 1. https://github.com/openwrt/mt76/blob/master/mt7603/Makefile#L7
&gt;=20
&gt; -- ynezz
&gt;=20
&gt; _______________________________________________
&gt; openwrt-devel mailing list
&gt; openwrt-devel@lists.openwrt.org
&gt; https://lists.openwrt.org/mailman/listinfo/openwrt-devel
&gt;=20
&gt; _______________________________________________
&gt; openwrt-devel mailing list
&gt; openwrt-devel@lists.openwrt.org
&gt; https://lists.openwrt.org/mailman/listinfo/openwrt-devel=20
&gt; _______________________________________________
&gt; openwrt-devel mailing list
&gt; openwrt-devel@lists.openwrt.org
&gt; https://lists.openwrt.org/mailman/listinfo/openwrt-devel
--=_a1baf04542b4a10d8cfc4f4dc061965e
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

&lt;html&gt;&lt;head&gt;&lt;meta http-equiv=3D&quot;Content-Type&quot; content=3D&quot;text/html; charset=
=3DUTF-8&quot; /&gt;&lt;/head&gt;&lt;body style=3D'font-size: 9pt; font-family: Verdana,Gene=
va,sans-serif'&gt;
&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;How to solve this ?&lt;/p&gt;
&lt;p&gt;Thank you so much&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div id=3D&quot;signature&quot;&gt;&nbsp;&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p id=3D&quot;reply-intro&quot;&gt;On 2019-08-03 20:58, Joan Moreau wrote:&lt;/p&gt;
&lt;blockquote type=3D&quot;cite&quot; style=3D&quot;padding: 0 0.4em; border-left: #1010ff 2=
px solid; margin: 0&quot;&gt;
&lt;div id=3D&quot;replybody1&quot;&gt;
&lt;div style=3D&quot;font-size: 9pt; font-family: Verdana,Geneva,sans-serif;&quot;&gt;
&lt;p&gt;To narrow down the problem, my mt76 device (zbt826) runs fines on OpenWr=
t 19.07-SNAPSHOT r10233-4a7a8d93fa (including DebugFS and JFFS)&lt;/p&gt;
&lt;p&gt;On current 19.07, DebugFS makes the compilation fails, and here the deta=
ils of JFFS2 dmesg&lt;/p&gt;
&lt;p&gt;dmesg | grep -i jffs&lt;/p&gt;
&lt;p&gt;[ 0.000000] Kernel command line: console=3DttyS0,115200 rootfstype=3Dsqu=
ashfs,jffs2&lt;br /&gt;[ 0.753768] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RT=
IME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.&lt;br /&gt;[ 9.720839] jffs2: E=
rror: unknown compressor &quot;zlib&quot;&lt;br /&gt;[ 9.726302] mount_root: failed to moun=
t -t jffs2 /dev/mtdblock6 /tmp/overlay: Invalid argument&lt;br /&gt;[ 9.743698] m=
ount_root: switching to jffs2 overlay&lt;br /&gt;[ 9.748830] mount_root: switchin=
g to jffs2 failed - fallback to ramoverlay&lt;/p&gt;
&lt;div id=3D&quot;v1signature&quot;&gt;&nbsp;&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p id=3D&quot;v1reply-intro&quot;&gt;On 2019-08-03 10:18, Joan Moreau wrote:&lt;/p&gt;
&lt;blockquote style=3D&quot;padding: 0 0.4em; border-left: #1010ff 2px solid; marg=
in: 0;&quot;&gt;
&lt;div id=3D&quot;v1replybody1&quot;&gt;
&lt;div style=3D&quot;font-size: 9pt; font-family: Verdana,Geneva,sans-serif;&quot;&gt;
&lt;p&gt;well maybe&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Bottom line : mt76 is not usable in master or 19.07.&lt;/p&gt;
&lt;p&gt;So far&lt;/p&gt;
&lt;p&gt;- DebugFS creates compilation error&lt;/p&gt;
&lt;p&gt;- SquashFS does not include LZO and creates compilation errors&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div id=3D&quot;v1v1signature&quot;&gt;&nbsp;&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p id=3D&quot;v1v1reply-intro&quot;&gt;On 2019-08-03 09:57, Rosen Penev wrote:&lt;/p&gt;
&lt;blockquote style=3D&quot;padding: 0 0.4em; border-left: #1010ff 2px solid; marg=
in: 0;&quot;&gt;
&lt;div class=3D&quot;v1v1pre&quot; style=3D&quot;margin: 0; padding: 0; font-family: monospa=
ce;&quot;&gt;On Fri, Aug 2, 2019 at 5:55 PM Joan Moreau via openwrt-devel&lt;br /&gt;&lt;=
&lt;a href=3D&quot;mailto:openwrt-devel@lists.openwrt.org&quot; rel=3D&quot;noreferrer&quot;&gt;openw=
rt-devel@lists.openwrt.org&lt;/a&gt;&gt; wrote:
&lt;blockquote style=3D&quot;padding: 0 0.4em; border-left: #1010ff 2px solid; marg=
in: 0;&quot;&gt;&lt;br /&gt;The sender domain has a DMARC Reject/Quarantine policy which =
disallows&lt;br /&gt;sending mailing list messages using the original &quot;From&quot; head=
er.&lt;br /&gt;&lt;br /&gt;To mitigate this problem, the original message has been wrap=
ped&lt;br /&gt;automatically by the mailing list software.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-----=
----- Forwarded message ----------&lt;br /&gt;From: Joan Moreau &lt;&lt;a href=3D&quot;ma=
ilto:jom@grosjo.net&quot; rel=3D&quot;noreferrer&quot;&gt;jom@grosjo.net&lt;/a&gt;&gt;&lt;br /&gt;To: &quot;Pe=
tr &Scaron;tetiar&quot; &lt;&lt;a href=3D&quot;mailto:ynezz@true.cz&quot; rel=3D&quot;noreferrer&quot;&gt;=
ynezz@true.cz&lt;/a&gt;&gt;&lt;br /&gt;Cc: &lt;a href=3D&quot;mailto:openwrt-devel@lists.openwr=
t.org&quot; rel=3D&quot;noreferrer&quot;&gt;openwrt-devel@lists.openwrt.org&lt;/a&gt;&lt;br /&gt;Bcc:&lt;br =
/&gt;Date: Sat, 03 Aug 2019 08:54:45 +0800&lt;br /&gt;Subject: Re: [OpenWrt-Devel] p=
ackage mt76 fails to compile under certain configuration [Was: Compilation =
error on master / mt7620]&lt;br /&gt;&lt;br /&gt;In an attempt to force LZO with JFFS2,=
 I clicked on &quot;mksquash&quot; in menuconfig.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I reach the follwo=
ing error&lt;br /&gt;&lt;br /&gt;mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-li=
kely -mips32r2 -mtune=3D24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno=
-error=3Dunused-but-set-variable -Wno-error=3Dunused-result -msoft-float -m=
ips16 -minterlink-mips16 -iremap/usr/src/openwrt/4g/build_dir/target-mipsel=
_24kc_musl/squashfs-tools-4.3:squashfs-tools-4.3 -Wformat -Werror=3Dformat-=
security -fstack-protector -D_FORTIFY_SOURCE=3D1 -Wl,-z,now -Wl,-z,relro -I=
/usr/src/openwrt/4g/staging_dir/target-mipsel_24kc_musl/usr/include -I/usr/=
src/openwrt/4g/staging_dir/target-mipsel_24kc_musl/include -I/usr/src/openw=
rt/4g/staging_dir/toolchain-mipsel_24kc_gcc-7.4.0_musl/usr/include -I/usr/s=
rc/openwrt/4g/staging_dir/toolchain-mipsel_24kc_gcc-7.4.0_musl/include/fort=
ify -I/usr/src/openwrt/4g/staging_dir/toolchain-mipsel_24kc_gcc-7.4.0_musl/=
include -I. -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCO=
MP_DEFAULT=3D\&quot;gzip\&quot; -Wall -DGZIP_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4=
_SUPPORT -c -o mksquashfs.o mksquashfs.c&lt;br /&gt;mksquashfs.c: In function 'cr=
eate_inode':&lt;br /&gt;mksquashfs.c:996:24: error: called object 'major' is not =
a function or function pointer&lt;br /&gt;unsigned int major =3D major(buf-&gt;st=
_rdev);&lt;br /&gt;^~~~~&lt;br /&gt;mksquashfs.c:996:16: note: declared here&lt;br /&gt;unsig=
ned int major =3D major(buf-&gt;st_rdev);&lt;br /&gt;^~~~~&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Somet=
hing is very broken in mt76&lt;/blockquote&gt;
That error is related to squashfs-tools, not mt76:&lt;br /&gt;&lt;a href=3D&quot;https://=
downloads.openwrt.org/snapshots/faillogs/mips_24kc/packages/squashfs-tools/=
compile.txt&quot; target=3D&quot;_blank&quot; rel=3D&quot;noopener noreferrer&quot;&gt;https://download=
s.openwrt.org/snapshots/faillogs/mips_24kc/packages/squashfs-tools/compile=
=2Etxt&lt;/a&gt;
&lt;blockquote style=3D&quot;padding: 0 0.4em; border-left: #1010ff 2px solid; marg=
in: 0;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On 2019-08-02 23:12, Joan Morea=
u wrote:&lt;br /&gt;&lt;br /&gt;Additionally, I get the following error in the image ge=
nerated (master) without the debugfs option then to allow compilation&lt;br /&gt;=
&lt;br /&gt;&lt;br /&gt;[ 8.936247] jffs2: Error: unknown compressor &quot;zlib&quot;&lt;br /&gt;[ 8.94=
1939] mount_root: failed to mount -t jffs2 /dev/mtdblock6 /tmp/overlay: Inv=
alid argument&lt;br /&gt;[ 8.951033] mount_root: overlay filesystem has not been =
fully initialized yet&lt;br /&gt;[ 8.958979] mount_root: switching to jffs2 overl=
ay&lt;br /&gt;[ 8.964114] mount_root: switching to jffs2 failed - fallback to ram=
overlay&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On 2019-08-02 21:37, Joan Moreau wrote=
:&lt;br /&gt;&lt;br /&gt;Removing &quot;debug fs&quot; in compilation options removes the problem=
=2E&lt;br /&gt;&lt;br /&gt;So there is something very awkward in the Makefile&lt;br /&gt;&lt;br =
/&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On 2019-08-02 20:28, Joan Moreau wrote:&lt;br /&gt;&lt;br =
/&gt;attached&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On 2019-08-02 18:36, Petr &Scaron;t=
etiar wrote:&lt;br /&gt;&lt;br /&gt;Joan Moreau via openwrt-devel &lt;&lt;a href=3D&quot;mailto=
:openwrt-devel@lists.openwrt.org&quot; rel=3D&quot;noreferrer&quot;&gt;openwrt-devel@lists.op=
enwrt.org&lt;/a&gt;&gt; [2019-08-02 07:56:41]:&lt;br /&gt;&lt;br /&gt;Hello,&lt;br /&gt;&lt;br /&gt;I rea=
ch the following error while compiling my MT7620/ZBT826-16M on&lt;br /&gt;master =
(no error on 18.06) :&lt;br /&gt;&lt;br /&gt;CC [M]&lt;br /&gt;/usr/src/openwrt/4g/build_dir/=
target-mipsel_24kc_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45/mt7603=
/pci.o&lt;br /&gt;&lt;command-line&gt;:0:37: error: redeclaration of enumerator&lt;b=
r /&gt;'IEEE80211_HW_REPORTS_TX_ACK_STATUS'&lt;br /&gt;&lt;command-line&gt;:0:37: no=
te: in definition of macro&lt;br /&gt;'IEEE80211_HW_TX_STATUS_NO_AMPDU_LEN'&lt;br /&gt;=
In file included from&lt;br /&gt;/usr/src/openwrt/4g/build_dir/target-mipsel_24kc=
_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45/mt7603/../mt76.h:27:0,&lt;b=
r /&gt;from&lt;br /&gt;/usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-r=
amips_mt7620/mt76-2019-07-22-75656a45/mt7603/mt7603.h:8,&lt;br /&gt;from&lt;br /&gt;/us=
r/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/mt76=
-2019-07-22-75656a45/mt7603/pci.c:7:&lt;br /&gt;/usr/src/openwrt/4g/staging_dir/t=
arget-mipsel_24kc_musl/usr/include/mac80211/net/mac80211.h:2293:2:&lt;br /&gt;not=
e: previous definition of 'IEEE80211_HW_REPORTS_TX_ACK_STATUS' was&lt;br /&gt;her=
e&lt;br /&gt;IEEE80211_HW_REPORTS_TX_ACK_STATUS,&lt;br /&gt;^~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~&lt;br /&gt;make[6]: *** [scripts/Makefile.build:327:&lt;br /&gt;/usr/src/openwr=
t/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/mt76-2019-07-22-=
75656a45/mt7603/pci.o]&lt;br /&gt;Error 1&lt;br /&gt;make[5]: *** [scripts/Makefile.bui=
ld:585:&lt;br /&gt;/usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ra=
mips_mt7620/mt76-2019-07-22-75656a45/mt7603]&lt;br /&gt;Error 2&lt;br /&gt;make[4]: ***=
 [Makefile:1532:&lt;br /&gt;_module_/usr/src/openwrt/4g/build_dir/target-mipsel_2=
4kc_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45]&lt;br /&gt;Error 2&lt;br /&gt;&lt;b=
r /&gt;Can you help ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;the problem is probably in this compile=
 check[1], so please do following:&lt;br /&gt;&lt;br /&gt;&nbsp;make package/mt76/{clea=
n,prepare}&lt;br /&gt;&nbsp;sed -i 's;TMP&quot;;TMP&quot; 2&gt; $(TOPDIR)/meh.log;' build_d=
ir/target-mipsel_24kc_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45/mt7=
603/Makefile&lt;br /&gt;&nbsp;make package/mt76/compile&lt;br /&gt;&nbsp;scripts/diffco=
nfig.sh &gt;&gt; meh.log; gzip meh.log&lt;br /&gt;&lt;br /&gt;and send meh.log.gz file =
as attachment.&lt;br /&gt;&lt;br /&gt;1. &lt;a href=3D&quot;https://github.com/openwrt/mt76/blo=
b/master/mt7603/Makefile#L7&quot; target=3D&quot;_blank&quot; rel=3D&quot;noopener noreferrer&quot;&gt;=
https://github.com/openwrt/mt76/blob/master/mt7603/Makefile#L7&lt;/a&gt;&lt;br /&gt;&lt;br=
 /&gt;-- ynezz&lt;br /&gt;&lt;br /&gt;_______________________________________________&lt;br /=
&gt;openwrt-devel mailing list&lt;br /&gt;&lt;a href=3D&quot;mailto:openwrt-devel@lists.open=
wrt.org&quot; rel=3D&quot;noreferrer&quot;&gt;openwrt-devel@lists.openwrt.org&lt;/a&gt;&lt;br /&gt;&lt;a hre=
f=3D&quot;https://lists.openwrt.org/mailman/listinfo/openwrt-devel&quot; target=3D&quot;_b=
lank&quot; rel=3D&quot;noopener noreferrer&quot;&gt;https://lists.openwrt.org/mailman/listinf=
o/openwrt-devel&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;____________________________________________=
___&lt;br /&gt;openwrt-devel mailing list&lt;br /&gt;&lt;a href=3D&quot;mailto:openwrt-devel@li=
sts.openwrt.org&quot; rel=3D&quot;noreferrer&quot;&gt;openwrt-devel@lists.openwrt.org&lt;/a&gt;&lt;br =
/&gt;&lt;a href=3D&quot;https://lists.openwrt.org/mailman/listinfo/openwrt-devel&quot; targ=
et=3D&quot;_blank&quot; rel=3D&quot;noopener noreferrer&quot;&gt;https://lists.openwrt.org/mailman=
/listinfo/openwrt-devel&lt;/a&gt;&lt;/blockquote&gt;
&lt;br /&gt;_______________________________________________&lt;br /&gt;openwrt-devel ma=
iling list&lt;br /&gt;&lt;a href=3D&quot;mailto:openwrt-devel@lists.openwrt.org&quot; rel=3D&quot;n=
oreferrer&quot;&gt;openwrt-devel@lists.openwrt.org&lt;/a&gt;&lt;br /&gt;&lt;a href=3D&quot;https://list=
s.openwrt.org/mailman/listinfo/openwrt-devel&quot; target=3D&quot;_blank&quot; rel=3D&quot;noop=
ener noreferrer&quot;&gt;https://lists.openwrt.org/mailman/listinfo/openwrt-devel&lt;/=
a&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/body&gt;&lt;/html&gt;

--=_a1baf04542b4a10d8cfc4f4dc061965e--

]