From owner-freebsd-ports@freebsd.org Sat Apr 27 23:56:00 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 980AA15A031A for ; Sat, 27 Apr 2019 23:56:00 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 017E372F4E; Sat, 27 Apr 2019 23:55:59 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id x3RNt8Rv087242 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 27 Apr 2019 16:55:09 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id x3RNt81X087241; Sat, 27 Apr 2019 16:55:08 -0700 (PDT) (envelope-from fbsd) Date: Sat, 27 Apr 2019 16:55:08 -0700 From: bob prohaska To: Jan Beich Cc: freebsd-ports@freebsd.org Subject: Re: stack protector mode differs in PCH file vs. current file: Message-ID: <20190427235508.GA86998@www.zefox.net> References: <20190426232058.GA80256@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 017E372F4E X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.22 / 15.00]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.97)[0.969,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.46)[0.460,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(0.12)[ip: (0.45), ipnet: 50.1.16.0/20(0.22), asn: 7065(-0.03), country: US(-0.06)]; MX_GOOD(-0.01)[cached: www.zefox.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.79)[0.788,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MID_RHS_WWW(0.50)[] 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 23:56:00 -0000 On Sat, Apr 27, 2019 at 03:26:14PM +0200, Jan Beich wrote: > 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) I'm doing something wrong, patch replies patch: **** malformed patch at line 22: .if empty(ICONV_LIB) and exits without doing anything. Come to think of it, shouldn't .if [anything] be followed by .endif eventually? Thanks for your help! bob prohaska