-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
tvheadend : master branch ramips compile error #19923
Comments
Try |
It looks like a problem with the tvheadend source code, because there is no such problem in other architectures (such as x86_64, aarch64), and the ramips compilation error. And if compiling with tvheadend (4.0.10) replacement for openwrt-19.07 passes. |
When the pull request for the current version was accepted, there was no such error, so the problem probably isn't in the tvheadend source code (https://github.com/tvheadend/tvheadend - that didn't change since), but in dvb scan tables (https://github.com/tvheadend/dtv-scan-tables). In OpenWrt package, we can only select tvheadend sources version. We don't have any control over which version of dvb-tables tvheadend uses when it is being built. It probably downloads the latest. BTW, the file where compilation fails has a space in it's name. The error only shows the first part until the space. There is a issue opened already: |
New version ready. While testing it, I didn't encounter any errors such as the one you reported. |
Even though I have patched dtv-scan-tables, I still get an error when compiling, the architecture is Ralink MIPS. Error notes: |
That's a very different error. No ideea why that happens. I see you are using unicode paths: /home/sky/\�\�\�\�\�\�/lede/
|
same error too. lol... |
I can't reproduce it. It builds just fine on my system.
|
I think my gcc version is too low. my toolchain is toolchain-mipsel_24kc_gcc-8.4.0_musl finally i found the MT7621 is 32bit MIPS , __sync_lock_test_and_set_8 is 64bit toolchain..... |
But OpenWrt builds it's own toolchain before it starts building any packages, and it's absolutely normal for a 64bit (x86-64) toolchain to generate executable code for MIPS 32bit. It's called cross-compilation. So it doesn't make any sense. Are you sure your system meets all the requirements? |
ubuntu 22.04 LTS |
I checked carefully and selected the 'Include DVB-scan tables' option, and the following error will be reported: If I select the 'Optimize for speed' option, the following error will be reported: |
You are correct. Optimize for speed fails on some targets, mostly mips. |
@sKyissKy missing -latomic |
If you can fix it better, please make a pull request. I'm ok with it. My developer skills are very minimal. |
Building for arc, mips and powerpc platforms fails if -O3 and LTO optimizations are enabled. This patch removes that option for everything other than arm and x86_64. These are known to work. Fixes issue #19923. Also fixes a typo in the description. Signed-off-by: Marius Dinu <[email protected]>
Fixed. |
Building for arc, mips and powerpc platforms fails if -O3 and LTO optimizations are enabled. This patch removes that option for everything other than arm and x86_64. These are known to work. Fixes issue openwrt#19923. Also fixes a typo in the description. Signed-off-by: Marius Dinu <[email protected]>
Building for arc, mips and powerpc platforms fails if -O3 and LTO optimizations are enabled. This patch removes that option for everything other than arm and x86_64. These are known to work. Fixes issue #19923. Also fixes a typo in the description. Signed-off-by: Marius Dinu <[email protected]> (cherry picked from commit 1490531)
Please make sure that the issue subject starts with
<package-name>:
Also make sure that the package is maintained in this repository and not in base which should be submitted at https://bugs.openwrt.org or in the LuCI repository which should be submitted at https://github.com/openwrt/luci/issues.
Issues related to releases below 18.06 and forks are not supported or maintained and will be closed.
Issue template (remove lines from top till here)
Maintainer: @<github-user> (find it by checking history of the package Makefile)
Environment: (put here arch, model, OpenWrt version)
Description:
Environment: ramips ,master
make[3]: Entering directory '/home/sky/openwrt/feeds/packages/multimedia/tvheadend'
mkdir -p /home/sky/openwrt/dl
SHELL= flock /home/sky/openwrt/tmp/.tvheadend-2021-11-16.tar.xz.flock -c ' /home/sky/openwrt/scripts/download.pl "/home/sky/openwrt/dl" "tvheadend-2021-11-16.tar.xz" "1645e90b6b8f104f2749fb0911493010f7ae3176253f2a96a4d6094536207c03" "" || ( /home/sky/openwrt/scripts/dl_github_archive.py --dl-dir="/home/sky/openwrt/dl" --url="https://github.com/tvheadend/tvheadend.git" --version="2efe90cdcf74fdc4179692d283cf46c85e1cf681" --subdir="tvheadend-2021-11-16" --source="tvheadend-2021-11-16.tar.xz" --hash="1645e90b6b8f104f2749fb0911493010f7ae3176253f2a96a4d6094536207c03" || ( echo "Checking out files from the git repository..."; mkdir -p /home/sky/openwrt/tmp/dl && cd /home/sky/openwrt/tmp/dl && rm -rf tvheadend-2021-11-16 && [ ! -d tvheadend-2021-11-16 ] && git clone https://github.com/tvheadend/tvheadend.git tvheadend-2021-11-16 && (cd tvheadend-2021-11-16 && git checkout 2efe90cdcf74fdc4179692d283cf46c85e1cf681 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=cd tvheadend-2021-11-16 && git log -1 --format='''@%ct''' && rm -rf tvheadend-2021-11-16/.git && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c tvheadend-2021-11-16 | xz -zc -7e > /home/sky/openwrt/tmp/dl/tvheadend-2021-11-16.tar.xz && mv /home/sky/openwrt/tmp/dl/tvheadend-2021-11-16.tar.xz /home/sky/openwrt/dl/ && rm -rf tvheadend-2021-11-16; ); ) '
rm -f /home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16/.built
touch /home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16/.built_check
CFLAGS="-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 -iremap/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16:tvheadend-2021-11-16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libiconv-stub/include -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libintl-stub/include -O3 -flto -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/include -I/home/sky/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/usr/include -I/home/sky/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/include/fortify -I/home/sky/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/include -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libiconv-stub/include -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libintl-stub/include " CXXFLAGS="-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 -iremap/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16:tvheadend-2021-11-16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libiconv-stub/include -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libintl-stub/include -flto -O3 -flto -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/include -I/home/sky/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/usr/include -I/home/sky/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/include/fortify -I/home/sky/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/include -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libiconv-stub/include -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libintl-stub/include " LDFLAGS="-L/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib -L/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/lib -L/home/sky/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/usr/lib -L/home/sky/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/lib -znow -zrelro -L/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libiconv-stub/lib -Wl,-rpath-link=/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libiconv-stub/lib -L/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libintl-stub/lib -Wl,-rpath-link=/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libintl-stub/lib -flto " make -C /home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16/. AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -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 -iremap/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16:tvheadend-2021-11-16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libiconv-stub/include -I/home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libintl-stub/include -O3 -flto" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CROSS="mipsel-openwrt-linux-musl-" ARCH="mipsel" OS=Linux ;
make[4]: Entering directory '/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16'
make -f Makefile.webui LANGUAGES="ach ady ar bg cs da de en_US en_GB es et fa fi fr he hr hu it ko lv lt nl no pl pt ro ru sl sk sq sv tr uk zh zh-Hans" all
make[5]: Entering directory '/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16'
make -f Makefile.webui WEBUI=std compile-std
make[6]: Entering directory '/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16'
WEBUI std finished
make[6]: Leaving directory '/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16'
make -f Makefile.webui WEBUI=debug compile-debug
make[6]: Entering directory '/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16'
WEBUI debug finished
make[6]: Leaving directory '/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16'
make[5]: Leaving directory '/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16'
make[4]: *** No rule to make target '/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16/data/dvb-scan/dvb-c/mk-Telekabel-Sveti', needed by '/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16/build.linux/bundle.c'. Stop.
make[4]: Leaving directory '/home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16'
make[3]: *** [Makefile:262: /home/sky/openwrt/build_dir/target-mipsel_24kc_musl/tvheadend-2021-11-16/.built] Error 2
make[3]: Leaving directory '/home/sky/openwrt/feeds/packages/multimedia/tvheadend'
time: package/feeds/packages/tvheadend/compile#1.07#0.08#1.12
make[2]: *** [package/Makefile:113: package/feeds/packages/tvheadend/compile] Error 2
make[2]: Leaving directory '/home/sky/openwrt'
make[1]: *** [package/Makefile:107: /home/sky/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/sky/openwrt'
make: *** [/home/sky/openwrt/include/toplevel.mk:227:world] 错误 2
The text was updated successfully, but these errors were encountered: