All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] 'make foo-menuconfig' broken when host-ncurses was built
@ 2018-04-24 15:24 Arnout Vandecappelle
  2018-04-26 19:08 ` [Buildroot] [PATCH] package/ncurses: enable widechar for host build Arnout Vandecappelle
  2018-05-01 20:12 ` [Buildroot] 'make foo-menuconfig' broken when host-ncurses was built Peter Korsgaard
  0 siblings, 2 replies; 9+ messages in thread
From: Arnout Vandecappelle @ 2018-04-24 15:24 UTC (permalink / raw)
  To: buildroot

 Hi all,

 My colleague David observed that since a month or so, the dialogs of 'make
linux-menuconfig' looked pretty garbled. After a bit of debugging, it turns out
that the problem is mixing host-ncurses with recent (6.0+) system ncurses. Based
on the output, I suspect it's mixing an 8-bit ncurses library with widechar
termcap files.

 This issue is caused by dde090c299 linux: fix passing of host CFLAGS and LDFLAGS

 What happens is that kconfig uses pkg-config to discover the ncurses
installation. Since our host-ncurses doesn't install a pc file (and in linux.mk
we anyway don't pass the approprate PKG_CONFIG_* variables), this will pick up
the system's pkg-config settings. However, we set HOSTCC="/usr/bin/gcc -O2
-I.../host/include -L.../host/lib -Wl,-rpath,.../host/lib" on the linux make
command line, so it *will* actually pick up our host-ncurses library. On my
system, 'pkg-config --libs ncurses' returns '-lncurses -ltinfo'. Our ncurses
only has libncurses.so, so libtinfo.so will be picked up from the host.

 The question is how to resolve this. The correct thing to do would be to
install the .pc file, and to do what Thomas proposed a while ago:
$(HOST_DIR)/bin/pkg-config returns the host config, $(CROSS_COMPILE)pkg-config
returns the target config. But this will probably result in breakage of a lot of
packages...

 Any better ideas?

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-05-08 20:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-24 15:24 [Buildroot] 'make foo-menuconfig' broken when host-ncurses was built Arnout Vandecappelle
2018-04-26 19:08 ` [Buildroot] [PATCH] package/ncurses: enable widechar for host build Arnout Vandecappelle
2018-04-27 12:05   ` Scott Fan
2018-05-03  7:58   ` Arnout Vandecappelle
2018-05-03 19:45     ` Yann E. MORIN
2018-05-08 13:31       ` Thomas Petazzoni
2018-05-08 20:30         ` Arnout Vandecappelle
2018-05-01 20:12 ` [Buildroot] 'make foo-menuconfig' broken when host-ncurses was built Peter Korsgaard
2018-05-02 23:19   ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.