#10219 closed defect (worksforme)

error undefined reference - crosscompiling for i686 & x86_64

Reported by: th0ma7 Owned by:
Priority: normal Component: undetermined
Version: 5.1.2 Keywords:
Cc: th0ma7 Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by th0ma7)

Currently in the process of updating SynoCommunity ffmpeg package. While re-using the same build method as for 4.4.x, it appears that 5.1.2 fails to build only for a subset of archs. More precisely it fails when building for i686 and x86_64 (all builds are cross-compiled from a x86_64 host using Synology provided toolchain and our spksrc framework).

Note that it does build properly for armv5-7-8 and ppc.

Full build output available at https://github.com/SynoCommunity/spksrc/pull/5620/checks

Error is the following:

LD	ffmpeg_g
LD	ffprobe_g
libavcodec/libavcodec.so: undefined reference to `ff_h264chroma_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_spp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_ttaencdsp_init_x86'
libswresample/libswresample.so: undefined reference to `swri_audio_convert_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vp9dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_yadif_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_noise_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_cfhddsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_huffyuvencdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_jpeg2000dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_dcadsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_fspp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_lpc_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_idet_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_audiodsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_takdsp_init_x86'
libavutil/libavutil.so: undefined reference to `ff_fixed_dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_showcqt_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_me_cmp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_alacdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_qpeldsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_dnxhdenc_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_blend_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_sbrdsp_init_x86'
libswscale/libswscale.so: undefined reference to `ff_updateMMXDitherTables'
libavcodec/libavcodec.so: undefined reference to `ff_bswapdsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_hflip_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_pp7_init_x86'
libswscale/libswscale.so: undefined reference to `ff_init_hscaler_mmxext'
libavcodec/libavcodec.so: undefined reference to `ff_dct_encode_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_threshold_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_gradfun_init_x86'
libavutil/libavutil.so: undefined reference to `ff_init_lls_x86'
libavcodec/libavcodec.so: undefined reference to `ff_diracdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vc1dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_celt_pvq_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_pixblockdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_proresdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_fft_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_mpegvideodsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_llauddsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_volume_init_x86'
libswscale/libswscale.so: undefined reference to `rgb2rgb_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_videodsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_h263dsp_init_x86'
libavutil/libavutil.so: undefined reference to `ff_image_copy_plane_uc_from_x86'
libavcodec/libavcodec.so: undefined reference to `ff_mpv_common_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_sbcdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_llviddsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_h264qpel_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_colorspacedsp_x86_init'
libavcodec/libavcodec.so: undefined reference to `ff_pngdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vp78dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_rv34dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_synth_filter_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_eq_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_fdctdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_mpegvideoencdsp_init_x86'
libavutil/libavutil.so: undefined reference to `ff_get_cpu_max_align_x86'
libavcodec/libavcodec.so: undefined reference to `ff_cfhdencdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_xvid_idct_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_tinterlace_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_scene_sad_get_fn_x86'
libavcodec/libavcodec.so: undefined reference to `ff_dct_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_g722dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_psnr_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_mdct15_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vorbisdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_spatial_idwt_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_stereo3d_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_overlay_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_convolution_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_rv40dsp_init_x86'
libswscale/libswscale.so: undefined reference to `ff_yuv2rgb_init_x86'
libavutil/libavutil.so: undefined reference to `ff_pixelutils_sad_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vp3dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_llvidencdsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_limiter_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_utvideodsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_ttadsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_ac3dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_v210_x86_init'
libavfilter/libavfilter.so: undefined reference to `ff_nlmeans_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_w3fdif_init_x86'
libswresample/libswresample.so: undefined reference to `swri_rematrix_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_init_scantable_permutation_x86'
libavfilter/libavfilter.so: undefined reference to `ff_v360_init_x86'
libswresample/libswresample.so: undefined reference to `swri_resample_dsp_x86_init'
libavfilter/libavfilter.so: undefined reference to `ff_lut3d_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_dwt_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_idctdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_v210enc_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_afir_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vp6dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_cavsdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_huffyuvdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_h264dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_atadenoise_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_framerate_init_x86'
libswscale/libswscale.so: undefined reference to `ff_sws_init_swscale_x86'
libavfilter/libavfilter.so: undefined reference to `ff_maskedclamp_init_x86'
libavutil/libavutil.so: undefined reference to `ff_float_dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_bwdif_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_pullup_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_blockdsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_gblur_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_ac3dsp_set_downmix_x86'
libavcodec/libavcodec.so: undefined reference to `ff_hevc_dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_removegrain_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_ssim_init_x86'
libavutil/libavutil.so: undefined reference to `ff_tx_codelet_list_float_x86'
libavcodec/libavcodec.so: undefined reference libavcodecto `ff_mlpdsp_init_x86/'libavcodec.so
:libavfilter /undefinedlibavfilter.so :reference  undefinedto  reference` ff_h264chroma_init_x86to' 
`libavfilter/libavfilter.soff_transpose_init_x86:' 
undefined libavcodecreference/ libavcodec.soto:  `undefinedff_spp_init_x86 '
referencelibavcodec /tolibavcodec.so :` ff_fmt_convert_init_x86undefined' 
referencelibavcodec /tolibavcodec.so :` ff_ttaencdsp_init_x86undefined' 
referencelibswresample /tolibswresample.so :` ff_h264_pred_init_x86undefined' 
referencelibavcodec /tolibavcodec.so :` swri_audio_convert_init_x86undefined' 
referencelibavcodec /tolibavcodec.so :` ff_mpadsp_init_x86undefined'
libavutil/libavutil.so: undefined reference to `ff_get_cpu_flags_x86'
libavcodec/libavcodec.so :reference  undefinedto  reference` ff_vp9dsp_init_x86to' 
`libavfilterff_vp8dsp_init_x86/'libavfilter.so
:libavcodec /undefinedlibavcodec.so :reference  undefinedto  reference` ff_yadif_init_x86to' 
`libavfilterff_exrdsp_init_x86/'libavfilter.so
:libavcodec /undefinedlibavcodec.so :reference  undefinedto  `referenceff_noise_init_x86 'to
 libavcodec/`libavcodec.soff_opus_dsp_init_x86:' 
