From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 2 02:40:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6E8B391 for ; Sun, 2 Mar 2014 02:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8D1AC108C for ; Sun, 2 Mar 2014 02:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s222e086062736 for ; Sun, 2 Mar 2014 02:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s222e0wW062735; Sun, 2 Mar 2014 02:40:00 GMT (envelope-from gnats) Resent-Date: Sun, 2 Mar 2014 02:40:00 GMT Resent-Message-Id: <201403020240.s222e0wW062735@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Don Lewis Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F86F1EC for ; Sun, 2 Mar 2014 02:34:43 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 252A71062 for ; Sun, 2 Mar 2014 02:34:42 +0000 (UTC) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id s222YaSx001729 for ; Sat, 1 Mar 2014 18:34:36 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (localhost.catspoiler.org [127.0.0.1]) by mousie.catspoiler.org (8.14.7/8.14.7) with ESMTP id s222YZuK010329 for ; Sat, 1 Mar 2014 18:34:35 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: (from dl@localhost) by mousie.catspoiler.org (8.14.7/8.14.7/Submit) id s222YZVO010328; Sat, 1 Mar 2014 18:34:35 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201403020234.s222YZVO010328@mousie.catspoiler.org> Date: Sat, 1 Mar 2014 18:34:35 -0800 (PST) From: Don Lewis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/187186: [patch] graphics/jogl does not build on machines without gcc in base X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Don Lewis List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Mar 2014 02:40:00 -0000 >Number: 187186 >Category: ports >Synopsis: [patch] graphics/jogl does not build on machines without gcc in base >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 02 02:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Don Lewis >Release: FreeBSD 11.0-CURRENT i386 >Organization: FreeBSD Project >Environment: System: FreeBSD scratch.catspoiler.org 11.0-CURRENT FreeBSD 11.0-CURRENT #71 r262666M: Sat Mar 1 16:42:54 PST 2014 dl@scratch.catspoiler.org:/usr/obj/usr/src/sys/GENERICSMB i386 Ports revision r345674. apache-ant-1.9.3 >Description: The following error occurs when attempting to build jogl on recent versions of FreeBSD where clang is the default compiler and gcc is not installed: cx.build: [echo] Output lib name = gluegen-rt [mkdir] Created dir: /usr/ports/graphics/jogl/work/gluegen/build/obj [echo] Compiling src/native/unix/*.c [echo] user.dir=/usr/ports/graphics/jogl/work/jogl/make [cc] 1 total files to be compiled. BUILD FAILED /usr/ports/graphics/jogl/work/jogl/make/build.xml:1662: The following error occurred while executing this line: /usr/ports/graphics/jogl/work/jogl/make/build.xml:501: The following error occurred while executing this line: /usr/ports/graphics/jogl/work/gluegen/make/build.xml:458: The following error occurred while executing this line: /usr/ports/graphics/jogl/work/gluegen/make/build.xml:378: The following error occurred while executing this line: /usr/ports/graphics/jogl/work/gluegen/make/build.xml:343: Could not launch gcc: java.io.IOException: Cannot run program "gcc" (in directory "/usr/ports/graphics/jogl /work/gluegen/build/obj"): java.io.IOException: error=2, No such file or directory Total time: 17 seconds *** Error code 1 Stop. make: stopped in /usr/ports/graphics/jogl The problems is that apache-ant has a hardwired set of C compilers that it can use, and plain old cc is not one of them. The default is gcc. This probably should be considered as a bug in apache-ant ... Installing gcc from ports doesn't help because apache-ant is specifically looking for gcc and not gcc46, or whatever version of gcc we have installed. >How-To-Repeat: Attempt to build jogl on a machine without gcc in the $PATH. >Fix: The following patch to the graphics/jogl Makefile allows fakes apache-ant into using our system C compiler. On older FreeBSD versions this is actually gcc, so it should be a NOP. There doesn't seem to be any issue with using clang in place of gcc on newer versions of FreeBSD where it is the default compiler. compiler. Index: Makefile =================================================================== --- Makefile (revision 346717) +++ Makefile (working copy) @@ -46,6 +46,8 @@ BUILD_WRKSRC= ${WRKSRC}/jogl/make +MAKE_ENV+= PATH=${WRKDIR}:${PATH} + NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|g' \ @@ -53,6 +55,7 @@ @${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|g' \ -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/jogl/make/build.xml + ln -s /usr/bin/cc ${WRKDIR}/gcc do-install: .if !defined(NOPORTDOCS) >Release-Note: >Audit-Trail: >Unformatted: