[Clfs-dev] util-linux GIT-20120314-x86_64-Multilib

John Harrigan jfharrigan at fedex.com
Wed May 2 13:00:37 PDT 2012


I'm mostly following the 2.x development version of the x86_64-Multilib
book.  My host is a pure 64bit LFS 7.1.  I'm following the chroot path,
using gcc-4.6.3 and util-linux-2.20.1.tar.bz2.

In chapter 8.2 the configure step of util-linux fails for me with an
error:

   checking needed scanf type modifiers... configure: error: in `/mnt/clfs/build/util-linux-2.20.1':
   configure: error: cannot run test program while cross compiling

The following change to the configure step allows util-linux to build
successfully.  (I haven't made it much past chapter 8.2 so I don't know
if this change is going to cause any problems later on)

echo "scanf_cv_type_modifier=as" > config.cache

 CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --disable-makeinstall-chown \
    --cache-file=config.cache



More information about the Clfs-dev mailing list