Page 1 of 1

buildroot compile mc error

Posted: 2025-08-23 7:56
by uzzer
trying to compile firmware with recent buildroot - and it gives me error when i try to include MidnightCommander in build:

CCLD mc
/luckfox-pico/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/../lib/gcc/arm-rockchip830-linux-uclibcgnueabihf/8.3.0/../../../../arm-rockchip830-linux-uclibcgnueabihf/bin/ld.bfd: ../lib/.libs/libmc.a(tty-ncurses.o): in function `tty_colorize_area':
tty-ncurses.c:(.text+0xb70): undefined reference to `mvin_wchnstr'
/luckfox-pico/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/../lib/gcc/arm-rockchip830-linux-uclibcgnueabihf/8.3.0/../../../../arm-rockchip830-linux-uclibcgnueabihf/bin/ld.bfd: tty-ncurses.c:(.text+0xb88): undefined reference to `getcchar'
/luckfox-pico/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/../lib/gcc/arm-rockchip830-linux-uclibcgnueabihf/8.3.0/../../../../arm-rockchip830-linux-uclibcgnueabihf/bin/ld.bfd: tty-ncurses.c:(.text+0xba4): undefined reference to `setcchar'
/luckfox-pico/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/../lib/gcc/arm-rockchip830-linux-uclibcgnueabihf/8.3.0/../../../../arm-rockchip830-linux-uclibcgnueabihf/bin/ld.bfd: tty-ncurses.c:(.text+0xbc4): undefined reference to `mvadd_wchnstr'
collect2: error: ld returned 1 exit status
make[6]: *** [Makefile:643: mc] Error 1

Re: buildroot compile mc error

Posted: 2025-08-25 2:02
by yangxj121
Hello, please follow the instructions below and then try again.

Code: Select all

sudo apt-get update && sudo apt-get install git ssh make gcc libssl-dev \
liblz4-tool expect expect-dev g++ patchelf chrpath gawk texinfo chrpath \
diffstat binfmt-support qemu-user-static live-build bison flex fakeroot \
cmake gcc-multilib g++-multilib unzip device-tree-compiler ncurses-dev \
libgucharmap-2-90-dev bzip2 expat gpgv2 cpp-aarch64-linux-gnu libgmp-dev \
libmpc-dev bc python-is-python3 python2