Bug 52601 - Gcc build fails at "Making all in tools" with "find: bad option -path" and "find: path-list predicate-list"
Summary: Gcc build fails at "Making all in tools" with "find: bad option -path" and "f...
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.4.4
: P3 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-16 13:32 UTC by birender.singh
Modified: 2012-03-23 02:08 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2012-03-16 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description birender.singh 2012-03-16 13:32:49 UTC
Machine Details: 
1) uname -a
   SunOS slimsol9t4 5.9 Generic_122300-30 sun4u sparc SUNW,Sun-Fire-V240
2) isainfo -kv
   64-bit sparcv9 kernel modules
3) ./config.guess
    sparc-sun-solaris2.9


Downloaded gcc-4.4.4.tar.gz, gmp-4.1.tar and mpfr-2.4.0.tar.
configured, make and make install the gmp and mpfr successfully but received error while executing the make command for gcc-4.4.4

echo $LD_LIBRARY_PATH
/usr/bin:/usr/local/lib:/usr/ccs/lib:/els/install/gcc-3.4.5/lib:/els/install/jdk1.6.0_16/jre/lib/sparc/:/els/install/jdk1.6.0_16/jre/lib/sparc/client:/els/install/staf/lib:/els/install/staf/lib/JSTAF.zip:/els/install/staf/lib/JSTAF.jar:/els/install/staf/services/STAFHTTP.jar:/els/install/staf/lib/java12:/usr/openwin/lib


echo $PATH
/els/install/jdk1.6.0_16/bin/:/els/install/gcc-3.4.5/bin:/els/install/staf/bin:/els/install/staf/services/STAFHTTP.jar:/usr/local/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/platform/SUNW,Sun-Fire-V240/sbin:/opt/sun/bin:/opt/VRTS/bin:/etc/vx/bin:/opt/SUNWexplo/bin:/opt/SUNWsneep/bin


Configured gcc with following command:
../../biru/gcc444/gcc-4.4.4/configure --prefix=/els/install/biru/local/gcc --build=sparc-sun-solaris2.9 --with-gmp=/els/install/biru/local/gmp --with-mpfr=/els/install/biru/local/mpfr

and then executed: make 

Below are the error message received:

make[6]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/sparcv9/libjava/classpath/scripts'
Making all in tools
make[6]: Entering directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/sparcv9/libjava/classpath/tools'
Makefile:841: warning: overriding commands for target `gjdoc'
Makefile:776: warning: ignoring old commands for target `gjdoc'
find ../../../../../../../biru//gcc444/gcc-4.4.4/libjava/classpath/tools/external/asm -name '*.java' -print > asm.lst
find ../../../../../../../biru//gcc444/gcc-4.4.4/libjava/classpath/tools/gnu/classpath/tools \
             ../../../../../../../biru//gcc444/gcc-4.4.4/libjava/classpath/tools/com/sun/javadoc \
             ../../../../../../../biru//gcc444/gcc-4.4.4/libjava/classpath/tools/com/sun/tools/doclets \
             ../../../../../../../biru//gcc444/gcc-4.4.4/libjava/classpath/tools/com/sun/tools/javadoc \
             ../../../../../../../biru//gcc444/gcc-4.4.4/libjava/classpath/tools/com/sun/tools/javac \
             ../../../../../../../biru//gcc444/gcc-4.4.4/libjava/classpath/tools/com/sun/tools/javah \
             ../../../../../../../biru//gcc444/gcc-4.4.4/libjava/classpath/tools/sun/rmi/rmic \
             -path '*gnu/classpath/tools/gjdoc' pattern -prune -o -path '*gnu/classpath/tools/doclets' pattern -prune -o GtternJDOC_EX = -path '*gnu/classpath/tools/gjdoc' pattern -prune -o -path '*gnu/classpath/tools/taglets' pattern -prune -o -path '*com/sun/javadoc' pattern -prune -o -path '*com/sun/tools/doclets' pattern -prune -o -path '*com/sun/tools/javadoc' pattern -prune -o \
             -name '*.java' -print > classes.lst
find: bad option -path
find: path-list predicate-list
make[6]: *** [tools.zip] Error 1
make[6]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/sparcv9/libjava/classpath/tools'
make[6]: Entering directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/sparcv9/libjava/classpath'
true  DO=all multi-do # make
make[6]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/sparcv9/libjava/classpath'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/sparcv9/libjava/classpath'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/sparcv9/libjava'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/libjava'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/els/install/gccbuild/gcc4'
make: *** [all] Error 2


