From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 15:05:12 2013 Return-Path: Delivered-To: freebsd-java@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 ESMTP id 19FB69CD for ; Wed, 25 Sep 2013 15:05:12 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from cpsmtpb-ews01.kpnxchange.com (cpsmtpb-ews01.kpnxchange.com [213.75.39.4]) by mx1.freebsd.org (Postfix) with ESMTP id 859992C25 for ; Wed, 25 Sep 2013 15:05:10 +0000 (UTC) Received: from cpsps-ews17.kpnxchange.com ([10.94.84.183]) by cpsmtpb-ews01.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 25 Sep 2013 17:05:06 +0200 Received: from CPSMTPM-TLF101.kpnxchange.com ([195.121.3.4]) by cpsps-ews17.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 25 Sep 2013 17:05:06 +0200 Received: from sjakie.klop.ws ([212.182.167.131]) by CPSMTPM-TLF101.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 25 Sep 2013 17:05:06 +0200 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 9CA59642 for ; Wed, 25 Sep 2013 17:05:06 +0200 (CEST) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-java@freebsd.org Subject: Re: Using Apache ant without base gcc References: <20130925111601.GE33452@server.rulingia.com> Date: Wed, 25 Sep 2013 17:05:06 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <20130925111601.GE33452@server.rulingia.com> User-Agent: Opera Mail/12.16 (FreeBSD) X-OriginalArrivalTime: 25 Sep 2013 15:05:07.0067 (UTC) FILETIME=[9F000CB0:01CEBA00] X-RcptDomain: freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 15:05:12 -0000 On Wed, 25 Sep 2013 13:16:01 +0200, Peter Jeremy wrote: > [Please Cc me on any responses] > > Hi, > > I am the manintainer for graphics/jogl and the build cluster reports that > it's failing on head on both i386 and amd64 because there's no gcc: > > /wrkdirs/usr/ports/graphics/jogl/work/gluegen/make/build.xml:343: Could > not launch gcc: java.io.IOException: Cannot run program "gcc" (in > directory "/wrkdirs/usr/ports/graphics/jogl/work/gluegen/build/obj"): > java.io.IOException: error=2, No such file or directory > > The compiler is defined as: > > > > > > > If I add "USE_GCC=any" to the port Makefile then it still fails because > lang/gcc installs 'gcc46', rather than 'gcc'. > > If I change all the 'gcc' references to 'cc' (which would pick up > clang) then it fails with: > /tank/obj/usr/ports/graphics/jogl/work/gluegen/make/gluegen-cpptasks.xml:497: > cc is not a legal value for this attribute > where gluegen-cpptasks.xml:497 has > > > I'm a long way from an expert on ant and I've had a rummage around the > Internet but haven't found a solution. Can anyone with more ant-foo > help? > Hi, I looked at the documentation of the and tags. It does not look flexible enough to define your own compiler and it does not support clang yet. So I see these options: 1- lobby with the lang/gcc port maintainer to (optionally) install without a ${SUFFIX} set on FreeBSD 10 (where gcc is gone). 2- change the build.xml to directly use the target. http://ant.apache.org/manual/Tasks/exec.html 3- symlink /usr/ports/graphics/jogl/work/gcc -> /usb/bin/cc and add the work directory to the PATH before building the port. This will actually build with clang. Which might or might not work. I think option 2 is the most convenient and clear. Ronald.