Discussion:
[Clfs-support] Util-linux 2.29.2 in Chapter 6 fails to build when cross compiling for PowerPC
G***@gunnerhooper.tk
2017-11-07 03:50:16 UTC
Permalink
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
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:7214: ul] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/mnt/clfs/sources/util-linux-2.31'
make[1]: *** [Makefile:11990: all-recursive] Error 1
make[1]: Leaving directory '/mnt/clfs/sources/util-linux-2.31'
make: *** [Makefile:5002: all] Error 2

I installed Linux Headers 4.13.11, GCC 7.2.0, Binutils-2.29, and Glibc
2.26 in this cross toolchain.

I will greatly appreciate any help.

Thanks
m***@gmail.com
2017-11-07 10:09:59 UTC
Permalink
Post by G***@gunnerhooper.tk
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.
cannot find -lncursesw
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:7214: ul] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/mnt/clfs/sources/util-linux-2.31'
make[1]: *** [Makefile:11990: all-recursive] Error 1
make[1]: Leaving directory '/mnt/clfs/sources/util-linux-2.31'
make: *** [Makefile:5002: all] Error 2
I installed Linux Headers 4.13.11, GCC 7.2.0, Binutils-2.29, and Glibc
2.26 in this cross toolchain.
I will greatly appreciate any help.
Thanks
Have you installed ncurses in the toolchain sysroot? basically ld cannot find libncurses
Post by G***@gunnerhooper.tk
_______________________________________________
Clfs-support mailing list
http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
--
Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.
m***@gmail.com
2017-11-07 10:07:00 UTC
Permalink
Post by G***@gunnerhooper.tk
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.
cannot find -lncursesw
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:7214: ul] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/mnt/clfs/sources/util-linux-2.31'
make[1]: *** [Makefile:11990: all-recursive] Error 1
make[1]: Leaving directory '/mnt/clfs/sources/util-linux-2.31'
make: *** [Makefile:5002: all] Error 2
I installed Linux Headers 4.13.11, GCC 7.2.0, Binutils-2.29, and Glibc
2.26 in this cross toolchain.
I will greatly appreciate any help.
Thanks
Have you installed ncurses in the toolchain sysroot? basically ld cannot find libncurses
Post by G***@gunnerhooper.tk
_______________________________________________
Clfs-support mailing list
http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
--
Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.
--
Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.
m***@gmail.com
2017-11-07 09:56:11 UTC
Permalink
Post by G***@gunnerhooper.tk
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.
cannot find -lncursesw
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:7214: ul] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/mnt/clfs/sources/util-linux-2.31'
make[1]: *** [Makefile:11990: all-recursive] Error 1
make[1]: Leaving directory '/mnt/clfs/sources/util-linux-2.31'
make: *** [Makefile:5002: all] Error 2
I installed Linux Headers 4.13.11, GCC 7.2.0, Binutils-2.29, and Glibc
2.26 in this cross toolchain.
I will greatly appreciate any help.
Thanks
Have you installed ncurses in the toolchain sysroot? basically ld cannot find libncurses
Post by G***@gunnerhooper.tk
_______________________________________________
Clfs-support mailing list
http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
--
Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.
Peter Bohning
2017-11-07 17:20:29 UTC
Permalink
_______________________________________________
Clfs-support mailing list
Clfs-***@lists.clfs.org
http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
William Harrington
2017-11-07 15:25:42 UTC
Permalink
Post by G***@gunnerhooper.tk
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.
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

Loading...