[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ttylinux:282] Errors on gmp compile - can't find GLIBC 2.14



Hi Douglas,

That's right, x86-64 to x86-64. I did consider using a 32 bit VM to do it (I have one spun up for that) but I stopped halfway through.

Potentially also related, I found I needed pkg-config gettext packages as well, or a few other things (I don't recall off the top of my head) wouldn't compile either.

Thanks.

Ryan

On Friday, September 21, 2012 10:08:15 PM UTC-6, djerome wrote:
On 09/21/12 09:41, RyanJ wrote:
> I'm compiling ttylinux from the master tarball (
> https://github.com/djerome/ttylinux/tarball/master ) on a Debian 5.0.7
> amd64 VM and have successfully managed to compile the cross-tool chain
> as well as a portion of ttylinux. However, on the compile for gmp-4.3.2,
> the build process errors and stops. In the log
> (/tmp/djerome-ttylinux-9db959/ttylinux-build/var/log/gmp-4.3.2.log), the
> error is:
>
> make[1]: Entering directory
> `/tmp/djerome-ttylinux-9db9595/ttylinux-build/build/packages/gmp-4.3.2'
> ./gen-psqr 64 0 >mpn/perfsqr.h || (rm -f mpn/perfsqr.h; exit 1)
> ./gen-psqr: /lib/libc.so.6: version `GLIBC_2.14' not found (required by
> ./gen-psqr)
>
> Sure enough, the Debian 5.0.7 system in question has glibc 2.7 in /lib.
> But I don't think that's where it should be looking.
>
> I've successfully gotten around this issue by compiling glibc 2.14 from
> source and replacing the stock 2.7 that ships with Debian 5.0.7 amd64,
> but this seems incredibly hacky as the cross-tool chain should have
> these libraries available (looking closely, they're there, but the path
> doesn't seem to be passed correctly into the build for gmp).
>
> Thoughts?

I think you are building ttylinux for x86-64 target on
an x86-64 (AMD64) host, yes? I'd really like to know.

Sometimes when host=target weird non-cross-compiler
things happen.

I'm still looking into this...

--
Douglas Jerome