Thanks,
-Biru
Comment 1 Richard Biener 2012-03-16 13:38:21 UTC
GCC 4.4.x are no longer supported.  I suggest you try GCC 4.6.x and follow
the install instructions for Solaris 2 closely.
Comment 2 Eric Botcazou 2012-03-17 09:59:59 UTC
Do not build libjava if you don't need it (configure with --disable-libgcj).

If you do, you need the GNU version of various tools, in particular 'find'.
Comment 3 birender.singh 2012-03-20 09:26:01 UTC
Thanks Eric Botcazou for the valuable suggestion.

I downloaded,findutils-4.4.0.tar from gnu website, compiled and installed on my machine.


After the installation of gnu "find" i compiled gcc-4.4.4 again. This time it took more then 4 hour to compile, and at last throws error as mentioned below, But still i installed this and checked the binnaries, found all the required binnaries were available at prefixed location. Currentlly am able to use this gcc and g++ binnaries but not sure about the complete compilation and installation of gcc-4.4.4

Is this correct or should i again compiled gcc-4.4.4 to get complete successful compilation ?

. 
.
.
.
libtool: link: ranlib .libs/libgfortran.a
libtool: link: ( cd ".libs" && rm -f "libgfortran.la" && ln -s "../libgfortran.la" "libgfortran.la" )
true  DO=all multi-do # make
make[6]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/sparcv9/libgfortran'
make[5]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/sparcv9/libgfortran'
make[4]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/libgfortran'
make[3]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/libgfortran'
make[2]: Leaving directory `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/libgfortran'
Checking multilib configuration for boehm-gc...
Configuring in sparc-sun-solaris2.9/boehm-gc
configure: loading cache ./config.cache
configure: error: `CXX' has changed since the previous run:
configure:   former value:  `/els/install/gccbuild/gcc4/./gcc/g++ -B/els/install/gccbuild/gcc4/./gcc/ -nostdinc++  -L/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/libstdc++-v3/src -L/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/libstdc++-v3/src/.libs -B/els/install/biru/local/gcc/sparc-sun-solaris2.9/bin/ -B/els/install/biru/local/gcc/sparc-sun-solaris2.9/lib/ -isystem /els/install/biru/local/gcc/sparc-sun-solaris2.9/include -isystem /els/install/biru/local/gcc/sparc-sun-solaris2.9/sys-include'
configure:   current value: `/els/install/gccbuild/gcc4/./gcc/g++ -B/els/install/gccbuild/gcc4/./gcc/ -nostdinc++ -nostdinc++ -I/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/libstdc++-v3/include/sparc-sun-solaris2.9 -I/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/libstdc++-v3/include -I/els/install/biru/gcc444/gcc-4.4.4/libstdc++-v3/libsupc++ -I/els/install/biru/gcc444/gcc-4.4.4/libstdc++-v3/include/backward -I/els/install/biru/gcc444/gcc-4.4.4/libstdc++-v3/testsuite/util -L/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/libstdc++-v3/src -L/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/libstdc++-v3/src/.libs -B/els/install/biru/local/gcc/sparc-sun-solaris2.9/bin/ -B/els/install/biru/local/gcc/sparc-sun-solaris2.9/lib/ -isystem /els/install/biru/local/gcc/sparc-sun-solaris2.9/include -isystem /els/install/biru/local/gcc/sparc-sun-solaris2.9/sys-include'
configure: error: in `/els/install/gccbuild/gcc4/sparc-sun-solaris2.9/boehm-gc':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
make[1]: *** [configure-target-boehm-gc] Error 1
make[1]: Leaving directory `/els/install/gccbuild/gcc4'
make: *** [all] Error 2
Comment 4 Eric Botcazou 2012-03-20 11:48:47 UTC
> Is this correct or should i again compiled gcc-4.4.4 to get complete
> successful compilation ?

If you still have the build tree around, do
  rm -rf sparc-sun-solaris2.9/boehm-gc sparc-sun-solaris2.9/sparcv9/boehm-gc
  make all-target-boehm-gc

If this still yields an error, try to do a full build after configuring with an absolute path to the source directory (as recommended in the documentation).
Comment 5 birender.singh 2012-03-23 02:08:08 UTC
Thanks, Eric Botcazou. I have compiled gcc-4.4.4 and installed successfully. God bless you.