On Sun, 2006-09-24 at 18:55 +0100, Ken Moffat wrote:
> On Sun, Sep 24, 2006 at 11:19:41AM -0600, Dennis J Perkins wrote:
> > When I try to build zlib in section 7, x86_64-unknown-linux-gnu-ar
> > complains that -z is an illegal option. I don't see -z being passed as
> > an option, so why is it complaining? And why is the -z option missing,
> > since it is listed in the info page, but not in the error output?
> >
> >
> > x86_64-unknown-linux-gnu-ar libz.a adler32.o compress.o crc32.o gzio.o
> > uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o
> > inffast.o
> > x86_64-unknown-linux-gnu-ar: illegal option -- z
> > Usage: x86_64-unknown-linux-gnu-ar [emulation options]
> > [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...
> > x86_64-unknown-linux-gnu-ar -M [<mri-script]
>
> This rang a (very quiet) bell. Couldn't find it in my notes, but
> google found a post of mine from June
> http://linuxfromscratch.org/pipermail/cross-lfs/2006-June/002338.html
> where I followed up on a post from January after I hit the problem
> again trying to create a static libz.
>
> Does adding AR="${AR} rc" help ?
>
> If it does, which book (architecture, and *branch*) are you
> following? My recollection is that the problem is limited to
> cross-sompiling a static libz.
>
> Ken
I'm using CLFS x86_64-Pure64. Adding AR="${AR} rc" fixed the error, but
then a new one appeared. It tried to install headers into /usr/local.
I found that the LFS book mentions that zlib doesn't build properly if
CFLAGS is set. Definitely true. It compiles properly if CFLAGS is
unset or if -fPIC is added to CFLAGS. This comment should probably be
added to CLFS.
The headers problem was caused by experimenting with config.site. I
found that this package apparently ignores it and tries to install
into /usr/local, so --prefix cannot be omitted.
Thanks. Both your response and Joe Ciccone's helped me fix this.
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support