Using Apache ant without base gcc

Peter Jeremy peter at rulingia.com
Thu Nov 21 18:12:15 UTC 2013


I've tried asking this on -java without any response so I'm trying a wider
audience.

I am the manintainer for graphics/jogl and the build cluster reports
that it's failing on 10-stable and 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:
    <compiler id="compiler.cfg.freebsd" name="gcc">
    </compiler>
    <compiler id="compiler.cfg.freebsd.amd64" name="gcc">
      <compilerarg value="-fPIC"/>
    </compiler>

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
  <compiler id="compiler.cfg.freebsd" name="cc">

Whilst ant isn't that uncommon in the ports tree, graphics/jogamp-jogl
is the only other port I've found that uses ant in this way and it is
also failing.  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?

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 326 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20131122/6e6d8dec/attachment.sig>


More information about the freebsd-ports mailing list