OpenNuvoton / buildroot_2024

Buildroot 2024.02
Other
1 stars 1 forks source link

Errors while building mc #2

Closed Aptahar closed 2 weeks ago

Aptahar commented 2 weeks ago

Link errors:

/home/artem/projects/s342/_buildroot/output/host/lib/gcc/arm-nuvoton-linux-gnueabi/12.3.0/../../../../arm-nuvoton-linux-gnueabi/bin/ld: ../lib/.libs/libmc.a(tty-ncurses.o): in function `tty_colorize_area':
tty-ncurses.c:(.text+0xc50): undefined reference to `mvin_wchnstr'
/home/artem/projects/s342/_buildroot/output/host/lib/gcc/arm-nuvoton-linux-gnueabi/12.3.0/../../../../arm-nuvoton-linux-gnueabi/bin/ld: tty-ncurses.c:(.text+0xc7c): undefined reference to `getcchar'
/home/artem/projects/s342/_buildroot/output/host/lib/gcc/arm-nuvoton-linux-gnueabi/12.3.0/../../../../arm-nuvoton-linux-gnueabi/bin/ld: tty-ncurses.c:(.text+0xc98): undefined reference to `setcchar'
/home/artem/projects/s342/_buildroot/output/host/lib/gcc/arm-nuvoton-linux-gnueabi/12.3.0/../../../../arm-nuvoton-linux-gnueabi/bin/ld: tty-ncurses.c:(.text+0xcc8): undefined reference to `mvadd_wchnstr'
ychuang3 commented 2 weeks ago

Besides

#make numake_xxx_defconfig
#make

did you perform any other actions?

Aptahar commented 2 weeks ago

Done

make nuvoton_nuc980_defconfig
make

Then done some changes in make xconfig My .config file: config.zip

ychuang3 commented 2 weeks ago

Pease use

make menuconfig

And, for linux kernel, use

make linux-menuconfig
ychuang3 commented 2 weeks ago

After applied your '.config', I can duplicate the issue. I found a solution, use 'slang' instead of 'ncurses'. Inspecting the package/mc/mc.mk, we can find that 'slang' is the default selection, not 'ncurses'. So, please make menuconfig to select

-> Target packages
       -> Libraries
         -> Text and terminal handling
              -> [*] slang

and rebuild by

rm -rf output/build/mc-4.8.30
make
Aptahar commented 2 weeks ago

It works.