[Clfs-dev] Recent Updates to CLFS builds
William Harrington
berzerkula at cox.net
Wed Aug 29 10:34:56 PDT 2012
On Aug 28, 2012, at 06:45 AM, Martin Ward wrote:
>> Cross-tools PPL found gmp when using --with-gmp=/cross-tools in
>> the cross-tools section.
>> Temp-system PPL did not find gmp when using --with-gmp=/tools in
>> the temp-system section.
>> I had to use --with-gmp-include and --with-gmp-lib options for
>> some reason. It's happened twice so far.
> looking at my notes i only used --with-gmp=/tools and encounted no
> problems did use ppl-1.0 and gmp-5.05 though
Okay now I know why I put those in there for temp-system ppl.
The way ppl detects gmp is different when using --with-gmp compared
to --with-gmp-include and --wiht-gmp-lib
A lot of users use the same machine for the target build. x86_64 to
x86_64.
If you do a cross toolchain for another arch, say powerpc or
powerpc64 or sparc64 then you get issues like this which don't crop
up when the host can run the target binaries without issue.
checking for the GMP library version 4.1.3 or above... cat: error
while loading shared libraries: /tools/lib/libc.so.6: ELF file data
encoding not little-endian
using --with-gmp-include=/tools/include and --with-gmp-lib=/tools/
lib fixes the issue as it isn't attempting to run target arch binaries.
This would have been missed if I didn't build for another arch. Glad
I ran across it.
Sincerely,
William Harrington
More information about the Clfs-dev
mailing list