From owner-svn-ports-all@freebsd.org Sat Dec 30 10:40:40 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E473EB5B52; Sat, 30 Dec 2017 10:40:40 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 15CB778254; Sat, 30 Dec 2017 10:40:40 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBUAedwm066506; Sat, 30 Dec 2017 10:40:39 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBUAedqG066504; Sat, 30 Dec 2017 10:40:39 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201712301040.vBUAedqG066504@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Sat, 30 Dec 2017 10:40:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457598 - in head/comms/xastir: . files X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/comms/xastir: . files X-SVN-Commit-Revision: 457598 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Dec 2017 10:40:40 -0000 Author: danfe Date: Sat Dec 30 10:40:38 2017 New Revision: 457598 URL: https://svnweb.freebsd.org/changeset/ports/457598 Log: - Unbreak the build on sparc64: gcc was generating assembler code that invoked FdTOx (convert floating point to 64-bit integer) instruction with odd register number as the second argument, while apparently[*] an even number is required: fdtox %f10, %f15 It caused ``Illegal operands'' error when compiling `draw_symbols.c': {standard input}: Assembler messages: {standard input}:2686: Error: Illegal operands {standard input}:2695: Error: Illegal operands {standard input}:2835: Error: Illegal operands {standard input}:2844: Error: Illegal operands {standard input}:2854: Error: Illegal operands {standard input}:2864: Error: Illegal operands Fix the build by forcing -O0 when compiling this file on sparc64. - Remove OPTCFLAGS option which enabled "optimized" CFLAGS ``-O2 -pipe'': these are our default CFLAGS for a long time [*] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56890 Added: head/comms/xastir/files/patch-src_Makefile.in (contents, props changed) Modified: head/comms/xastir/Makefile Modified: head/comms/xastir/Makefile ============================================================================== --- head/comms/xastir/Makefile Sat Dec 30 10:10:14 2017 (r457597) +++ head/comms/xastir/Makefile Sat Dec 30 10:40:38 2017 (r457598) @@ -24,7 +24,7 @@ SHEBANG_FILES= scripts/*.pl scripts/get-maptools.sh \ SUB_FILES= pkg-message OPTIONS_DEFINE= SHAPELIB DBFAWK MAGICK CURL GEOTIFF GDAL GPSMAN FESTIVAL \ - RTREE ERRORPOP BDB OPTCFLAGS + RTREE ERRORPOP BDB SHAPELIB_DESC= Include Shapelib support DBFAWK_DESC= Include DBFAWK Support @@ -37,7 +37,6 @@ FESTIVAL_DESC= Include Festival Voice Synthesis Suppor RTREE_DESC= Enable spatial indexing of shapefiles ERRORPOP_DESC= Send error popups to stderr BDB_DESC= Tiger Map Caching using Berkeley DB -OPTCFLAGS_DESC= Use optimized CFLAGS (-O2 -pipe) OPTIONS_DEFAULT= SHAPELIB DBFAWK MAGICK CURL RTREE BDB @@ -70,9 +69,5 @@ ERRORPOP_CONFIGURE_WITH= errorpopups BDB_USES= bdb BDB_CONFIGURE_ON= --with-bdb-incdir=${BDB_INCLUDE_DIR} --with-bdb-libdir=${BDB_LIB_DIR} - -OPTCFLAGS_CFLAGS= -O2 -pipe - -BROKEN_sparc64= Does not compile on sparc64 .include Added: head/comms/xastir/files/patch-src_Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/xastir/files/patch-src_Makefile.in Sat Dec 30 10:40:38 2017 (r457598) @@ -0,0 +1,15 @@ +--- src/Makefile.in.orig 2014-09-12 19:05:57 UTC ++++ src/Makefile.in +@@ -522,6 +522,12 @@ distclean-compile: + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xa_config.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xastir_udp_client.Po@am__quote@ + ++ifeq ($(host_cpu),sparc64) ++draw_symbols.o: draw_symbols.c ++@am__fastdepCC_TRUE@ $(patsubst -O%,-O0,$(COMPILE)) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< ++@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po ++endif ++ + .c.o: + @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po