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

ffmpeg-remux编译出错 #35

Open
ntbowen opened this issue Jun 24, 2024 · 2 comments
Open

ffmpeg-remux编译出错 #35

ntbowen opened this issue Jun 24, 2024 · 2 comments

Comments

@ntbowen
Copy link

ntbowen commented Jun 24, 2024

源码:immortalwrt
平台:x86_64
内核:6.6.34
日志:

make[3]: Entering directory '/home/ntbowen/openwrt/package/Applications/linkease/nas-packages/multimedia/ffmpeg-remux'
rm -f /home/ntbowen/openwrt/immortalwrt/build_dir/target-x86_64_musl/ffmpeg-remux-x/ffmpeg-4.3.3/.built
touch /home/ntbowen/openwrt/immortalwrt/build_dir/target-x86_64_musl/ffmpeg-remux-x/ffmpeg-4.3.3/.built_check
make -C /home/ntbowen/openwrt/immortalwrt/build_dir/target-x86_64_musl/ffmpeg-remux-x/ffmpeg-4.3.3 DESTDIR="/home/ntbowen/openwrt/immortalwrt/build_dir/target-x86_64_musl/ffmpeg-remux-x/ffmpeg-4.3.3/ipkg-install" all install
make[4]: Entering directory '/home/ntbowen/openwrt/immortalwrt/build_dir/target-x86_64_musl/ffmpeg-remux-x/ffmpeg-4.3.3'
x86_64-openwrt-linux-musl-gcc -shared -Wl,-soname,libavcodec.so.58 -Wl,-Bsymbolic -Wl,--version-script,libavcodec/libavcodec.ver -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -L/home/ntbowen/openwrt/immortalwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/lib -L/home/ntbowen/openwrt/immortalwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/lib -fuse-ld=bfd -znow -zrelro   -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common -Wl,-rpath-link=:libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -O3 -fno-math-errno -fno-signed-zeros -flto -fno-tree-vectorize -Wl,-rpath,/usr/lib/remux -o libavcodec/libavcodec.so.58 libavcodec/aac_ac3_parser.o libavcodec/aac_adtstoasc_bsf.o libavcodec/aac_parser.o libavcodec/ac3_parser.o libavcodec/ac3tab.o libavcodec/adts_header.o libavcodec/adts_parser.o libavcodec/allcodecs.o libavcodec/avdct.o libavcodec/avpacket.o libavcodec/avpicture.o libavcodec/bitstream.o libavcodec/bitstream_filter.o libavcodec/bitstream_filters.o libavcodec/blockdsp.o libavcodec/bsf.o libavcodec/bswapdsp.o libavcodec/cabac.o libavcodec/codec_desc.o libavcodec/d3d11va.o libavcodec/decode.o libavcodec/dirac.o libavcodec/dv_profile.o libavcodec/encode.o libavcodec/error_resilience.o libavcodec/exif.o libavcodec/faandct.o libavcodec/faanidct.o libavcodec/fdctdsp.o libavcodec/flac.o libavcodec/flac_parser.o libavcodec/flacdata.o libavcodec/flvdec.o libavcodec/golomb.o libavcodec/h263.o libavcodec/h263_parser.o libavcodec/h263data.o libavcodec/h263dec.o libavcodec/h263dsp.o libavcodec/h2645_parse.o libavcodec/h264_cabac.o libavcodec/h264_cavlc.o libavcodec/h264_direct.o libavcodec/h264_loopfilter.o libavcodec/h264_mb.o libavcodec/h264_mp4toannexb_bsf.o libavcodec/h264_parse.o libavcodec/h264_parser.o libavcodec/h264_picture.o libavcodec/h264_ps.o libavcodec/h264_refs.o libavcodec/h264_sei.o libavcodec/h264_slice.o libavcodec/h264chroma.o libavcodec/h264data.o libavcodec/h264dec.o libavcodec/h264dsp.o libavcodec/h264idct.o libavcodec/h264pred.o libavcodec/h264qpel.o libavcodec/hevc_cabac.o libavcodec/hevc_data.o libavcodec/hevc_filter.o libavcodec/hevc_mp4toannexb_bsf.o libavcodec/hevc_mvs.o libavcodec/hevc_parse.o libavcodec/hevc_parser.o libavcodec/hevc_ps.o libavcodec/hevc_refs.o libavcodec/hevc_sei.o libavcodec/hevcdec.o libavcodec/hevcdsp.o libavcodec/hevcpred.o libavcodec/hpeldsp.o libavcodec/idctdsp.o libavcodec/imgconvert.o libavcodec/intelh263dec.o libavcodec/intrax8.o libavcodec/intrax8dsp.o libavcodec/ituh263dec.o libavcodec/jfdctfst.o libavcodec/jfdctint.o libavcodec/jni.o libavcodec/jrevdct.o libavcodec/log2_tab.o libavcodec/mathtables.o libavcodec/me_cmp.o libavcodec/mediacodec.o libavcodec/mjpegenc_huffman.o libavcodec/mpeg12.o libavcodec/mpeg12data.o libavcodec/mpeg12dec.o libavcodec/mpeg12framerate.o libavcodec/mpeg4audio.o libavcodec/mpeg4video.o libavcodec/mpeg4video_parser.o libavcodec/mpeg4videodec.o libavcodec/mpeg_er.o libavcodec/mpegaudio_parser.o libavcodec/mpegaudiodata.o libavcodec/mpegaudiodecheader.o libavcodec/mpegpicture.o libavcodec/mpegutils.o libavcodec/mpegvideo.o libavcodec/mpegvideo_motion.o libavcodec/mpegvideo_parser.o libavcodec/mpegvideodata.o libavcodec/mpegvideodsp.o libavcodec/msmpeg4.o libavcodec/msmpeg4data.o libavcodec/msmpeg4dec.o libavcodec/null_bsf.o libavcodec/options.o libavcodec/parser.o libavcodec/parsers.o libavcodec/pixblockdsp.o libavcodec/profiles.o libavcodec/pthread.o libavcodec/pthread_frame.o libavcodec/pthread_slice.o libavcodec/qpeldsp.o libavcodec/qsv_api.o libavcodec/raw.o libavcodec/reverse.o libavcodec/rl.o libavcodec/simple_idct.o libavcodec/startcode.o libavcodec/tiff_common.o libavcodec/utils.o libavcodec/vc1.o libavcodec/vc1_block.o libavcodec/vc1_loopfilter.o libavcodec/vc1_mc.o libavcodec/vc1_parser.o libavcodec/vc1_pred.o libavcodec/vc1data.o libavcodec/vc1dec.o libavcodec/vc1dsp.o libavcodec/videodsp.o libavcodec/vorbis_data.o libavcodec/vorbis_parser.o libavcodec/vp9_superframe_bsf.o libavcodec/wmv2data.o libavcodec/wmv2dsp.o libavcodec/x86/blockdsp.o libavcodec/x86/blockdsp_init.o libavcodec/x86/bswapdsp.o libavcodec/x86/bswapdsp_init.o libavcodec/x86/constants.o libavcodec/x86/fdct.o libavcodec/x86/fdctdsp_init.o libavcodec/x86/fpel.o libavcodec/x86/h263_loopfilter.o libavcodec/x86/h263dsp_init.o libavcodec/x86/h264_chromamc.o libavcodec/x86/h264_chromamc_10bit.o libavcodec/x86/h264_deblock.o libavcodec/x86/h264_deblock_10bit.o libavcodec/x86/h264_idct.o libavcodec/x86/h264_idct_10bit.o libavcodec/x86/h264_intrapred.o libavcodec/x86/h264_intrapred_10bit.o libavcodec/x86/h264_intrapred_init.o libavcodec/x86/h264_qpel.o libavcodec/x86/h264_qpel_10bit.o libavcodec/x86/h264_qpel_8bit.o libavcodec/x86/h264_weight.o libavcodec/x86/h264_weight_10bit.o libavcodec/x86/h264chroma_init.o libavcodec/x86/h264dsp_init.o libavcodec/x86/hevc_add_res.o libavcodec/x86/hevc_deblock.o libavcodec/x86/hevc_idct.o libavcodec/x86/hevc_mc.o libavcodec/x86/hevc_sao.o libavcodec/x86/hevc_sao_10bit.o libavcodec/x86/hevcdsp_init.o libavcodec/x86/hpeldsp.o libavcodec/x86/hpeldsp_init.o libavcodec/x86/idctdsp.o libavcodec/x86/idctdsp_init.o libavcodec/x86/me_cmp.o libavcodec/x86/me_cmp_init.o libavcodec/x86/mpegvideo.o libavcodec/x86/mpegvideodsp.o libavcodec/x86/pixblockdsp.o libavcodec/x86/pixblockdsp_init.o libavcodec/x86/qpel.o libavcodec/x86/qpeldsp.o libavcodec/x86/qpeldsp_init.o libavcodec/x86/simple_idct.o libavcodec/x86/simple_idct10.o libavcodec/x86/vc1dsp_init.o libavcodec/x86/vc1dsp_loopfilter.o libavcodec/x86/vc1dsp_mc.o libavcodec/x86/vc1dsp_mmx.o libavcodec/x86/videodsp.o libavcodec/x86/videodsp_init.o libavcodec/x86/xvididct.o libavcodec/x86/xvididct_init.o libavcodec/xiph.o libavcodec/xvididct.o -lavutil -pthread -lm -pthread -lm 
lto-wrapper: warning: using serial compilation of 48 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
libavcodec/x86/mathops.h: Assembler messages:
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
lto-wrapper: fatal error: x86_64-openwrt-linux-musl-gcc returned 1 exit status
compilation terminated.
/home/ntbowen/openwrt/immortalwrt/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/13.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld.bfd: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[4]: *** [ffbuild/library.mak:103: libavcodec/libavcodec.so.58] Error 1
make[4]: Leaving directory '/home/ntbowen/openwrt/immortalwrt/build_dir/target-x86_64_musl/ffmpeg-remux-x/ffmpeg-4.3.3'
make[3]: *** [Makefile:226: /home/ntbowen/openwrt/immortalwrt/build_dir/target-x86_64_musl/ffmpeg-remux-x/ffmpeg-4.3.3/.built] Error 2
make[3]: Leaving directory '/home/ntbowen/openwrt/package/Applications/linkease/nas-packages/multimedia/ffmpeg-remux'
time: package/Applications/linkease/nas-packages/multimedia/ffmpeg-remux/compile#1.18#0.12#1.30
    ERROR: package/Applications/linkease/nas-packages/multimedia/ffmpeg-remux failed to build.
make[2]: *** [package/Makefile:173: package/Applications/linkease/nas-packages/multimedia/ffmpeg-remux/compile] Error 1
make[2]: Leaving directory '/home/ntbowen/openwrt/immortalwrt'
make[1]: *** [package/Makefile:167: /home/ntbowen/openwrt/immortalwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/ntbowen/openwrt/immortalwrt'
@jannson
Copy link
Contributor

jannson commented Jul 8, 2024

这个包是用于计算视频缩略图的。如果你编译不过可以考虑把它依赖去掉,不编译它。
我怀疑你的某个库跟 FFMPEG 不兼容,导致这个 operand type mismatch for `shr' 错误。

@ntbowen
Copy link
Author

ntbowen commented Jul 9, 2024

这个包是用于计算视频缩略图的。如果你编译不过可以考虑把它依赖去掉,不编译它。 我怀疑你的某个库跟 FFMPEG 不兼容,导致这个 operand type mismatch for `shr' 错误。

可能和某个库跟 FFMPEG 不兼容有关,我换lean的源码编译就没问题

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

2 participants