Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jul 2007 08:04:25 GMT
From:      Scot Hetzel <swhetzel@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/114427: devel/gccxml: Allow port to build on -CURRENT
Message-ID:  <200707090804.l6984P9w012890@www.freebsd.org>
Resent-Message-ID: <200707090810.l698A2IY029002@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         114427
>Category:       ports
>Synopsis:       devel/gccxml: Allow port to build on -CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 09 08:10:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Scot Hetzel
>Release:        7.0-CURRENT
>Organization:
>Environment:
FreeBSD hp010 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jul  4 17:39:08 CDT 2007     swhetzel@hp010:/usr/src/7x/sys-p4/amd64/compile/GENERIC.debug  amd64

>Description:
Since the import of GCC 4.2, this port will no longer build on -CURRENT.


>How-To-Repeat:
cd /usr/ports/devel/gccxml
make build -DTRYBROKEN
:
Scanning dependencies of target genconstants
[ 11%] Building C object GCC/gcc/CMakeFiles/genconstants.dir/genconstants.o
[ 11%] Building C object GCC/gcc/CMakeFiles/genconstants.dir/rtl.o
[ 11%] Building C object GCC/gcc/CMakeFiles/genconstants.dir/read-rtl.o
/usr/ports/devel/gccxml/work/gccxml-0.6.0/GCC/gcc/read-rtl.c: In function 'read_rtx':
/usr/ports/devel/gccxml/work/gccxml-0.6.0/GCC/gcc/read-rtl.c:653: error: lvalue required as increment operand
*** Error code 1

Stop in /usr/ports/devel/gccxml/work/gccxml-build.
*** Error code 1

>Fix:
Force the port to build with GCC 3.4 on OSVERSION >= 700042

See attached patch:

Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/gccxml/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile	20 Jun 2007 01:56:15 -0000	1.11
+++ Makefile	9 Jul 2007 07:54:42 -0000
@@ -22,6 +22,14 @@
 
 PLIST_SUB=	PORTVERSION=0.6
 
+CMAKE?=		${LOCALBASE}/bin/cmake
+CMAKE_ARGS=	-DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
+		-DGCCXML_MAN_DIR:PATH="/man" \
+		-DCMAKE_C_COMPILER:STRING="${CC}" \
+		-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
+		-DCMAKE_CXX_COMPILER:STRING="${CXX}" \
+		-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}"
+
 post-extract:
 	${MKDIR} ${WRKSRC}
 
@@ -31,15 +39,14 @@
 	${REINPLACE_CMD} -e "s,x86_64,amd64," \
 		${WRKSRC}/../gccxml-0.6.0/GCC/gcc/config.gcc
 	cd ${WRKSRC} && \
-	${LOCALBASE}/bin/cmake ../${DISTNAME} -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
-	  -DGCCXML_MAN_DIR:PATH="/man"
+	${CMAKE} ../${DISTNAME} ${CMAKE_ARGS}
 
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == "alpha"
 BROKEN=		Build fails on alpha
-.elif ${OSVERSION} >= 700000
-BROKEN=		Does not compile
+.elif ${OSVERSION} >= 700042
+USE_GCC=	3.4
 .endif
 
 .include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



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