This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Top level host zlib doesn't get built, bootstrap fails


Anthony,

After you installed zlib, I'm getting bootstrap failures when linking
stage2 jc1 because zlib never gets built by the "make bootstrap" rules
in the top level Makefile.

I believe this is masked on some systems like x86-linux and irix6.2
for two reasons.  First, your link rule does "-L../../zlib -lz"
instead of linking with "../../zlib/libz.a" like every other library
we build.  Second, linux comes with zlib in /usr/lib and irix6.2 has a
/usr/lib/libz.a but I'm not sure what that contains.  These two facts
allow the link to succeed on these systems even though the local
tree's zlib isn't compiled.

However on solaris2.7, which doesn't have any zlib in the system area,
I get a hard error.

To fix this, I think you need to add "all-zlib" to the "bootstrap"
target so that it gets created.  (However I'm not sure how that would
interact if you specified the bootstrap should use the system zlib.)

IMHO, I would also change the mechanism in java/Makefile.in so that if
the user did not specify the system zlib, then it links with
../../libz.a instead of -lz so that you always get a hard failure if
zlib isn't built instead of a mysterious link with an unknown system
library on some platforms.

Would you please take a look?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]