When make bootstrap gcc4.0.2, I receive error: make[3]: *** No rule to make target `../zlib/libz.a', needed by `fastjar'. Stop. What's error? How I do to fix? Thank you. This is my configure command: CXXFLAGS='-Xassembler gstabs' ../src/gcc-4.0.2/configure --prefix=/usr/local/binut/ --with-as=/usr/local/binut/sparc-sun-solaris2.8/bin/as --with-ld=/usr/local/binut/sparc-sun-solaris2.8/bin/ld
First try to configure with an absolute path.
Second can you show how you build gcc? And attached the full build log.
Created attachment 10070 [details] GCC 4.0.2 Full Log
(In reply to comment #2) > Second can you show how you build gcc? > And attached the full build log. > Following the instruction at gcc.gnu.org/install/configure.html I attached the full build log. The error occured: Links are now set up to build a native compiler for sparc-sun-solaris2.8. make[3]: *** No rule to make target `../zlib/libz.a', needed by `fastjar'. Stop. make[2]: *** [all] Error 2 make[1]: *** [all-fastjar] Error 2 make: *** [bootstrap] Error 2 Help me to check it. Thank you! P/S: SunOS vn 5.8 Generic_117350-05 sun4u sparc SUNW,Ultra-5_10
What tar file did you download? You should have a zlib directory in the src directory.
(In reply to comment #5) > What tar file did you download? > > You should have a zlib directory in the src directory. > Following your way, I download zlib at http://www.zlib.net, gunzip and untar it at GCC'src directory. That error 's fixed. But, now, another error appear: Configuring in zlib /data/home/tdluong/src/gcc-4.0.2/zlib/configure: zlib.h: cannot open /data/home/tdluong/src/gcc-4.0.2/zlib/configure: zlib.h: cannot open /data/home/tdluong/src/gcc-4.0.2/zlib/configure: zlib.h: cannot open unknown option: --cache-file=./config.cache /data/home/tdluong/src/gcc-4.0.2/zlib/configure --help for help make: *** [configure-zlib] Error 1 What I wrong? Thanks for reply.
> Following your way, I download zlib at http://www.zlib.net, gunzip and untar > it at GCC'src directory. Don't do that, everything should be included in the GCC archive. What GCC archive do you use and where does it come from? What does 'make -v' print?
(In reply to comment #7) > > Following your way, I download zlib at http://www.zlib.net, gunzip and untar > > it at GCC'src directory. > > Don't do that, everything should be included in the GCC archive. > > What GCC archive do you use and where does it come from? What does 'make -v' > print? > I download GCC 4.0.2 from http://gcc.gnu.org. When I untar that source in many times, It always notices : the directory checksum error. I try another FTP server, download again but that error doesn't fix. bash-2.03# make -v GNU Make 3.80 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> I download GCC 4.0.2 from http://gcc.gnu.org. When I untar that source in many > times, It always notices : the directory checksum error. I try another FTP > server, download again but that error doesn't fix. You must use GNU tar.
So did it work after using GNU tar?
Not a GCC issue.