* [Buildroot] [Bug 15685] New: Buildroot fails to build due to host-ncurses' tic crashing on _nc_disable_period
@ 2023-07-08 23:12 bugzilla
2023-07-08 23:14 ` [Buildroot] [Bug 15685] " bugzilla
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bugzilla @ 2023-07-08 23:12 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=15685
Bug ID: 15685
Summary: Buildroot fails to build due to host-ncurses' tic
crashing on _nc_disable_period
Product: buildroot
Version: 2023.02.2
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned@buildroot.uclibc.org
Reporter: rpe2101@gmail.com
CC: buildroot@uclibc.org
Target Milestone: ---
Problem appears to be that the host-ncurses tic only is built with linker
RUNPATH vs. the old RPATH. Buildroot's tic is trying to use the system so
file. GCC version in Ubuntu 23.04 takes the RPATH flag and makes it a RUNPATH
with the builtroot's current default ldflags. Either this or the scripts using
buildroot built host programs need to update LD_LIBRARY_PATH to use buildroot's
version of dynamic libraries, in this case ncurses.so. Have potential diff at
end.
System:
$ neofetch --stdout
robert@OptiPlex-9020
OS: Ubuntu 23.04 x86_64
Host: OptiPlex 9020 00
Kernel: 6.2.0-24-generic
Uptime: 19 hours, 22 mins
Packages: 3215 (dpkg), 21 (snap)
Shell: zsh 5.9
Resolution: 3840x2160
DE: GNOME 44.0
WM: Mutter
WM Theme: Adwaita
Theme: Yaru [GTK2/3]
Icons: Yaru [GTK2/3]
Terminal: tmux
CPU: Intel i7-4770 (8) @ 3.900GHz
GPU: Intel HD Graphics
Memory: 3576MiB / 15882MiB
$ gcc -version
gcc (Ubuntu 12.2.0-17ubuntu1) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The Distilled moment:
DESTDIR=/home/robert/output/host/riscv64-buildroot-linux-gnu/sysroot \
prefix=/usr \
exec_prefix=/usr \
bindir=/usr/bin \
top_srcdir=.. \
srcdir=. \
datadir=/usr/share \
ticdir=/usr/share/terminfo \
source=terminfo.tmp \
cross_compiling=yes \
/bin/bash ./run_tic.sh
** Building terminfo database, please wait...
Running tic to install
/home/robert/output/host/riscv64-buildroot-linux-gnu/sysroot/usr/share/terminfo
...
You may see messages regarding extended capabilities, e.g., AX.
These are extended terminal capabilities which are compiled
using
tic -x
If you have ncurses 4.2 applications, you should read the INSTALL
document, and install the terminfo without the -x option.
tic: symbol lookup error: tic: undefined symbol: _nc_disable_period
tic: symbol lookup error: tic: undefined symbol: _nc_disable_period
? tic could not build
/home/robert/output/host/riscv64-buildroot-linux-gnu/sysroot/usr/share/terminfo
make[3]: *** [Makefile:109: install.data] Error 1
make[2]: *** [Makefile:139: install] Error 2
make[1]: *** [package/pkg-generic.mk:332:
/home/robert/output/build/ncurses-6.4-20230429/.stamp_staging_installed] Error
2
.config attached.
I was able to fix this by forcing all host programs to be build with a flag to
use the RPATH's. I believe the below diff is the correct location to put the
change.
diff --git a/package/Makefile.in b/package/Makefile.in
index 24089a4a..0dbfcdd8 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -242,7 +242,7 @@ HOST_CPPFLAGS = -I$(HOST_DIR)/include
HOST_CFLAGS ?= -O2
HOST_CFLAGS += $(HOST_CPPFLAGS)
HOST_CXXFLAGS += $(HOST_CFLAGS)
-HOST_LDFLAGS += -L$(HOST_DIR)/lib -Wl,-rpath,$(HOST_DIR)/lib
+HOST_LDFLAGS += -L$(HOST_DIR)/lib -Wl,-rpath,$(HOST_DIR)/lib
-Wl,--disable-new-dtags
# host-intltool should be executed with the system perl, so we save
# the path to the system perl, before a host-perl built by Buildroot
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread* [Buildroot] [Bug 15685] Buildroot fails to build due to host-ncurses' tic crashing on _nc_disable_period 2023-07-08 23:12 [Buildroot] [Bug 15685] New: Buildroot fails to build due to host-ncurses' tic crashing on _nc_disable_period bugzilla @ 2023-07-08 23:14 ` bugzilla 2023-07-10 20:44 ` bugzilla ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: bugzilla @ 2023-07-08 23:14 UTC (permalink / raw) To: buildroot https://bugs.busybox.net/show_bug.cgi?id=15685 --- Comment #1 from rpe2101 <rpe2101@gmail.com> --- .config file is >75kB, so can't attach. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 15685] Buildroot fails to build due to host-ncurses' tic crashing on _nc_disable_period 2023-07-08 23:12 [Buildroot] [Bug 15685] New: Buildroot fails to build due to host-ncurses' tic crashing on _nc_disable_period bugzilla 2023-07-08 23:14 ` [Buildroot] [Bug 15685] " bugzilla @ 2023-07-10 20:44 ` bugzilla 2023-07-14 4:32 ` bugzilla 2024-06-15 15:11 ` bugzilla 3 siblings, 0 replies; 5+ messages in thread From: bugzilla @ 2023-07-10 20:44 UTC (permalink / raw) To: buildroot https://bugs.busybox.net/show_bug.cgi?id=15685 Yann E. MORIN <yann.morin.1998@free.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yann.morin.1998@free.fr --- Comment #2 from Yann E. MORIN <yann.morin.1998@free.fr> --- (In reply to rpe2101 from comment #1) > .config file is >75kB, so can't attach. You can create a smaller file, called a defconfig: $ make savedefconfig BR2_DEFCONFIG=$(pwd)/my_defconfig And then you can provide the my_defconfig file Regards, Yann E. MORIN. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 15685] Buildroot fails to build due to host-ncurses' tic crashing on _nc_disable_period 2023-07-08 23:12 [Buildroot] [Bug 15685] New: Buildroot fails to build due to host-ncurses' tic crashing on _nc_disable_period bugzilla 2023-07-08 23:14 ` [Buildroot] [Bug 15685] " bugzilla 2023-07-10 20:44 ` bugzilla @ 2023-07-14 4:32 ` bugzilla 2024-06-15 15:11 ` bugzilla 3 siblings, 0 replies; 5+ messages in thread From: bugzilla @ 2023-07-14 4:32 UTC (permalink / raw) To: buildroot https://bugs.busybox.net/show_bug.cgi?id=15685 chunren_r <renchunhui2@huawei.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|2023.02.2 |unspecified -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 15685] Buildroot fails to build due to host-ncurses' tic crashing on _nc_disable_period 2023-07-08 23:12 [Buildroot] [Bug 15685] New: Buildroot fails to build due to host-ncurses' tic crashing on _nc_disable_period bugzilla ` (2 preceding siblings ...) 2023-07-14 4:32 ` bugzilla @ 2024-06-15 15:11 ` bugzilla 3 siblings, 0 replies; 5+ messages in thread From: bugzilla @ 2024-06-15 15:11 UTC (permalink / raw) To: buildroot https://bugs.busybox.net/show_bug.cgi?id=15685 Yann E. MORIN <yann.morin.1998@free.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED --- Comment #3 from Yann E. MORIN <yann.morin.1998@free.fr> --- Thank you for your report. The issue tracker for the Buildroot project has been moved to the Gitlab.com issue tracker: https://gitlab.com/buildroot.org/buildroot/-/issues We are taking this opportunity to close old issues in this old tracker. If you believe your issue is still relevant, please open one in the new issue tracker. Thank you! -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-06-15 15:11 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-07-08 23:12 [Buildroot] [Bug 15685] New: Buildroot fails to build due to host-ncurses' tic crashing on _nc_disable_period bugzilla 2023-07-08 23:14 ` [Buildroot] [Bug 15685] " bugzilla 2023-07-10 20:44 ` bugzilla 2023-07-14 4:32 ` bugzilla 2024-06-15 15:11 ` bugzilla
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox