[OpenWrt-Devel] package mt76 fails to compile under certain configuration [Was: Compilation error on master / mt7620]

Rosen Penev rosenp at gmail.com
Fri Aug 2 21:57:33 EDT 2019


On Fri, Aug 2, 2019 at 5:55 PM Joan Moreau via openwrt-devel
<openwrt-devel at lists.openwrt.org> wrote:
>
> The sender domain has a DMARC Reject/Quarantine policy which disallows
> sending mailing list messages using the original "From" header.
>
> To mitigate this problem, the original message has been wrapped
> automatically by the mailing list software.
>
>
> ---------- Forwarded message ----------
> From: Joan Moreau <jom at grosjo.net>
> To: "Petr Štetiar" <ynezz at true.cz>
> Cc: openwrt-devel at lists.openwrt.org
> Bcc:
> Date: Sat, 03 Aug 2019 08:54:45 +0800
> Subject: Re: [OpenWrt-Devel] package mt76 fails to compile under certain configuration [Was: Compilation error on master / mt7620]
>
> In an attempt to force LZO with JFFS2, I clicked on "mksquash" in menuconfig.
>
>
> I reach the follwoing error
>
> mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/squashfs-tools-4.3:squashfs-tools-4.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -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/openwrt/4g/staging_dir/toolchain-mipsel_24kc_gcc-7.4.0_musl/usr/include -I/usr/src/openwrt/4g/staging_dir/toolchain-mipsel_24kc_gcc-7.4.0_musl/include/fortify -I/usr/src/openwrt/4g/staging_dir/toolchain-mipsel_24kc_gcc-7.4.0_musl/include -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -c -o mksquashfs.o mksquashfs.c
> mksquashfs.c: In function 'create_inode':
> mksquashfs.c:996:24: error: called object 'major' is not a function or function pointer
> unsigned int major = major(buf->st_rdev);
> ^~~~~
> mksquashfs.c:996:16: note: declared here
> unsigned int major = major(buf->st_rdev);
> ^~~~~
>
>
> Something is very broken in mt76
That error is related to squashfs-tools, not mt76:
https://downloads.openwrt.org/snapshots/faillogs/mips_24kc/packages/squashfs-tools/compile.txt
>
>
>
>
>
>
> On 2019-08-02 23:12, Joan Moreau wrote:
>
> Additionally, I get the following error in the image generated (master) without the debugfs option then to allow compilation
>
>
> [ 8.936247] jffs2: Error: unknown compressor "zlib"
> [ 8.941939] mount_root: failed to mount -t jffs2 /dev/mtdblock6 /tmp/overlay: Invalid argument
> [ 8.951033] mount_root: overlay filesystem has not been fully initialized yet
> [ 8.958979] mount_root: switching to jffs2 overlay
> [ 8.964114] mount_root: switching to jffs2 failed - fallback to ramoverlay
>
>
>
>
> On 2019-08-02 21:37, Joan Moreau wrote:
>
> Removing "debug fs" in compilation options removes the problem.
>
> So there is something very awkward in the Makefile
>
>
>
>
>
> On 2019-08-02 20:28, Joan Moreau wrote:
>
> attached
>
>
>
>
> On 2019-08-02 18:36, Petr Štetiar wrote:
>
> Joan Moreau via openwrt-devel <openwrt-devel at lists.openwrt.org> [2019-08-02 07:56:41]:
>
> Hello,
>
> I reach the following error while compiling my MT7620/ZBT826-16M on
> master (no error on 18.06) :
>
> CC [M]
> /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45/mt7603/pci.o
> <command-line>:0:37: error: redeclaration of enumerator
> 'IEEE80211_HW_REPORTS_TX_ACK_STATUS'
> <command-line>:0:37: note: in definition of macro
> 'IEEE80211_HW_TX_STATUS_NO_AMPDU_LEN'
> In file included from
> /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45/mt7603/../mt76.h:27:0,
> from
> /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45/mt7603/mt7603.h:8,
> from
> /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45/mt7603/pci.c:7:
> /usr/src/openwrt/4g/staging_dir/target-mipsel_24kc_musl/usr/include/mac80211/net/mac80211.h:2293:2:
> note: previous definition of 'IEEE80211_HW_REPORTS_TX_ACK_STATUS' was
> here
> IEEE80211_HW_REPORTS_TX_ACK_STATUS,
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> make[6]: *** [scripts/Makefile.build:327:
> /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45/mt7603/pci.o]
> Error 1
> make[5]: *** [scripts/Makefile.build:585:
> /usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45/mt7603]
> Error 2
> make[4]: *** [Makefile:1532:
> _module_/usr/src/openwrt/4g/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45]
> Error 2
>
> Can you help ?
>
>
> the problem is probably in this compile check[1], so please do following:
>
>  make package/mt76/{clean,prepare}
>  sed -i 's;TMP";TMP" 2> $(TOPDIR)/meh.log;' build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/mt76-2019-07-22-75656a45/mt7603/Makefile
>  make package/mt76/compile
>  scripts/diffconfig.sh >> meh.log; gzip meh.log
>
> and send meh.log.gz file as attachment.
>
> 1. https://github.com/openwrt/mt76/blob/master/mt7603/Makefile#L7
>
> -- ynezz
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list