Erik Poupaert
2004-03-21 19:14:42 UTC
Hi
While developing, and when compiling to bytecode, while the sources still contain
errors (syntax & grammar), and invoking gcj from a bash script, the output on stderr
with the error messages sometimes disappears. I have to take the compilation
instruction out of the bash script to see what gcj outputs on stderr.
For example, when compiling to bytecode from within bash, I can't see what the
errors are:
gcj -C -fCLASSPATH=lcbsmatrix/src \
-d ../bld-app-lcbsmatrix/cls \
lcbsmatrix/src/math/lcbsmatrix/CombinatorialStream.java \
lcbsmatrix/src/math/lcbsmatrix/Matrix.java \
lcbsmatrix/src/math/lcbsmatrix/Geometry.java \
lcbsmatrix/src/math/lcbsmatrix/Geometries.java \
lcbsmatrix/src/math/lcbsmatrix/Solution.java \
lcbsmatrix/src/math/lcbsmatrix/GeometryStream.java
I have to invoke this instruction, directly on the command line, to see the errors.
By the way, I haven't done any redirection of stdout or stderr (this command as the
only one in a bash script, still creates the problem).
I never had this problem with earlier versions of gcj or bash. In the meanwhile I've
probably upgraded both, and now the problem occurs.
Does anybody know why this happens?
Greetings
Erik
The versions are:
$ uname -a
uname -a
Linux linuxpresario 2.4.20-gentoo-r5 #1 Tue Aug 19 22:36:45 UTC 2003 i686 Mobile
Intel(R) Celeron(R) CPU 1.70GHz GenuineIntel GNU/Linux echo -ne
"\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"
$ bash --version
bash --version
GNU bash, version 2.05b.0(1)-release (i686-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"
$ gcj -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcj.spec
rename spec lib to liborig
Configured with: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
--enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long
--disable-checking --enable-cstdio=stdio --enable-clocale=generic
--enable-__cxa_atexit --enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib --with-x
--disable-multilib Thread model: posix
gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
While developing, and when compiling to bytecode, while the sources still contain
errors (syntax & grammar), and invoking gcj from a bash script, the output on stderr
with the error messages sometimes disappears. I have to take the compilation
instruction out of the bash script to see what gcj outputs on stderr.
For example, when compiling to bytecode from within bash, I can't see what the
errors are:
gcj -C -fCLASSPATH=lcbsmatrix/src \
-d ../bld-app-lcbsmatrix/cls \
lcbsmatrix/src/math/lcbsmatrix/CombinatorialStream.java \
lcbsmatrix/src/math/lcbsmatrix/Matrix.java \
lcbsmatrix/src/math/lcbsmatrix/Geometry.java \
lcbsmatrix/src/math/lcbsmatrix/Geometries.java \
lcbsmatrix/src/math/lcbsmatrix/Solution.java \
lcbsmatrix/src/math/lcbsmatrix/GeometryStream.java
I have to invoke this instruction, directly on the command line, to see the errors.
By the way, I haven't done any redirection of stdout or stderr (this command as the
only one in a bash script, still creates the problem).
I never had this problem with earlier versions of gcj or bash. In the meanwhile I've
probably upgraded both, and now the problem occurs.
Does anybody know why this happens?
Greetings
Erik
The versions are:
$ uname -a
uname -a
Linux linuxpresario 2.4.20-gentoo-r5 #1 Tue Aug 19 22:36:45 UTC 2003 i686 Mobile
Intel(R) Celeron(R) CPU 1.70GHz GenuineIntel GNU/Linux echo -ne
"\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"
$ bash --version
bash --version
GNU bash, version 2.05b.0(1)-release (i686-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"
$ gcj -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcj.spec
rename spec lib to liborig
Configured with: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
--enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long
--disable-checking --enable-cstdio=stdio --enable-clocale=generic
--enable-__cxa_atexit --enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib --with-x
--disable-multilib Thread model: posix
gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)