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
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib