Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Apr 2019 15:26:14 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: stack protector mode differs in PCH file vs. current file:
Message-ID:  <wojf-tw95-wny@FreeBSD.org>
In-Reply-To: <20190426232058.GA80256@www.zefox.net> (bob prohaska's message of "Fri, 26 Apr 2019 16:20:58 -0700")
References:  <20190426232058.GA80256@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
bob prohaska <fbsd@www.zefox.net> 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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?wojf-tw95-wny>