Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2017 17:13:32 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432155 - head/print/ghostscript9-agpl-base
Message-ID:  <201701221713.v0MHDW2A031603@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sun Jan 22 17:13:32 2017
New Revision: 432155
URL: https://svnweb.freebsd.org/changeset/ports/432155

Log:
  print/ghostscript9-agpl-base: unbreak on 11.0 aarch64 via -O0
  
  fatal error: error in backend: Cannot select: 0x431dcbe0: i32 = AArch64ISD::FCCMP 0x431f3d10, 0x431e1980, Constant:i32<0>, Constant:i32<13>, 0x43415e40
    0x431f3d10: f128,ch = CopyFromReg 0x42c42930, Register:f128 %vreg170
      0x431e2ab0: f128 = Register %vreg170
    0x431e1980: f128,ch = CopyFromReg 0x42c42930, Register:f128 %vreg88
      0x431f34c0: f128 = Register %vreg88
    0x431dc390: i32 = Constant<0>
    0x42df45f0: i32 = Constant<13>
    0x43415e40: f128 = AArch64ISD::FCMP 0x431e2e40, 0x431e1980
      0x431e2e40: f128,ch = CopyFromReg 0x42c42930, Register:f128 %vreg171
        0x431e2980: f128 = Register %vreg171
      0x431e1980: f128,ch = CopyFromReg 0x42c42930, Register:f128 %vreg88
        0x431f34c0: f128 = Register %vreg88
  In function: TrioFormat
  cc: error: clang frontend command failed with exit code 70 (use -v to see invocation)
  FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
  Target: aarch64-unknown-freebsd11.0
  
  Reported by:	pkg-fallout
  Approved by:	portmgr blanket (unblocking 420 ports)

Modified:
  head/print/ghostscript9-agpl-base/Makefile   (contents, props changed)

Modified: head/print/ghostscript9-agpl-base/Makefile
==============================================================================
--- head/print/ghostscript9-agpl-base/Makefile	Sun Jan 22 15:33:54 2017	(r432154)
+++ head/print/ghostscript9-agpl-base/Makefile	Sun Jan 22 17:13:32 2017	(r432155)
@@ -35,7 +35,7 @@ CONFLICTS_INSTALL= \
 		ghostscript9-agpl-[0-9]* \
 		ghostscript9-agpl-nox11-[0-9]*
 
-USES=		autoreconf gmake iconv jpeg pkgconfig:build tar:bzip2
+USES=		autoreconf compiler gmake iconv jpeg pkgconfig:build tar:bzip2
 USE_LDCONFIG=	yes
 EXTRACT_AFTER_ARGS=	${EXCLUDE_DIRS:S/^/--exclude /}
 DATADIR=	${PREFIX}/share/${PORTNAME}/${PORTVERSION}
@@ -103,6 +103,10 @@ PORTDOC_FILES=	japanese/Gdevlips.htm jap
 post-patch:
 	${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},' \
 	    ${WRKSRC}/contrib/japanese/dmp_site.ps
+# XXX CHOSEN_COMPILER_VERSION isn't supported, so check CC hasn't changed
+	@if [ '${ARCH}:${CC}:${COMPILER_TYPE}:${COMPILER_VERSION}' = 'aarch64:cc:clang:38' ]; then \
+		${REINPLACE_CMD} '/CC.*trio\./s/$$/ -O0/' ${WRKSRC}/base/trio.mak; \
+	fi
 
 pre-build-drivers.mak:
 	@${ECHO_CMD} '# automatically generated' > ${WRKSRC}/base/drivers.mak



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