Bug 15505 - kirkstone / master-next: bitbake mc fails due to missing ncurses dependency
Summary: kirkstone / master-next: bitbake mc fails due to missing ncurses dependency
Status: RESOLVED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: unspecified
Hardware: Other arm64
: Medium normal
Target Milestone: 5.1
Assignee: Oliver Leitner
QA Contact:
URL:
Whiteboard:
: 15506 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-06-06 07:06 UTC by Oliver Leitner
Modified: 2024-06-07 06:26 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
piped log (961.33 KB, text/plain)
2024-06-06 07:06 UTC, Oliver Leitner
no flags Details
classic compile log (16.48 KB, application/x-shellscript)
2024-06-06 07:07 UTC, Oliver Leitner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Leitner 2024-06-06 07:06:35 UTC
Created attachment 5048 [details]
piped log

Within the Build Process the ncurses library cannot be found.

It does not look like the bb file pulls in the dependency correctly (my guess would be it'd have to build ncurses first + ldconfig + then build mc).

building the downloaded source manually on x86_64 works fine, he finds the systemwide ncurses-dev. just when its going through bitbake and cross building for the arm64 machine...

a log with further information is attached.

Probably interesting part snippet:
-------------------
NXP-i.MX8MM-PD23.1.0/build/tmp/work/cortexa53-crypto-phytec-linux/mc/4.8.31-r1=/usr/src/debug/mc/4.8.31-r1 -fdebug-prefix-map=/home/oleitner/yocto/BSP-Yocto-NXP-i.MX8MM-PD23.1.0/build/tmp/work/cortexa53-crypto-phytec-linux/mc/4.8.31-r1/recipe-sysroot= -fdebug-prefix-map=/home/oleitner/yocto/BSP-Yocto-NXP-i.MX8MM-PD23.1.0/build/tmp/work/cortexa53-crypto-phytec-linux/mc/4.8.31-r1/recipe-sysroot-native= -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--gc-sections -o mc main.o  ./.libs/libinternal.a ../lib/.libs/libmc.a -lncurses -lglib-2.0
| /home/oleitner/yocto/BSP-Yocto-NXP-i.MX8MM-PD23.1.0/build/tmp/work/cortexa53-crypto-phytec-linux/mc/4.8.31-r1/recipe-sysroot-native/usr/bin/aarch64-phytec-linux/../../libexec/aarch64-phytec-linux/gcc/aarch64-phytec-linux/11.4.0/ld: ../lib/.libs/libmc.a(tty-ncurses.o): in function `tty_colorize_area':
| /usr/src/debug/mc/4.8.31-r1/build/lib/tty/../../../mc-4.8.31/lib/tty/tty-ncurses.c:578: undefined reference to `mvin_wchnstr'
| /home/oleitner/yocto/BSP-Yocto-NXP-i.MX8MM-PD23.1.0/build/tmp/work/cortexa53-crypto-phytec-linux/mc/4.8.31-r1/recipe-sysroot-native/usr/bin/aarch64-phytec-linux/../../libexec/aarch64-phytec-linux/gcc/aarch64-phytec-linux/11.4.0/ld: /usr/src/debug/mc/4.8.31-r1/build/lib/tty/../../../mc-4.8.31/lib/tty/tty-ncurses.c:582: undefined reference to `getcchar'
| /home/oleitner/yocto/BSP-Yocto-NXP-i.MX8MM-PD23.1.0/build/tmp/work/cortexa53-crypto-phytec-linux/mc/4.8.31-r1/recipe-sysroot-native/usr/bin/aarch64-phytec-linux/../../libexec/aarch64-phytec-linux/gcc/aarch64-phytec-linux/11.4.0/ld: /usr/src/debug/mc/4.8.31-r1/build/lib/tty/../../../mc-4.8.31/lib/tty/tty-ncurses.c:583: undefined reference to `setcchar'
| /home/oleitner/yocto/BSP-Yocto-NXP-i.MX8MM-PD23.1.0/build/tmp/work/cortexa53-crypto-phytec-linux/mc/4.8.31-r1/recipe-sysroot-native/usr/bin/aarch64-phytec-linux/../../libexec/aarch64-phytec-linux/gcc/aarch64-phytec-linux/11.4.0/ld: /usr/src/debug/mc/4.8.31-r1/build/lib/tty/../../../mc-4.8.31/lib/tty/tty-ncurses.c:586: undefined reference to `mvadd_wchnstr'
| collect2: error: ld returned 1 exit status
| make[3]: Leaving directory '/home/oleitner/yocto/BSP-Yocto-NXP-i.MX8MM-PD23.1.0/build/tmp/work/cortexa53-crypto-phytec-linux/mc/4.8.31-r1/build/src'
| make[3]: *** [Makefile:635: mc] Error 1
| make[2]: Leaving directory '/home/oleitner/yocto/BSP-Yocto-NXP-i.MX8MM-PD23.1.0/build/tmp/work/cortexa53-crypto-phytec-linux/mc/4.8.31-r1/build/src'
| make[2]: *** [Makefile:700: all-recursive] Error 1
| make[1]: Leaving directory '/home/oleitner/yocto/BSP-Yocto-NXP-i.MX8MM-PD23.1.0/build/tmp/work/cortexa53-crypto-phytec-linux/mc/4.8.31-r1/build'
| make[1]: *** [Makefile:586: all-recursive] Error 1
| make: *** [Makefile:516: all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
NOTE: recipe mc-4.8.31-r1: task do_compile: Failed
NOTE: Tasks Summary: Attempted 1857 tasks of which 1607 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 7 seconds
---------------------------

if theres any additional information that might help you with this, please let me know.

thanks for any info / fix in advance
Comment 1 Oliver Leitner 2024-06-06 07:07:24 UTC
Created attachment 5049 [details]
classic compile log

the log thats being created by bitbake itself.
Comment 2 Randy MacLeod 2024-06-06 14:43:54 UTC
Are you able to reproduce this with Poky only.
(Maybe your toolchain is missing wchar?)
Please tell us exactly how you are able to see this problem since no on else is seeing it.
Comment 3 Randy MacLeod 2024-06-06 14:44:59 UTC
*** Bug 15506 has been marked as a duplicate of this bug. ***
Comment 4 Randy MacLeod 2024-06-06 14:47:34 UTC
After more discussion, it's almost certain that the target toolchain is missing wchar support and the problem is not in oe-core but your customized toolchain.
Comment 5 Oliver Leitner 2024-06-07 06:26:58 UTC
thank you for the very fast answer. it was indeed a problem with missing wchar support in the toolchain.

i had parts of poky-tiny.conf added to the toolchain. apparently poky-tiny disables widechar support.