Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Fails with target-mips_24kc+nomips16_musl error #1

Closed
tomo0611 opened this issue Sep 27, 2020 · 2 comments
Closed

Build Fails with target-mips_24kc+nomips16_musl error #1

tomo0611 opened this issue Sep 27, 2020 · 2 comments

Comments

@tomo0611
Copy link

Build fails with target-mips_24kc+nomips16_musl error

ENV

OS : Windows 10 Home 64 bit
Linux : TOMO-DESKTOP 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 GNU/Linux
CPU : Ryzen 5 3500U
Mem/STORAGE : 16GB/256GB

Commands

git clone https://github.com/paldier/prplwrt
cd ./prplwrt/
./scripts/gen_config.py intel_mips prpl webui luci debug
cd package/feeds/luci
ln -sf ../../../feeds/luci/collections/luci ./
cd ../../../
make -j8 V=s

ERROR LOG

make[1]: [package/Makefile:110: /staging_dir/target-mips_24kc+nomips16_musl/stamp/.package_compile] Error 2 **
make[1]: Leaving directory '/home/tomochan/prplwrt'
make: *** [/home/tomochan/prplwrt/include/toplevel.mk:227: world] Error 2

BUILD LOG

install -d -m0755 /home/tomochan/prplwrt/bin/targets/intel_mips/xrx500/packages
/home/tomochan/prplwrt/scripts/ipkg-build -c -o 0 -g 0 /home/tomochan/prplwrt/build_dir/target-mips_24kc+nomips16_musl/iwlwav-driver-uci-6.1.0/ipkg-mips_24kc_nomips16/kmod-iwlwav-driver-uci /home/tomochan/prplwrt/bin/targets/intel_mips/xrx500/packages
Packaged contents of /home/tomochan/prplwrt/build_dir/target-mips_24kc+nomips16_musl/iwlwav-driver-uci-6.1.0/ipkg-mips_24kc_nomips16/kmod-iwlwav-driver-uci into /home/tomochan/prplwrt/bin/targets/intel_mips/xrx500/packages/kmod-iwlwav-driver-uci_github_com_paldier_linux_git-727acdb060410a936330a2456f641b9473bf5121+6.1.0-3f5a8d096b06176d15c7aae88fba46db9b934afa_mips_24kc_nomips16.ipk
echo "kmod-iwlwav-driver-uci" >> /home/tomochan/prplwrt/staging_dir/target-mips_24kc+nomips16_musl/pkginfo/iwlwav-driver-uci.default.install
rm -rf /home/tomochan/prplwrt/tmp/stage-iwlwav-driver-uci
mkdir -p /home/tomochan/prplwrt/tmp/stage-iwlwav-driver-uci/host /home/tomochan/prplwrt/staging_dir/target-mips_24kc+nomips16_musl/packages /home/tomochan/prplwrt/staging_dir/host/packages
install -d -m0755 /home/tomochan/prplwrt/tmp/stage-iwlwav-driver-uci/usr/include/
cp -fpR /home/tomochan/prplwrt/build_dir/target-mips_24kc+nomips16_musl/iwlwav-driver-uci-6.1.0/drivers/net/wireless/intel/iwlwav/wireless/shared/wave_fapi_nl_if.h /home/tomochan/prplwrt/tmp/stage-iwlwav-driver-uci/usr/include/
find /home/tomochan/prplwrt/tmp/stage-iwlwav-driver-uci -name '*.la' | xargs -r rm -f;
if [ -f /home/tomochan/prplwrt/staging_dir/target-mips_24kc+nomips16_musl/packages/iwlwav-driver-uci.list ]; then /home/tomochan/prplwrt/scripts/clean-package.sh "/home/tomochan/prplwrt/staging_dir/target-mips_24kc+nomips16_musl/packages/iwlwav-driver-uci.list" "/home/tomochan/prplwrt/staging_dir/target-mips_24kc+nomips16_musl"; fi
if [ -d /home/tomochan/prplwrt/tmp/stage-iwlwav-driver-uci ]; then (cd /home/tomochan/prplwrt/tmp/stage-iwlwav-driver-uci; find ./ > /home/tomochan/prplwrt/tmp/stage-iwlwav-driver-uci.files);                            SHELL= flock /home/tomochan/prplwrt/tmp/.staging-dir.flock -c ' mv /home/tomochan/prplwrt/tmp/stage-iwlwav-driver-uci.files /home/tomochan/prplwrt/staging_dir/target-mips_24kc+nomips16_musl/packages/iwlwav-driver-uci.list && cp -fpR /home/tomochan/prplwrt/tmp/stage-iwlwav-driver-uci/* /home/tomochan/prplwrt/staging_dir/target-mips_24kc+nomips16_musl/; '; fi
rm -rf /home/tomochan/prplwrt/tmp/stage-iwlwav-driver-uci
touch /home/tomochan/prplwrt/staging_dir/target-mips_24kc+nomips16_musl/stamp/.iwlwav-driver-uci_installed
make[3]: Leaving directory '/home/tomochan/prplwrt/feeds/feed_wlan_6x/wlan_wave_feed/iwlwav-driver-uci'
time: package/feeds/feed_wlan_6x/iwlwav-driver-uci/compile#397.29#69.53#447.40
make[2]: Leaving directory '/home/tomochan/prplwrt'
make[1]: *** [package/Makefile:110: /home/tomochan/prplwrt/staging_dir/target-mips_24kc+nomips16_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/tomochan/prplwrt'
make: *** [/home/tomochan/prplwrt/include/toplevel.mk:227: world] Error 2
tomochan@TOMO-DESKTOP:~/prplwrt$

OTHER

Often said warning: regexp escape sequence '\#' is not a known regexp operator by compiler.

When I make menuconfig, it says there are a lot of non-exist dependencies.

WARNING: Makefile 'package/feeds/feed_datapath/directconnect_dp/Makefile' has a dependency on 'kmod-wifi_proxy', which does not exist
WARNING: Makefile 'package/feeds/feed_datapath/directconnect_dp/Makefile' has a dependency on 'kmod-cppp_linux_kernel', which does not exist
WARNING: Makefile 'package/feeds/feed_prpl/dslmngr/Makefile' has a dependency on 'dsl-cpe-api-vrx', which does not exist
WARNING: Makefile 'package/feeds/feed_prpl/dslmngr/Makefile' has a dependency on 'dsl-cpe-fapi', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/dwpal_6x-uci/Makefile' has a build dependency on 'libnl3', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/dwpal_6x-uci/Makefile' has a build dependency on 'librt', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/dwpal_6x-uci/Makefile' has a build dependency on 'libncurses', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/dwpal_6x-uci/Makefile' has a build dependency on 'safeclibs', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/dwpal_6x-uci/Makefile' has a build dependency on 'libreadline', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/iwlwav-driver-uci/Makefile' has a build dependency on 'kmod-directconnect-dp', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/iwlwav-hostap-uci/Makefile' has a build dependency on 'libopenssl', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/iwlwav-hostap-uci/Makefile' has a build dependency on 'librt', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/iwlwav-hostap-uci/Makefile' has a build dependency on 'ltq-wlan-wave_6x', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/iwlwav-iw/Makefile' has a build dependency on 'ltq-wlan-wave_6x', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/iwlwav-tools/Makefile' has a build dependency on 'librt', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/iwlwav-tools/Makefile' has a build dependency on 'pthread', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-vpe', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/lq-wave-300_6x-uci/Makefile' has a dependency on 'kmod-ltq_wave500_dp_drv', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/lq-wave-300_6x-uci/Makefile' has a dependency on 'kmod-lantiq_directconnect_support', which does not exist
WARNING: Makefile 'package/feeds/feed_prpl/mcast-pa/Makefile' has a dependency on 'libmcastfapi', which does not exist
WARNING: Makefile 'package/feeds/feed_ppa/ppa_drv/Makefile' has a dependency on 'kmod-sched-act-extra', which does not exist
WARNING: Makefile 'package/feeds/feed_ppa/ppa_drv/Makefile' has a dependency on 'mpe_fw_prx300', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/swpal_6x-uci/Makefile' has a build dependency on 'libugwhelper', which does not exist
WARNING: Makefile 'package/feeds/feed_wlan_6x/swpal_6x-uci/Makefile' has a build dependency on 'libuci', which does not exist
WARNING: Makefile 'package/feeds/feed_prpl/ucwmp/Makefile' has a dependency on 'scal-plugin-json', which does not exist
@tomo0611
Copy link
Author

ltq-wlan-wave_6x-uci-06.01.00-2513b05633fd57487e83a774419a8e906708bf39.tar.gz: Download from https://github.com/paldier//wave_bin.git failed
ltq-wlan-wave_6x-uci-06.01.00-2513b05633fd57487e83a774419a8e906708bf39.tar.gz: Invalid github url: https://github.com/paldier//wave_bin.git
Cloning into 'ltq-wlan-wave_6x-uci-06.01.00'...
fatal: unable to access 'https://github.com/paldier//wave_bin.git/': The requested URL returned error: 400

@tomo0611
Copy link
Author

Fixed it by removing dups / in \feeds\feed_wlan_6x\wlan_wave_feed\lq-wave-300_6x-uci\Makefile

On File "/build_dir/target-mips_24kc+nomips16_musl/prplmesh-dwpal/prplmesh-1.4.0-eb2327daaff7c4e5071dcfb9ddd75c88f2b747a7/framework/tlvf/tlvf.py", line 20, in <module>, ImportError: No module named yaml -> installed PyYAML on Python 2.7 sudo apt update && sudo apt install python2 && curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py && sudo python2 get-pip.py && sudo python2 -m pip install PyYAML

mips-openwrt-linux-musl-cpp: error: ../dts/tplink_xdr3020.dts: No such file or directory
mips-openwrt-linux-musl-cpp: warning: '-x assembler-with-cpp' after last input file has no effect
mips-openwrt-linux-musl-cpp: fatal error: no input files
compilation terminated.

fixed with rm ./feeds/feed_target_mips/intel_mips/image/xdr3020.mk

And succeed

Image Name:   MIPS OpenWrt Linux-github_com_pa
Created:      Fri Sep  4 06:21:29 2020
Image Type:   MIPS Linux Kernel Image (lzma compressed)
Data Size:    2133600 Bytes = 2083.59 KiB = 2.03 MiB
Load Address: a0020000
Entry Point:  a0020000

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
        compressed data, compressed metadata, compressed fragments,
        no xattrs, compressed ids
        duplicates are removed
Filesystem size 17392.60 Kbytes (16.98 Mbytes)
        19.71% of uncompressed filesystem size (88233.87 Kbytes)
Inode table size 20934 bytes (20.44 Kbytes)
        20.92% of uncompressed inode table size (100089 bytes)
Directory table size 27598 bytes (26.95 Kbytes)
        41.10% of uncompressed directory table size (67148 bytes)
Image Name:   LEDE RootFS
Created:      Fri Sep  4 06:21:29 2020
Image Type:   MIPS Linux Filesystem Image (lzma compressed)
Data Size:    17810032 Bytes = 17392.61 KiB = 16.98 MiB
Load Address: 00000000
Entry Point:  00000000

Image Name:   LEDE RootFS
Created:      Fri Sep  4 06:21:29 2020
Image Type:   MIPS Linux Filesystem Image (lzma compressed)
Data Size:    17810032 Bytes = 17392.61 KiB = 16.98 MiB
Load Address: 00000000
Entry Point:  00000000

Image Name:   OpenWrt fullimage
Created:      Fri Sep  4 06:21:29 2020
Image Type:   MIPS Linux Multi-File Image (uncompressed)
Data Size:    19943768 Bytes = 19476.34 KiB = 19.02 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 19943760 Bytes = 19476.33 KiB = 19.02 MiB

Image Name:   OpenWrt fullimage
Created:      Fri Sep  4 06:21:29 2020
Image Type:   MIPS Linux Multi-File Image (uncompressed)
Data Size:    19943768 Bytes = 19476.34 KiB = 19.02 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 19943760 Bytes = 19476.33 KiB = 19.02 MiB
Signing package index...
make[2]: Leaving directory '/home/tomochan/prplwrt'
export MAKEFLAGS= ;make -w -r checksum
make[2]: Entering directory '/home/tomochan/prplwrt'
make[2]: Leaving directory '/home/tomochan/prplwrt'
make[1]: Leaving directory '/home/tomochan/prplwrt'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant