Building x264 with settings ASM, GPAC, PGO enabled cases strip to core dump a lot, this is also seen when building ffmpeg afterwards. ... YASM libavcodec/x86/dwt_yasm.o STRIP libavcodec/x86/dsputilenc.o STRIP libavcodec/x86/dwt_yasm.o library.mak:26: recipe for target 'libavcodec/x86/dsputilenc.o' failed gmake[4]: [libavcodec/x86/dsputilenc.o] Floating point exception (core dumped) (ignored) CC libavcodec/x86/fdct.o CC libavcodec/x86/fdctdsp_init.o YASM libavcodec/x86/fft.o libavcodec/x86/fft.asm:54: warning: section flags ignored on section redeclaration STRIP libavcodec/x86/fft.o library.mak:26: recipe for target 'libavcodec/x86/dwt_yasm.o' failed gmake[4]: [libavcodec/x86/dwt_yasm.o] Floating point exception (core dumped) (ignored) and so on.... FreeBSD 11.0-CURRENT #0 r276959, ports about 2 hours old.
ffmpeg using "optimized cflags" enable but I don't think it matters...
Per request by koobs@ -DWITH_DEBUG doesn't resolve the issue, it should also be mentioned that libx264 is affected which I guess is provided by the multimedia/x264 port?
Would you mind attaching one of the .o files that triggers the crash? e.g. dsputilenc.o
Created attachment 151622 [details] Sample file
A commit references this bug: Author: emaste Date: Wed Jan 14 14:49:59 UTC 2015 New revision: 277181 URL: https://svnweb.freebsd.org/changeset/base/277181 Log: elfcopy: Avoid divide-by-0 on section alignment 0 According to ELF ABI, alignment 0 and 1 has the same meaning: the section has no alignment constraints. PR: 196715 Sponsored by: The FreeBSD Foundation Changes: head/contrib/elftoolchain/elfcopy/sections.c
Thank you for the report; I believe this should now be fixed with r277181. Please reopen if it still occurs; I will also try to build with these options on my test machine shortly.
Confirmed working on FreeBSD 11.0-CURRENT #0 r277203 Thanks for the quick fix