[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] glibc uses wrong path to toolchain headers (in my ARM case)
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] glibc uses wrong path to toolchain headers (in my ARM case) |
Date: |
Sat, 15 Oct 2011 14:13:04 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 |
Hi Jurgen,
This is not a general error. At last time of maintenance we were using
CodeSourcery toolchains and this path was/is correct for those
toolchains (the ones in the GPP).
If you have added your own toochain built with sysroot, then this path
is incorrect I guess.
What is really needed is a patch that can handle the differences in
these paths.
Regards, Stuart
On 10/10/11 16:22, Lambrecht Jürgen wrote:
> Hello,
>
> from 'dist/lfs-5.1/glibc/glibc.spec':
> # Use the toolchain headers as the default for the glibc build unless the
> # BSP kernel headers have been selected.
> if [ "${GLIBC_WANT_KERNEL_HEADERS}" = "y" ]
> then
> TC_HEADERS_DIR="${DEV_IMAGE}/usr/src/linux/include"
> else
> TC_HEADERS_DIR="${TOOLCHAIN_PATH}/${OPT_CFGHOST}/libc/usr/include"
> fi
>
> In my case, this is wrong, and it should be 'sysroot' instead of 'libc':
> TC_HEADERS_DIR="${TOOLCHAIN_PATH}/${OPT_CFGHOST}/sysroot/usr/include"
>
> Is this a general error? Then I can submit a patch.
>
> FYI:
> - the complete (wrong) path:
> TC_HEADERS_DIR=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/arm-none-linux-gnueabi/libc/usr/include
> - I noticed this only because I changed the option "C library package"
> from the default "from toolchain only" (CONFIG_CHOICE_BASE_LIBS) to
> "glibc" (CONFIG_CHOICE_GLIBC)
> - now the compile goes on, but I get this error:
>
> sudo /opt/ltib/usr/bin/rpm --root /usr/src/cross/Ltib-svn/rootfs
> --dbpath /var/lib/rpm --prefix / --ignorearch -ivh --force --excludedocs
> --noscripts --define '_tmppath /tmp/ltib'
> /usr/src/cross/Ltib-svn/rpm/RPMS/arm/base_libs-1.2-1.arm.rpm
> error: failed dependencies:
> libc.so.6(GLIBC_2.4) is needed by base_libs-1.2-1
> libm.so.6(GLIBC_2.4) is needed by base_libs-1.2-1
>
> But those lib's are here:
> /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/arm-none-linux-gnueabi/sysroot/lib/.
> Maybe I have a problem with my toolchain?
>
> Regards,
> Jürgen
>