Skip to content

owntone 编译报错 #1120

Description

@binge8

x64,armv8都报错,ubuntu24,最新代码最新编译环境

make[3]: Entering directory '/mnt/openwrt/feeds/packages/sound/owntone'
rm -f /home/runner/work/op/op/openwrt/build_dir/target-x86_64_musl/owntone-28.5/.built
touch /home/runner/work/op/op/openwrt/build_dir/target-x86_64_musl/owntone-28.5/.built_check
CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/runner/work/op/op/openwrt/build_dir/target-x86_64_musl/owntone-28.5=owntone-28.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -DPIC -fpic  -I/home/runner/work/op/op/openwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/include -I/home/runner/work/op/op/openwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include -I/home/runner/work/op/op/openwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include/fortify   " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/runner/work/op/op/openwrt/build_dir/target-x86_64_musl/owntone-28.5=owntone-28.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -DPIC -fpic  -I/home/runner/work/op/op/openwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/include -I/home/runner/work/op/op/openwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include -I/home/runner/work/op/op/openwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include/fortify   " LDFLAGS="-L/home/runner/work/op/op/openwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/lib -L/home/runner/work/op/op/openwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/lib -fuse-ld=bfd -znow -zrelro   " make -j1 -C /home/runner/work/op/op/openwrt/build_dir/target-x86_64_musl/owntone-28.5/. AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/runner/work/op/op/openwrt/build_dir/target-x86_64_musl/owntone-28.5=owntone-28.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -DPIC -fpic" LD="x86_64-openwrt-linux-musl-ld.bfd" NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CROSS="x86_64-openwrt-linux-musl-" ARCH="x86_64" ;
make[4]: Entering directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5'
make  all-recursive
make[5]: Entering directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5'
Making all in src/inputs/librespot-c
make[6]: Entering directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/src/inputs/librespot-c'
Making all in tests
make[7]: Entering directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/src/inputs/librespot-c/tests'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/src/inputs/librespot-c/tests'
make[7]: Entering directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/src/inputs/librespot-c'
make[7]: Nothing to be done for 'all-am'.
make[7]: Leaving directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/src/inputs/librespot-c'
make[6]: Leaving directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/src/inputs/librespot-c'
Making all in sqlext
make[6]: Entering directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/sqlext'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/sqlext'
Making all in src
make[6]: Entering directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/src'
make  all-am
make[7]: Entering directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/src'
depbase=`echo library/filescanner_ffmpeg.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
x86_64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I..  -Wall -DCONFIG_GCRYPT -I/home/runner/work/op/op/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/runner/work/op/op/openwrt/staging_dir/target-x86_64_musl/usr/include/json-c -I/home/runner/work/op/op/openwrt/staging_dir/target-x86_64_musl/usr/include -D_REENTRANT -I/home/runner/work/op/op/openwrt/staging_dir/target-x86_64_musl/usr/include -D_GNU_SOURCE -DDATADIR=\"/usr/share/owntone\" -DCONFDIR=\"/etc\" -DSTATEDIR=\"/var\" -DPKGLIBDIR=\"/usr/lib/owntone\" -I/home/runner/work/op/op/openwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/include -I/home/runner/work/op/op/openwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include -I/home/runner/work/op/op/openwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include/fortify     -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/runner/work/op/op/openwrt/build_dir/target-x86_64_musl/owntone-28.5=owntone-28.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -DPIC -fpic  -MT library/filescanner_ffmpeg.o -MD -MP -MF $depbase.Tpo -c -o library/filescanner_ffmpeg.o library/filescanner_ffmpeg.c &&\
mv -f $depbase.Tpo $depbase.Po
library/filescanner_ffmpeg.c: In function 'scan_metadata_ffmpeg':
library/filescanner_ffmpeg.c:455:43: error: 'AVCodecParameters' has no member named 'channels'
  455 |       channels = ctx->streams[i]->codecpar->channels;
      |                                           ^~
make[7]: *** [Makefile:946: library/filescanner_ffmpeg.o] Error 1
make[7]: Leaving directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/src'
make[6]: *** [Makefile:646: all] Error 2
make[6]: Leaving directory '/mnt/openwrt/build_dir/target-x86_64_musl/owntone-28.5/src'
make[5]: *** [Makefile:672: all-recursive] Error 1
make[4]: *** [Makefile:514: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions