[Bug other/11615] New: make install crashes on libtool install of files in libffi and libjava
rlw at cinci dot rr dot com
gcc-bugzilla@gcc.gnu.org
Mon Jul 21 15:31:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11615
Summary: make install crashes on libtool install of files in
libffi and libjava
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rlw at cinci dot rr dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: 3.3
GCC host triplet: Solaris Sparc 2.7 Generic_106541-23
GCC target triplet: Solaris Sparc 2.7 Generic_106541-23
The Makefile for sparc-sun-solaris2.7/sparcv9/libffi/ and sparc-sun-
solaris2.7/sparcv9/libjava fails when attempting to install files with the
libtool command. I will break down the individual issues below. First we'll
do libjava
target: install-toolexeclibLTLIBRARIES on roughly line 3871. The install
command is
$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(toolexeclibdir)/$$p; \
And the value of $INSTALL is
INSTALL = /bin/ksh /export/apps/software_orig/gcc/gcc-3.3/install-sh -c
I also get the same error for target install-binPROGRAMS on roughly line 3940.
When run, this command generates the following style of error when doing a file
libtool: install: `/usr/local/gcc-3.3/lib/sparcv9/lib-org-xml-sax.la'
is not a directory
Try `libtool --help --mode=install' for more information.
/bin/ksh ./libtool --mode=install /bin/ksh
/export/apps/software_orig/gcc/gcc-3.3/install-sh -c lib-org-w3c-dom.la
/usr/local/gcc-3.3/lib/sparcv9/lib-org-w3c-dom.la
libtool: install: `/usr/local/gcc-3.3/lib/sparcv9/lib-org-w3c-dom.la'
is not a directory
Try `libtool --help --mode=install' for more information.
make[5]: *** [install-toolexeclibLTLIBRARIES] Error 1
make[5]: Leaving directory
`/export/apps/software_orig/gcc/gcc-3.3/objdir/sparc-sun-solaris2.7/spa
rcv9/libjava'
make[4]: *** [install-am] Error 2
make[4]: Leaving directory
`/export/apps/software_orig/gcc/gcc-3.3/objdir/sparc-sun-solaris2.7/spa
rcv9/libjava'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory
`/export/apps/software_orig/gcc/gcc-3.3/objdir/sparc-sun-solaris2.7/spa
rcv9/libjava'
make[2]: *** [multi-do] Error 1
make[2]: Leaving directory
`/export/apps/software_orig/gcc/gcc-3.3/objdir/sparc-sun-solaris2.7/lib
java'
make[1]: *** [install-multi] Error 2
Now libffi:
the target = install-toolexeclibLTLIBRARIES on approximately line 436.
The code fragment is as follows
$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(toolexeclibdir)/$$p; \
where $INSTALL is
$(LIBTOOL) --mode=install $(INSTALL_LIB) $$p $(DESTDIR)$(toolexeclibdir)/$$p;
\
This gives the same error as for libjava.
I worked around the problem by creating a new INSTALL command $INSTALL_LIB and
set it equal to "cp" which seemed to fix the problem and libtool was then able
to install the library. I also then needed to manually run "make install" in
each lib directory and remove the targets install-target-libffi and install-
target-libjava from INSTALL_TARGET_MODULES in the primary Makefile.
Please let me know if you need any further information.
More information about the Gcc-bugs
mailing list