From owner-freebsd-chromium@FreeBSD.ORG Sun Aug 31 01:36:45 2014 Return-Path: Delivered-To: chromium@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E6D1456A for ; Sun, 31 Aug 2014 01:36:44 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C8C8112EC for ; Sun, 31 Aug 2014 01:36:44 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s7V1aib7074522 for ; Sun, 31 Aug 2014 01:36:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: chromium@FreeBSD.org Subject: [Bug 193187] New: www/chromium: fails to build when ffmpeg-2.3.3 installed or -I/usr/local/include poisoning Date: Sun, 31 Aug 2014 01:36:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@vfemail.net X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: chromium@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-chromium@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD-specific Chromium issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2014 01:36:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193187 Bug ID: 193187 Summary: www/chromium: fails to build when ffmpeg-2.3.3 installed or -I/usr/local/include poisoning Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: chromium@FreeBSD.org Reporter: jbeich@vfemail.net Created attachment 146582 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=146582&action=edit mark default ports include path as -isystem Locally updating multimedia/ffmpeg to 2.3.3 causes one more build failure. ../../media/ffmpeg/ffmpeg_common.cc:21:1: error: static_assert failed "decoder_buffer_padding_size_does_not_fit_ffmpeg_requirement" COMPILE_ASSERT(DecoderBuffer::kPaddingSize >= FF_INPUT_BUFFER_PADDING_SIZE, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../base/macros.h:160:35: note: expanded from macro 'COMPILE_ASSERT' #define COMPILE_ASSERT(expr, msg) static_assert(expr, #msg) ^ ~~~~ 1 error generated. $ fgrep define\ FF_INPUT_BUFFER_PADDING_SIZE ../../third_party/ffmpeg/libavcodec/avcodec.h #define FF_INPUT_BUFFER_PADDING_SIZE 16 $ fgrep define\ FF_INPUT_BUFFER_PADDING_SIZE /usr/local/include/libavcodec/avcodec.h #define FF_INPUT_BUFFER_PADDING_SIZE 32 with minimized test case like this $ mkdir -p bundled/libavcodec system/libavcodec $ touch bundled/libavcodec/avcodec.h system/libavcodec/avcodec.h $ echo '#include ' | cc -E - -I system -I bundled | fgrep avcodec.h # 1 "system/libavcodec/avcodec.h" 1 which can be fixed by pushing include path down the stack using either -isystem or -idirafter $ echo '#include ' | cc -E - -I system -I bundled -isystem system | fgrep avcodec.h # 1 "bundled/libavcodec/avcodec.h" 1 "-I" order issue stems from inconsistent defaults. Almost any dependency poisons the build with -I/usr/local/include. And upstream often hardcodes the path. - having /usr/local/bin in PATH is OK - having /usr/local/man in MANPATH is OK - having /usr/local/info in INFOPATH is OK - having /usr/local/etc/mail.rc in MAILRC is OK - having /usr/local/bin/xauth in ssh(1) is OK - having /usr/local/etc/rc.d in rc.conf is OK - having /usr/local/etc/devd in devd.conf is OK - having /usr/local/etc/libmap.d in libmap.conf is OK ... - but /usr/local/include in CPATH is NOT - but /usr/local/lib in LIBRARY_PATH is NOT -- You are receiving this mail because: You are the assignee for the bug.