Opened 2 years ago

Closed 2 years ago

#10648 closed defect (fixed)

release 6.1 build fails on MacOS

Reported by: David Arnstein Owned by:
Priority: normal Component: build system
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

% cd ~/git/ffmpeg
% git fetch
% git switch release/6.1
% cd ../ffmpeg_build
% ~/git/ffmpeg/configure
% make
ffmpeg version 6.1

Result:
xcrun -sdk macosx metal src/libavfilter/metal/vf_yadif_videotoolbox.metal -o libavfilter/metal/vf_yadif_videotoolbox.metal.air
xcrun -sdk macosx metallib --split-module-without-linking libavfilter/metal/vf_yadif_videotoolbox.metal.air -o libavfilter/metal/vf_yadif_videotoolbox.metallib
BIN2C libavfilter/metal/vf_yadif_videotoolbox.metallib.c
make: * [libavfilter/metal/vf_yadif_videotoolbox.metallib.c] Error 255
rm libavfilter/metal/vf_yadif_videotoolbox.metal.air libavfilter/metal/vf_yadif_videotoolbox.metallib

Change History (3)

comment:1 by David Arnstein, 2 years ago

MacOS version is 14.1.1. Xcode is up-to-date.

comment:2 by Jann Gobble, 2 years ago

I'm suffering the same w/ffmpeg 6.1 on x86_64:
(compiled on Intel iMac Retina 4k 21.5", 2019 running Ventura 13.5.2 and Xcode 15.0.2)

xcrun -sdk macosx metal libavfilter/metal/vf_yadif_videotoolbox.metal -o libavfilter/metal/vf_yadif_videotoolbox.metal.air
ld: warning: ignoring file '/Volumes/tempdisk/compile/ffmpeg-6.1.0/ffbuild/bin2c_host.o': found architecture 'arm64', required architecture 'x86_64'
CC libavfilter/motion_estimation.o
CC libavfilter/palette.o
ld: Undefined symbols:

_main, referenced from:

<initial-undefines>

clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: * [ffbuild/bin2c] Error 1
make:
* Waiting for unfinished jobs....
rm libavfilter/metal/vf_yadif_videotoolbox.metal.air

Last edited 2 years ago by Jann Gobble (previous) (diff)

comment:3 by David Arnstein, 2 years ago

Resolution: fixed
Status: newclosed

The developers have created git tag n6.1 and I find that the issue is not present while using this version of the source code.

HOWEVER, I find it necessary to completely clear out the build directory and re-run the configure script.

Anyway, I am closing this ticket now.

Note: See TracTickets for help on using tickets.