----- Forwarded message from Stuart Henderson <sthen@openbsd.org> -----
From: Stuart Henderson <sthen@openbsd.org>
Date: Mon, 4 Sep 2017 13:27:56 -0600 (MDT)
To: ports-changes@openbsd.org
Subject: CVS: cvs.openbsd.org: ports
CVSROOT: /cvs
Module name: ports
Changes by: sthen@cvs.openbsd.org 2017/09/04 13:27:56
Modified files:
graphics/ffmpeg: Makefile
Log message:
Use ports clang to build ffmpeg on amd64. The AAC encoder hangs on amd64 when
compiled with clang 4.0.x (either 4.0.0 in base or the older ports 4.0.1).
Based on a diff from Brad.
Add a comment explaining this and note that there is another issue where the
H264 decoder segfaults in ff_deblock_v_luma_8_sse2 on i386, but this isn't
helped by the newer ports clang.
----- End forwarded message -----
So this works around the recently-reported hangs seen on amd64 but we
still have a segfault issue on i386 (I've only seen this so far when
decoding H264, though given the function other things may use it too).
I've tried a few things:
- clang (ports or base): segfault
- ports gcc: works, but needs -march=i686 to build, otherwise build fails
"libpostproc/postprocess_template.c:3184:5: error: 'asm' operand has impossible constraints"
- CC=/usr/bin/gcc: works, no extra flags
- I haven't tried a --disable-inline-asm build yet, I suspect that
this would also work but likely kill performance.
Any thoughts on how to proceed? As far as getting things ship-shape
for release goes, setting CC=/usr/bin/gcc for i386 seems the least
worst option to me.
Brad points out we had runtime problems in the past with clang-built
FFmpeg on i386 (ports/graphics/ffmpeg/Makefile r1.119, r1.120) though
I can't find the ports@ posts referred to in the commit log any more.
No comments:
Post a Comment