From owner-freebsd-ports@freebsd.org Sat Apr 27 13:26:21 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE6A115929C3 for ; Sat, 27 Apr 2019 13:26:20 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9392485AB6; Sat, 27 Apr 2019 13:26:20 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 8555C19E3E; Sat, 27 Apr 2019 13:26:20 +0000 (UTC) From: Jan Beich To: bob prohaska Cc: freebsd-ports@freebsd.org Subject: Re: stack protector mode differs in PCH file vs. current file: References: <20190426232058.GA80256@www.zefox.net> Date: Sat, 27 Apr 2019 15:26:14 +0200 In-Reply-To: <20190426232058.GA80256@www.zefox.net> (bob prohaska's message of "Fri, 26 Apr 2019 16:20:58 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 9392485AB6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.94 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.94)[-0.945,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Apr 2019 13:26:21 -0000 bob prohaska writes: > In trying (still) to compile www/chromium on an RPI3 running -current with > ports at 500082 and system at 346613 portmater is stopping in (I think) > openjdk8 with > errorerrorerror: : errorstack protector mode differs in PCH file vs. current file: : > stack protector mode differs in PCH file vs. current filestack protector mode differs in PCH file vs. current file > stack protector mode differs in PCH file vs. current file Can't say much without full build log but it maybe a regression from https://svnweb.freebsd.org/changeset/ports/499897 Maybe precompiled.hpp.pch is generated with different arguments compared to when it's included in source files. Try the following workaround: --- java/openjdk8/Makefile.orig +++ java/openjdk8/Makefile @@ -203,14 +203,14 @@ CONFIGURE_ENV+= LIBCXX="-lc++" .endif .endif -# GCC is broken with PCH: https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html .if ${COMPILER_TYPE} == gcc CONFIGURE_ARGS+= --with-toolchain-type=gcc -.if ${ARCH} == "powerpc64" -MAKE_ARGS+= USE_PRECOMPILED_HEADER=1 -.else -MAKE_ARGS+= USE_PRECOMPILED_HEADER=0 .endif + +# GCC is broken with PCH: https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html +# PCH is poorly tested outside of x86 +.if ${ARCH} != "amd64" || ${COMPILER_TYPE} == gcc +MAKE_ARGS+= USE_PRECOMPILED_HEADER=0 .endif .if empty(ICONV_LIB)