GIJ mystery

Jacek Konieczny jajcus at
Sun May 21 17:19:00 CEST 2006

[root at nic ~]# antlr
[root at nic ~]# chroot /vol/chroot_ac_i686/
[root at nic(ac-i686) /]# antlr
ANTLR Parser Generator   Version 2.7.5 (20060521)   1989-2005
usage: java antlr.Tool [args] file.g
  -o outputDir       specify output directory where all output
  -glib superGrammar specify location of supergrammar file.
  -debug             launch the ParseView debugger upon parser
  -html              generate a html file from your grammar.
  -docbook           generate a docbook sgml file from your grammar.
  -diagnostic        generate a textfile with diagnostics.
  -trace             have all rules call traceIn/traceOut.
  -traceLexer        have lexer rules call traceIn/traceOut.
  -traceParser       have parser rules call traceIn/traceOut.
  -traceTreeParser   have tree parser rules call traceIn/traceOut.
  -h|-help|--help    this message
[root at nic(ac-i686) /]# su -
su(pam_unix)[15172]: session opened for user root by (uid=0)
[root at nic(ac-i686) ~]# antlr
[root at nic(ac-i686) /]# su - jacek
[jacek at nic(ac-i686) ~]$ antlr

"antlr" is script doing: CLASSPATH=/usr/share/java/antlr-2.7.5.jar /usr/bin/gij antlr.Tool

And it works only just after entering the chroot. After "su -" (to root or
anything else) it crashes. 

I would like to keep using gcc-java for antlr, so it is available for all of our architectures,
but it just don't work (with the single exception provided above) :-(


More information about the pld-devel-en mailing list