Issue 62801 - GCJ as JDK : javac at berkeleydb
Summary: GCJ as JDK : javac at berkeleydb
Status: CLOSED WONT_FIX
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: 680m156
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: 4.x
Assignee: maho.nakata
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-06 06:58 UTC by sparcmoz
Modified: 2012-03-16 21:01 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description sparcmoz 2006-03-06 06:58:39 UTC
This is only a problem where multiple different compilers exist on the builder
system:

In berkeleydb /usr/bin/javac is found but I configured for /usr/local/4.1/bin/gcj:

checking for javac... javac
checking if javac works... yes
checking for uudecode... no
configure: WARNING: I have to compile Test.class from scratch
checking if /usr/local/4.1/bin/gij works... yes
checking for javac... /usr/bin/javac
checking absolute path of javac... /usr/bin/javac
checking symlink for /usr/bin/javac... /etc/alternatives/javac

My configured environment:
JAVACMD=/usr/local/4.1/bin/gij
JAVACOMPILER=/usr/local/4.1/bin/gcj
JAVADOC=/usr/bin/gjdoc
JAVAINTERPRETER=/usr/local/4.1/bin/gij
JAVA_HOME=/usr/local/4.1

This patch against cws_src680_maho1 will build:
Index: makefile.mk
===================================================================
RCS file: /cvs/external/berkeleydb/makefile.mk,v
retrieving revision 1.30.6.2
diff -u -r1.30.6.2 makefile.mk
--- makefile.mk 4 Mar 2006 10:56:19 -0000       1.30.6.2
+++ makefile.mk 6 Mar 2006 06:50:09 -0000
@@ -88,7 +88,9 @@
 CONFIGURE_FLAGS+=--enable-java
 .IF "$(JDK)"=="gcj"
 JAVA:=$(JAVAINTERPRETER)
-.EXPORT : JAVA
+JAVAC:=$(JAVACOMPILER)
+JAVACFLAGS:= -C
+.EXPORT : JAVA JAVAC JAVACFLAGS
 .ENDIF
 .ENDIF

But what are the correct JAVACFLAGS?
Comment 1 maho.nakata 2006-03-06 08:08:35 UTC
re-assign to fix by maho in cws maho1
Comment 2 maho.nakata 2006-03-06 08:14:35 UTC
please consult solenv/inc/settings.mk
JAVAC+=--encoding=UTF-8 -O2 -fno-assert -Wno-deprecated -C
Comment 3 sparcmoz 2006-03-06 08:44:47 UTC
Sure I already looked in there and saw this:

#required arguments
.IF "$(JAVACACHE)" != ""
JAVAC=$(JAVACOMPILER) --encoding=ISO-8859-15 -O2 -fno-assert -Wno-deprecated -C
JAVAI=$(JAVAINTERPRETER) -Dgnu.gcj.precompiled.db.path=$(GCJ_DATABASE)
.ELSE
JAVAC=$(JAVACOMPILER)
JAVAI=$(JAVAINTERPRETER)
.ENDIF

Anyway I wondered about why it depends on JAVACACHE, later I need to disable
javacache too.

Maybe:
.IF "$(JDK)"== "gcj"

and not UTF-8?
Comment 4 maho.nakata 2006-03-06 09:04:33 UTC
sparcmoz:
understand. 
.IF "$(JAVACACHE)" != "" part is bit strange ;) so
when JAVACACHE is non-defined build might fail for us...
flag for JAVACLAGS canbe extracted from JAVAC using sed.
I'm working on this.
Comment 5 pavel 2006-05-17 07:51:26 UTC
please set target only when you know you'll make it.
Comment 6 Martin Hollmichel 2008-06-06 15:03:57 UTC
move target to 3.x
Comment 7 Pedro Giffuni 2012-03-16 03:29:43 UTC
Berkeleydb is not a problem anymore on Apache OpenOffice.