Bug 26829 - broken classpath install (missed tools.zip), zip or fastjar not found
Summary: broken classpath install (missed tools.zip), zip or fastjar not found
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: 4.2.0
Assignee: Tom Tromey
URL:
Keywords:
: 26852 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-23 16:43 UTC by Pawel Sikora
Modified: 2006-03-29 21:45 UTC (History)
2 users (show)

See Also:
Host: x86-64-linux
Target: x86-64-linux
Build: x86-64-linux
Known to work:
Known to fail:
Last reconfirmed: 2006-03-27 18:36:10


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Sikora 2006-03-23 16:43:57 UTC
(...)
rm -rf classes
test -z "/usr/share/classpath/tools" || mkdir -p -- "/tmp/gcc-4.2.0-root-pluto/usr/share/classpath/tools"
 /usr/bin/install -c -m 644 '../../../../../libjava/classpath/tools/tools.zip' '/tmp/gcc-4.2.0-root-pluto/usr/share/classpath/tools/tools.zip'
/usr/bin/install: cannot stat `../../../../../libjava/classpath/tools/tools.zip': No such file or directory
make[6]: *** [install-TOOLSDATA] Error 1
make[6]: Leaving directory `/home/users/pluto/rpm/BUILD/trunk/builddir/x86_64-pld-linux/libjava/classpath/tools'
Comment 1 Andrew Pinski 2006-03-23 16:56:28 UTC
I was just able to boostrap and install with reversion 112250.

What options are you using to configure with and how are you building/install?
Comment 2 Pawel Sikora 2006-03-23 17:04:28 UTC
$ cd ~/rpm/BUILD/trunk/builddir/gcc
$ ./g++ -B./ -v

Reading specs from ./specs
Target: x86_64-pld-linux
Configured with: ../configure --prefix=/usr --with-local-prefix=/usr/local
--libdir=/usr/lib64 --libexecdir=/usr/lib64 --infodir=/usr/share/info
--mandir=/usr/share/man --x-libraries=/usr/lib64 --enable-shared
--enable-threads=posix --enable-languages=c,c++,fortran,objc,obj-c++,ada,java
--enable-c99 --enable-long-long --enable-multilib --enable-nls
--disable-werror --with-gnu-as --with-gnu-ld --with-demangler-in-ld
--with-system-zlib --with-slibdir=/lib64 --without-system-libunwind
--enable-cmath --with-long-double-128
--with-gxx-include-dir=/usr/include/c++/4.2.0 --disable-libstdcxx-pch
--enable-__cxa_atexit --enable-libstdcxx-allocator=new
--with-qt4dir=/usr/lib64/qt4 --disable-libjava-multilib --enable-libgcj
--enable-libgcj-multifile --enable-libgcj-database --enable-gtk-cairo
--enable-java-awt=qt,gtk,xlib --enable-jni --enable-xmlj --enable-alsa
--enable-dssi x86_64-pld-linux
Thread model: posix
gcc version 4.2.0 20060323 (experimental) (PLD-Linux)


revision 112317.
Comment 3 Pawel Sikora 2006-03-23 17:06:13 UTC
%{__make} \
        GCJFLAGS="%{rpmcflags}" \
        BOOT_CFLAGS="%{rpmcflags}" \
        STAGE1_CFLAGS="%{rpmcflags} -O0" \
        GNATLIBCFLAGS="%{rpmcflags}" \
        LDFLAGS_FOR_TARGET="%{rpmldflags}" \
        mandir=%{_mandir} \
        infodir=%{_infodir}


%{__make} -j1 install \
        mandir=%{_mandir} \
        infodir=%{_infodir} \
        DESTDIR=$RPM_BUILD_ROOT
Comment 4 Andrew Pinski 2006-03-23 17:15:33 UTC
Can you try configuring with an absolute path instead of a relative one?
Comment 5 Pawel Sikora 2006-03-23 18:53:38 UTC
(In reply to comment #4)
> Can you try configuring with an absolute path instead of a relative one?
> 

here's a fix.

Index: trunk/libjava/classpath/configure.ac
===================================================================
--- trunk/libjava/classpath/configure.ac        (wersja 112328)
+++ trunk/libjava/classpath/configure.ac        (kopia robocza)
@@ -552,6 +552,10 @@
 dnl and zip, however GNU provides both so it should be okay
 dnl -----------------------------------------------------------
 AC_PATH_PROG(FIND, find)
+AC_PATH_PROG(ZIP, zip)
+if test "x$ZIP" = x; then
+  AC_MSG_ERROR([zip is required])
+fi

 dnl -----------------------------------------------------------
 dnl Specify what to install (install only glibj.zip by default)
Comment 6 Andrew Pinski 2006-03-24 17:14:42 UTC
*** Bug 26852 has been marked as a duplicate of this bug. ***
Comment 7 Debian GCC Maintainers 2006-03-24 17:24:41 UTC
testing fix ...

--- libjava/configure.ac~       2006-03-14 01:03:16.000000000 +0000
+++ libjava/configure.ac        2006-03-24 18:14:55.000000000 +0000
@@ -340,6 +340,7 @@
   # We need this as qt is disabled by default in classpath.
   ac_configure_args="$ac_configure_args --enable-qt-peer"
 fi
+ac_configure_args="$ac_configure_args --with-fastjar=$ZIP"
 dnl --with-gcj=$GCJ
 dnl --with-javah=$GCJH
 dnl gjdoc?
Comment 8 Tom Tromey 2006-03-27 18:36:10 UTC
I'll handle this when I remove fastjar.
Comment 9 Tom Tromey 2006-03-29 21:45:20 UTC
This was fixed by the patch for PR 26901.