This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libgcj build bug


On Aug  2, 1999, Anthony Green <green@cygnus.com> wrote:

> This is a known problem with GCC on x86 solaris.  Try finishing up
> with -g0 instead of -g.

> There's a configure test in libgcj that is supposed to determine if
> the bug exists and switch to -g0.  I wonder why it isn't working.  Do
> you see the result for the configure test "for g++ -g jboolean bug"?

It does the detect the problem (at least for me), but config.status
doesn't fix the Makefile because CONFIG_FILES isn't *exactly* equal to
Makefile.  It had worked for me because automake was kind enough to
run config.status with CONFIG_FILES=Makefile after I had changed
configure.in :-(

Here's a patch for libgcj-2.95:

Index: libjava/ChangeLog
from  Alexandre Oliva  <oliva@dcc.unicamp.br>
	
	* configure.in (CXXFLAGS): The buggy g++ -g work-around was buggy
	itself; check for Makefile *anywhere* in CONFIG_FILES.
	* configure: Rebuilt.
	
Index: libjava/configure.in
===================================================================
RCS file: /cvs/java/libgcj/libjava/configure.in,v
retrieving revision 1.11.2.5
diff -u -r1.11.2.5 configure.in
--- libjava/configure.in	1999/08/01 23:33:03	1.11.2.5
+++ libjava/configure.in	1999/08/03 06:45:11
@@ -549,11 +549,11 @@
 ])
 if test "x$libjava_cv_gxx_debug_jboolean_bug" = xyes; then
   JCFLAGS="$JCFLAGS -g0"
-  dnl Top-leve Makefile overrides CXXFLAGS, and AM_CXXFLAGS is before it,
-  dnl so we have to use this dirty hack
+  dnl Top-level Makefile overrides CXXFLAGS, and AM_CXXFLAGS is before it,
+  dnl so we have to use this dirty hack :-(
   dnl Note that, even though this code is within an if statement, it is
   dnl unconditionally added to config.status, so we have to test again.
-  AC_OUTPUT_COMMANDS([case " $CONFIG_FILES " in " Makefile ")
+  AC_OUTPUT_COMMANDS([case " $CONFIG_FILES " in *" Makefile "*)
      if test "x$libjava_cv_gxx_debug_jboolean_bug" = xyes; then
       rm -f Makefile.new
       sed < Makefile > Makefile.new \

BTW, is anybody working on the g++ -g problem?

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]