Bug 24562 - makebootstrap failed: make[3]: *** No rule to make target `../zlib/libz.a'
Summary: makebootstrap failed: make[3]: *** No rule to make target `../zlib/libz.a'
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.0.2
: P4 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-28 01:24 UTC by Truong Luong
Modified: 2006-01-10 11:59 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
GCC 4.0.2 Full Log (6.10 KB, text/plain)
2005-10-28 02:32 UTC, Truong Luong
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Truong Luong 2005-10-28 01:24:09 UTC
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
Comment 1 Andrew Pinski 2005-10-28 01:37:37 UTC
First try to configure with an absolute path.
Comment 2 Andrew Pinski 2005-10-28 01:42:30 UTC
Second can you show how you build gcc?
And attached the full build log.
Comment 3 Truong Luong 2005-10-28 02:32:59 UTC
Created attachment 10070 [details]
GCC 4.0.2 Full Log
Comment 4 Truong Luong 2005-10-28 02:39:28 UTC
(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
Comment 5 Andrew Pinski 2005-10-28 02:45:56 UTC
What tar file did you download?

You should have a zlib directory in the src directory.
Comment 6 Truong Luong 2005-10-28 04:33:50 UTC
(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.
Comment 7 Eric Botcazou 2005-10-28 06:24:59 UTC
> 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?
Comment 8 Truong Luong 2005-10-28 08:24:53 UTC
(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.
Comment 9 Eric Botcazou 2005-10-28 08:31:33 UTC
> 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.
Comment 10 Andrew Pinski 2005-10-30 17:55:02 UTC
So did it work after using GNU tar?
Comment 11 Eric Botcazou 2006-01-10 11:59:44 UTC
Not a GCC issue.