[Clfs-support] Util-linux 2.29.2 in Chapter 6 fails to build when cross compiling for PowerPC

William Harrington kb0iic at berzerkula.org
Tue Nov 7 07:25:42 PST 2017


On Tue, November 7, 2017 03:50, Gunnersky2002 at gunnerhooper.tk wrote:
> I'm building Util-linux 2.29.2 in Chapter 6 for PowerPC 32-BIT. My build
> system is a Core 2 Duo with Linux from Scratch 20170713-systemd x86_64.
> When I type make, ld gives me this error:
>
> /mnt/clfs/cross-tools/bin/../lib/gcc/powerpc-unknown-linux-gnu/7.2.0/../../../../powerpc-unknown-linux-gnu/bin/ld:
> cannot find -lncursesw

>
> I will greatly appreciate any help.
>
> Thanks

Hello,

You will need to either build without ncurses support or adjust the
generated Makefile and config.h to use the proper libraries. I think Chris
had a full proof way if you wanted to build with ncurses.

Example I have to do when using certain host distros:

sed -i 's/-lncursesw -ltinfo/-lncurses/' Makefile
sed -i 's/-lncursesw/-lncurses/' Makefile
sed -i 's/LIBNCURSESW/LIBNCURSES/' config.h

Sincerely,

William Harrington




More information about the Clfs-support mailing list