undefinedlibavfilter /libavfilter.soreference:  toundefined  `referenceff_cfhddsp_init_x86 'to
 libavcodec`/ff_maskedmerge_init_x86libavcodec.so':
 libavcodecundefined/ libavcodec.soreference:  toundefined  `referenceff_huffyuvencdsp_init_x86 'to
 libavcodec`/ff_mpadsp_init_x86_tabslibavcodec.so':
 libavcodecundefined/ libavcodec.soreference: to  undefined` ff_jpeg2000dsp_init_x86reference' 
tolibavcodec /`libavcodec.so:ff_hpeldsp_init_x86 '
undefinedlibavfilter /referencelibavfilter.so :to  undefined` ff_dcadsp_init_x86reference' 
tolibavfilter /`libavfilter.soff_anlmdn_init_x86:' 
undefinedlibavcodec /referencelibavcodec.so :to  undefined` ff_fspp_init_x86'reference
 libavcodecto/ libavcodec.so`:ff_aac_dsp_init_x86 'undefined 
referencelibavfilter /tolibavfilter.so :` ff_lpc_init_x86undefined' 
referencelibavfilter /libavfilter.soto:  `undefinedff_hqdn3d_init_x86 'reference
 libavcodecto/ libavcodec.so`:ff_idet_init_x86 'undefined
 libavcodecreference/ libavcodec.soto:  `undefinedff_psdsp_init_x86 'reference
 libavcodecto/ libavcodec.so`:ff_audiodsp_init_x86 '
undefinedlibavcodec /referencelibavcodec.so :to  undefined` ff_flacdsp_init_x86reference' 
to libavcodec`/ff_takdsp_init_x86libavcodec.so':
 libavutilundefined/ libavutil.soreference:  toundefined  `referenceff_svq1enc_init_x86 'to
 `ff_fixed_dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_showcqt_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_me_cmp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_alacdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_qpeldsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_dnxhdenc_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_blend_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_sbrdsp_init_x86'
libswscale/libswscale.so: undefined reference to `ff_updateMMXDitherTables'
libavcodec/libavcodec.so: undefined reference to `ff_bswapdsp_init_x86'
libavfilter/libavfilter.so: undefined reference collect2: error: ld returned 1 exit status
to `ff_hflip_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_pp7_init_x86'
libswscale/libswscale.so: undefined reference to `ff_init_hscaler_mmxext'
libavcodec/libavcodec.so: undefined reference to `ff_dct_encode_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_threshold_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_gradfun_init_x86'
libavutil/libavutil.so: undefined reference to `ff_init_lls_x86'
libavcodec/libavcodec.so: undefined reference to `ff_diracdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vc1dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_celt_pvq_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_pixblockdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_proresdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_fft_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_mpegvideodsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_llauddsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_volume_init_x86'
libswscale/libswscale.so: undefined reference to `rgb2rgb_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_videodsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_h263dsp_init_x86'
libavutil/libavutil.so: undefined reference to `ff_image_copy_plane_uc_from_x86'
libavcodec/libavcodec.so: undefined reference to `ff_mpv_common_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_sbcdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_llviddsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_h264qpel_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_colorspacedsp_x86_init'
libavcodec/libavcodec.so: undefined reference to `ff_pngdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vp78dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_rv34dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_synth_filter_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_eq_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_fdctdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_mpegvideoencdsp_init_x86'
libavutil/libavutil.so: undefined reference to `ff_get_cpu_max_align_x86'
libavcodec/libavcodec.so: undefined reference to `ff_cfhdencdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_xvid_idct_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_tinterlace_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_scene_sad_get_fn_x86'
libavcodec/libavcodec.so: undefined reference to `ff_dct_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_g722dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_psnr_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_mdct15_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vorbisdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_spatial_idwt_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_stereo3d_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_overlay_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_convolution_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_rv40dsp_init_x86'
libswscale/libswscale.so: undefined reference to `ff_yuv2rgb_init_x86'
libavutil/libavutil.so: undefined reference to `ff_pixelutils_sad_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vp3dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_llvidencdsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_limiter_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_utvideodsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_ttadsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_ac3dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_v210_x86_init'
libavfilter/libavfilter.so: undefined reference to `ff_nlmeans_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_w3fdif_init_x86'
libswresample/libswresample.so: undefined reference to `swri_rematrix_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_init_scantable_permutation_x86'
libavfilter/libavfilter.so: undefined reference to `ff_v360_init_x86'
libswresample/libswresample.so: undefined reference to `swri_resample_dsp_x86_init'
libavfilter/libavfilter.so: undefined reference to `ff_lut3d_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_dwt_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_idctdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_v210enc_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_afir_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vp6dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_cavsdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_huffyuvdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_h264dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_atadenoise_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_framerate_init_x86'
libswscale/libswscale.so: undefined reference to `ff_sws_init_swscale_x86'
libavfilter/libavfilter.so: undefined reference to `ff_maskedclamp_init_x86'
libavutil/libavutil.so: undefined reference to `ff_float_dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_bwdif_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_pullup_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_blockdsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_gblur_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_ac3dsp_set_downmix_x86'
libavcodec/make[4]: *** [Makefile:131: ffprobe_g] Error 1
libavcodec.so: undefined reference to `ff_hevc_dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_removegrain_init_x86'
libavfilter/make[4]: *** Waiting for unfinished jobs....
libavfilter.so: undefined reference to `ff_ssim_init_x86'
libavutil/libavutil.so: undefined reference to `ff_tx_codelet_list_float_x86'
libavcodec/libavcodec.so: undefined reference to `ff_mlpdsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_transpose_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_fmt_convert_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_h264_pred_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_mpadsp_init_x86'
libavutil/libavutil.so: undefined reference to `ff_get_cpu_flags_x86'
libavcodec/libavcodec.so: undefined reference to `ff_vp8dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_exrdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_opus_dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_maskedmerge_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_mpadsp_init_x86_tabs'
libavcodec/libavcodec.so: undefined reference to `ff_hpeldsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_anlmdn_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_aac_dsp_init_x86'
libavfilter/libavfilter.so: undefined reference to `ff_hqdn3d_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_psdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_flacdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_svq1enc_init_x86'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:131: ffmpeg_g] Error 1
make[4]: Leaving directory '/home/spksrc/ffmpeg5/spksrc/spk/ffmpeg5/work-x64-7.1/ffmpeg-5.1.2'
make[3]: *** [../../mk/spksrc.compile.mk:46: compile_target] Error 2
make[3]: Leaving directory '/home/spksrc/ffmpeg5/spksrc/cross/ffmpeg5'
make[2]: *** [../../mk/spksrc.depend.mk:54: depend_target] Error 2
make[2]: Leaving directory '/home/spksrc/ffmpeg5/spksrc/spk/ffmpeg5'
make[1]: *** [../../mk/spksrc.spk.mk:607: build-arch-x64-7.1] Error 1
make[1]: Leaving directory '/home/spksrc/ffmpeg5/spksrc/spk/ffmpeg5'
make: *** [../../mk/spksrc.spk.mk:601: arch-x64-7.1] Error 2

Change History (5)

comment:1 by th0ma7, 16 months ago

Cc: th0ma7 added
Description: modified (diff)

comment:2 by th0ma7, 16 months ago

Disabling asm (--disable-asm similar to my arm|ppc builds) solved the immediate build failure, something I never had to do with 4.x branch. Also I can confirm that this does occur as well on ffmpeg6 builds (as just released today).

I tried enforcing --x86asmexe= pointing to our nasm binary but this didn't sovlved the issue (while it does work properly on 4.x branch).

From what I hear disabling x86 asm can be a stopgap but it causes software decoders and encoders to be extremely slow on low-power chips such as with Synology NAS. Figuring out where the issue lies would be best.

Again, help on this matter would be much appreciated.

comment:3 by th0ma7, 16 months ago

What makes this even more intriguing is that AS gets called properly for aarch64 neon optimization, but not at all for x86_64 and i686.

github WIP PR: https://github.com/SynoCommunity/spksrc/pull/5620

comment:4 by th0ma7, 16 months ago

Found where the issue is, our spksrc framework uses ARCH variable which superseeds value of ARCH in configure script & ffbuild/common.mak

Renaming that variable to FFMPEG_ARCH using a simple patch fixes things (patch I already used since a long time part of our ffmpeg4 build process)
https://github.com/SynoCommunity/spksrc/blob/master/cross/ffmpeg/patches/0001-replace-arch-env-by-ffmpeg_arch.patch

comment:5 by th0ma7, 16 months ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.