ltib
[Top][All Lists]
Advanced

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

[Ltib] glibc uses wrong path to toolchain headers (in my ARM case)


From: Lambrecht Jürgen
Subject: [Ltib] glibc uses wrong path to toolchain headers (in my ARM case)
Date: Mon, 10 Oct 2011 17:22:46 +0200
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

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

-- 
Jürgen Lambrecht
R&D Associate
Tel: +32 (0)51 303045    Fax: +32 (0)51 310670
http://www.televic-rail.com
Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium
Company number 0825.539.581 - RPR Kortrijk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]