I am CC'ing debian-java to get some additional help.
Hi Denis, thanks for looking into this issue. Unfortunately, the wrapper around gcj-4.4 is filtering out the -source option. $ less /usr/bin/gcj-wrapper-4.4 elsif ($arg eq '-source' or $arg eq '-sourcepath' or $arg eq '-target') { # An unsupported option with a following argument. $ignoreNextArg = 1; } If I call the compiler directly I am getting gcj-4.4: unrecognized option '-source' I think cmake is looking for the 'java -version' value. $ java -version java version "1.5.0" gij (GNU libgcj) version 4.4.5 That is probably the reason why it reports misleadingly -- Java version 1.5.0 configured successfully! But the compiler seems to be using a different language compliance level (< 1.5). Otherwise it would know the 'enum' type. So, how do I set the language compliance level? Or should I use a different compiler on kfreebsd and hppa? Cheers -Dominique On Sun, 2011-02-20 at 17:00 +0100, Denis Barbier wrote: > tags 614134 pending > severity 614134 serious > thanks > > Hi Dominique, > > I just fixed this bug in git. > > Denis > > 2011/2/19 Dominique Belhachemi <domi...@debian.org>: > > Source: vtk > > Version: 5.6.1-2 > > > > Hi, > > > > The package doesn't longer build on kfreebsd, there seems to be a issue with > > the Java language compliance level. Java's "enum" needs at least level 1.5. > > > > > > > > cd Build && cmake .. > > -- The C compiler identification is GNU > > -- The CXX compiler identification is GNU > > -- Check for working C compiler: /usr/bin/gcc > > -- Check for working C compiler: /usr/bin/gcc -- works > > > > > > [...] > > -- Java version 1.5.0 configured successfully! > > [...] > > 1. ERROR in > > /build/buildd-vtk_5.6.1-2-kfreebsd-amd64-cCPTMt/vtk-5.6.1/Build/java/vtk/CellType.java > > (at line 8) > > public enum CellType { > > ^^^^ > > > > > > Syntax error on token "enum", interface expected > > [...] > > > > > > The full build logs for kfreebsd-amd64 and kfreebsd-i386 can be found here: > > https://buildd.debian.org/fetch.cgi?pkg=vtk&arch=kfreebsd-amd64&ver=5.6.1-2&stamp=1298088790&file=log&as=raw > > > > > > https://buildd.debian.org/fetch.cgi?pkg=vtk&arch=kfreebsd-i386&ver=5.6.1-2&stamp=1298088215&file=log&as=raw > > > > > > > > Thanks > > Dominique > > > > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org