This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/30035] libjava cannot be built when objdir != srcdir
- From: "liulk at types dot bu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2007 02:11:31 -0000
- Subject: [Bug java/30035] libjava cannot be built when objdir != srcdir
- References: <bug-30035-13670@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from liulk at types dot bu dot edu 2007-01-30 02:11 -------
(In reply to comment #3)
> I always build GCC with a separate objdir, and I don't see this problem.
Make sure you're building java, so --enable-languages contains at least the
'java' target or 'all'. In the case of 'all', the only way to be sure is of
course to specify 'java' explicitly. You should check that configure gives you
the following line, and 'java' is one of the languages to be built:
The following languages will be built: c,c++,fortran,java,objc
Obviously, language targets such as c, c++, fortran, ada, obj-c, etc. don't
make use of libjava. If you're not building java, then libjava is not going to
be built, and the build process would succeed fine. I can build all the other
language targets just fine. I just can't build java because of libjava build
error.
> Furthermore my 4.1 tree has a copy of config.{guess,sub} in libjava/libltdl.
> I believe these are used by the libltdl build.
I see these files too, but they're not being referenced by libjava/Makefile.am,
which means the build system doesn't think libltdl exists. Furthermore,
libjava/libltdl/config.sub assumes it will find ../../config.sub, which is not
the case when srcdir != objdir.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30035