> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-boun...@ffmpeg.org> On Behalf Of
> Martin Storsjö
> Sent: Mittwoch, 28. Mai 2025 07:55
> To: FFmpeg development discussions and patches <ffmpeg-
> de...@ffmpeg.org>
> Subject: Re: [FFmpeg-devel] Building for Mac x86 with GCC & NASM
> 
> On Tue, 27 May 2025, softworkz . wrote:
> 
> > Hi,
> >
> > I have an issue with the CI builds for Mac in a way that it prints
> > tons of lines like this:
> >
> > ld: warning: no platform load command found in
> 'libavcodec/libavcodec.a[1008](sao_10bit.o)', assuming: macOS
> > ld: warning: no platform load command found in
> 'libavcodec/libavcodec.a[1009](hpeldsp.o)', assuming: macOS
> > ld: warning: no platform load command found in
> 'libavcodec/libavcodec.a[1011](huffyuvdsp.o)', assuming: macOS
> > ld: warning: no platform load command found in
> 'libavcodec/libavcodec.a[1013](huffyuvencdsp.o)', assuming: macOS
> >
> >
> > These are all about X86AM output. I've had those lines for all .o
> files
> > before and was able to get rid of them by adding flags like below.
> >
> > Does anybody know how I can avoid those lines for the X86ASM output
> as well?
> > (don't know much about building for Apple)

Hi Martin,

thanks a lot for the reply.


> These warnings appeared since the new linker in Xcode 15.0, 1.5 years
> ago.
> I'm not aware of a flag for silencing these warnings; the only way I'm
> aware of is to force using the old linker by passing -Wl,-ld_classic.

Thanks for the tip. It works to the extent that it prevents those 
messages from appearing and make completes successfully. But almost 
all (4724) fate tests are failing, haven't tried to trace it down.


> These warnings would go away of nasm could produce the right platform
> load
> commands; this is https://github.com/netwide-assembler/nasm/pull/13,
> but
> there hasn't been much progress on it. (And since the macOS ecossytem
> mostly is moving away from x86, I guess there's progressively less
> effort on it as well.)

I commented there, it seems there are many PRs pending and from the 
changelog, it seems there's little progress at all (mostly cosmetic
changes).
This led me to a reference indicating that YASM already does it right.
I tried to build with YASM instead. After disabling HEVC and VVC decoders
it ran almost to the end, but then it failed on tx_float:

Warning: libavcodec/x86/vp9lpf.o
skipping strip -x 
Warning: libavcodec/x86/vp9lpf.o
libavutil/x86/tx_float.asm:1936: error: 
Warning: (PFA_15_FN:21) expression syntax 
Warning: error
libavutil/x86/tx_float.asm:1937: error: (PFA_15_FN:21) 
Warning: expression syntax error
make: *** [libavutil/x86/tx_float.o] Error

I don't know whether it can be disabled in some way as it appears to be 
a prerequisite for many codecs and filters? 
Besides that, I suppose that YASM isn't a good idea at all, right?`


>From a different angle - what do you think would be the most useful 
Mac build for Patchwork CI in general?
The available runners are macos 13, 14 and 15 - all x86, there's no 
arm yet.
And would it be better to use Clang like in case of your FATE machines?

Thanks
sw

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to