This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/30035] New: libjava cannot be built when objdir != srcdir
- From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2006 04:16:28 -0000
- Subject: [Bug java/30035] New: libjava cannot be built when objdir != srcdir
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
"Installing GCC" [1] explicitly encourages building the source code
with objdir separate from srcdir.
[1] http://gcc.gnu.org/install/configure.html
In particular:
mkdir objdir
cd objdir
srcdir/configure [options] [target]
Most of gcc builds fine that way except libjava, which fails to build
because:
1. It does not attempt to create a sub directory for nor configure
libltdl at all.
2. libjava/libltdl/config.sub assumes that ../../config.sub can be
found. The intention is to use srcdir/config.sub, but it cannot
be refered to this way when objdir != srcdir.
Environment:
System: SunOS types 5.7 Generic_106541-24 sun4u sparc SUNW,Ultra-250
Architecture: sun4
these are not relevant
host: sparc-sun-solaris2.7
build: sparc-sun-solaris2.7
target: sparc-sun-solaris2.7
configured with: ../gcc-4.1.1/configure --enable-languages=c,c++ --with-gnu-as
--with-gnu-ld --prefix=/cs/church-data/gcc
How-To-Repeat:
Build gcc with at least --enable-languages=java, in a separate objdir
than srcdir.
------- Comment #1 from liulk at types dot bu dot edu 2006-12-01 04:16 -------
Fix:
A Makefile target in libjava should be devised to configure libltdl
first, and the relative path should be fixed somehow.
--
Summary: libjava cannot be built when objdir != srcdir
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: liulk at types dot bu dot edu
GCC build triplet: sparc-sun-solaris2.7
GCC host triplet: sparc-sun-solaris2.7
GCC target triplet: sparc-sun-solaris2.7
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30035