This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/30071] New: make install fails for libjava
- From: "r dot emrich at de dot tecosim dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Dec 2006 09:18:35 -0000
- Subject: [Bug libgcj/30071] New: make install fails for libjava
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Failure to relink libjvm.la
xgcc: /SCRATCH/gcc-build/HP-UX/hppa2.0w-hp-hpux11.00/install/lib/libgcj.sl: No
such file or directory
libtool: install: error: relink `libjvm.la' with the above command before
installing it
I tracked it down to an install sequence issue.
Makefile.in in the libjava directory contains the following install-exec-am
tag:
install-exec-am: install-binPROGRAMS install-binSCRIPTS \
install-dbexecDATA install-dbexecLTLIBRARIES \
install-toolexeclibLTLIBRARIES install-toolexecmainlibDATA
@$(NORMAL_INSTALL)
$(MAKE) $(AM_MAKEFLAGS) install-exec-hook
This installs binPROGRAMS and dbexecLTLIBRARIES before toolexeclibLTLIBRARIES
what gives warnings like this:
/bin/sh ./libtool --mode=install
/appl/shared/gnu/Linux/i686-pc-linux-gnu/bin/install -c 'gij'
'/SCRATCH/gcc-build/Linux/i686-pc-linux-gnu/install/bin/gij'
libtool: install: warning: `libgij.la' has not been installed in
`/SCRATCH/gcc-build/Linux/i686-pc-linux-gnu/install/lib'
libtool: install: warning:
`/SCRATCH/gcc-build/Linux/i686-pc-linux-gnu/gcc-4.2.0/gcc-4.2.0/i686-pc-linux-gnu/libjava/libgcj.la'
has not been installed in
`/SCRATCH/gcc-build/Linux/i686-pc-linux-gnu/install/lib'
and fails on relinking of libjvm.la
xgcc: /SCRATCH/gcc-build/HP-UX/hppa2.0w-hp-hpux11.00/install/lib/libgcj.sl: No
such file or directory
libtool: install: error: relink `libjvm.la' with the above command before
installing it
I changed the install-exec-am tag in the Makefile.in to:
install-exec-am: install-toolexeclibLTLIBRARIES install-toolexecmainlibDATA \
install-dbexecLTLIBRARIES install-dbexecDATA \
install-binPROGRAMS install-binSCRIPTS
@$(NORMAL_INSTALL)
$(MAKE) $(AM_MAKEFLAGS) install-exec-hook
With this modification bootstrap, make check, and make install succeeds for at
least i686-pc-linux-gnu and hppa2.0w-hp-hpux11.00.
I'm not familiar with the automake machinery. So, somebody who knows the magics
may help to change the configuration accordingly.
--
Summary: make install fails for libjava
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: r dot emrich at de dot tecosim dot com
GCC build triplet: hppa2.0w-hp-hpux11.00
GCC host triplet: hppa2.0w-hp-hpux11.00
GCC target triplet: hppa2.0w-hp-hpux11.00
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30071