FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Java

 
 
LinkBack Thread Tools
 
Old 02-20-2011, 04:36 PM
Dominique Belhachemi
 
Default Bug#614134: vtk: FTBFS on kfreebsd:Syntax error on token "enum", interface expected

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 <domibel@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-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1298223363.24601.23.camel@zuse">http://lists.debian.org/1298223363.24601.23.camel@zuse
 
Old 02-20-2011, 07:08 PM
Denis Barbier
 
Default Bug#614134: vtk: FTBFS on kfreebsd:Syntax error on token "enum", interface expected

On 2011/2/20 Dominique Belhachemi wrote:
>
> 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?

Hello Dominique,

You do not have to change anything, my patch works as is with
default-jdk on all architectures. A similar fix has already been
applied months ago, see
http://git.debian.org/?p=collab-maint/vtk.git;a=commit;h=db81316
We need this new one in VTK 5.6 because new files have been added into
Wrapping/Java/vtk/, and they use Java 5 features. The previous fix
dealt with automatically generated Java files.

I do not know how to best "emulate" architectures which do not default
to openjdk; but you can try
# rm /usr/lib/jvm/default-java
# ln -s java-1.5.0-gcj /usr/lib/jvm/default-java
Do not forget to reset this symlink when you have finished

Denis


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTikDKE=jQh9t24V5kJrU0XWPnXqab_DuaZJ9_-Kb@mail.gmail.com">http://lists.debian.org/AANLkTikDKE=jQh9t24V5kJrU0XWPnXqab_DuaZJ9_-Kb@mail.gmail.com
 
Old 02-21-2011, 06:23 PM
Dominique Belhachemi
 
Default Bug#614134: vtk: FTBFS on kfreebsd:Syntax error on token "enum", interface expected

Hi Denis,

great, it is working. It compiles well it on kfreebsd-i386.

I looked at the build logs and found this line
** /usr/lib/jvm/default-java/bin/javac -source 5

which links to ecj
* /usr/lib/jvm/default-java/bin/javac -> /usr/bin/ecj

Since ecj understands the -source option there is no need anymore to change the symbolic links.

Thanks again
Dominique



On Sun, Feb 20, 2011 at 3:08 PM, Denis Barbier <bouzim@gmail.com> wrote:



Hello Dominique,



You do not have to change anything, my patch works as is with

default-jdk on all architectures. *A similar fix has already been

applied months ago, see

* http://git.debian.org/?p=collab-maint/vtk.git;a=commit;h=db81316

We need this new one in VTK 5.6 because new files have been added into

Wrapping/Java/vtk/, and they use Java 5 features. *The previous fix

dealt with automatically generated Java files.



I do not know how to best "emulate" architectures which do not default

to openjdk; but you can try

*# rm /usr/lib/jvm/default-java

*# ln -s java-1.5.0-gcj /usr/lib/jvm/default-java

Do not forget to reset this symlink when you have finished



Denis
 

Thread Tools




All times are GMT. The time now is 06:55 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org