On Fri, Jul 28, 2006 at 12:03:13AM -0700, Jonathan Davis wrote:
> When I run "make check" after all of the makes in section 10.30.
> Bzip2-1.0.3 32 Bit Libraries, I get this output:
>
> gcc -Wall -Winline -O -g -D_FILE_OFFSET_BITS=64 -c bzip2.c
> gcc -Wall -Winline -O -g -D_FILE_OFFSET_BITS=64 -o bzip2 bzip2.o -L. -lbz2
> /usr/bin/ld: skipping incompatible ./libbz2.a when searching for -lbz2
> /usr/bin/ld: cannot find -lbz2
> collect2: ld returned 1 exit status
> make: *** [bzip2] Error 1
>
>
> I'm using Version 1.0.0rc3-x86_64-Multilib of CLFS, though most of
> what I built has been with rc2, though the changes seem to be minor.
I don't exactly know what commands you are using. In the snippet
above, gcc is being called without -m32, so it is compiling 64-bit
code. The incompatible libbz2 seems to have been correctly built as
32-bit (that's why it is incompatible), so you seem to have an extra
command.
In the current book, the only command to 'recompile and test using a
non-shared library' is
make CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" libbz2.a
and after that we copy the libraries to their destinations.
I suspect that we no longer test this library - looking at my
latest logs from ppc64, I see no signs of any tests being run for
either size of bzip2. I vaguely recall someone, perhaps in LFS,
pointing out that make causes the tests to be run (they use cmp) and
certainly on x86_64-64 in April 'make' ran the tests, so _we_ maybe
have an issue.
Ken
--
das eine Mal als Tragödie, das andere Mal als Farce
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support