[oe] [PATCH] bitbake.conf: Add sdl-config to HOSTTOOLS

Burton, Ross ross.burton at intel.com
Tue Oct 3 10:18:31 UTC 2017


On 3 October 2017 at 10:40, Ricardo Ribalda Delgado <
ricardo.ribalda at gmail.com> wrote:

> Without this patch bitbake cannot find sdl-config
>
> ERROR:  OE-core's config sanity checker detected a potential
> misconfiguration.
> Either fix the cause of this error or at your own risk disable the checker
> (see sanity.conf).
> Following is the list of potential problems / advisories:
>
> libsdl-native is set to be ASSUME_PROVIDED but sdl-config can't be found
> in PATH. Please either install it, or configure qemu not to require sdl.
>

First, wrong list, this should go to openembedded-core@ instead of -devel at .

qemu's configure prefers pkg-config instead of sdl-config, so why doesn't
that work for you?

Also note that we don't recommend using host libsdl via ASSUME_PROVIDED
because it's a nightmare to link when we've a sysroot full of
ABI-incompatible libraries.  For example if I try to build on Debian 9
qemu-native with the host SDL it fails at configure time:

| ERROR: User requested feature sdl
|        configure was not able to find it.
|        Install SDL devel

That's a lie, it found it but it wouldn't link:

//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`resize_term at NCURSESW_5.3.20021019'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`COLORS at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`raw at NCURSES_TINFO_5.0.19991023'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`ESCDELAY at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`nodelay at NCURSES_TINFO_5.0.19991023'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`initscr at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`nonl at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`wrefresh at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`wmove at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`getmouse at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`curs_set at NCURSES_TINFO_5.0.19991023'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`newterm at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`waddnstr at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`mouseinterval at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`wgetch at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`LINES at NCURSES_TINFO_5.0.19991023'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`curscr at NCURSES_TINFO_5.0.19991023'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`init_pair at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`start_color at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`stdscr at NCURSES_TINFO_5.0.19991023'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`noraw at NCURSES_TINFO_5.0.19991023'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`wattr_on at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`COLS at NCURSES_TINFO_5.0.19991023'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`noecho at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`keypad at NCURSES_TINFO_5.0.19991023'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`ungetch at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`mousemask at NCURSESW_5.1.20000708'
//usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to
`endwin at NCURSESW_5.1.20000708'

The host libcaca is linking to the sysroot libncurses, and they're not
compatible.  This is why we moved away from using
ASSUME_PROVIDED=libsdl-native in December 2015.

Ross



More information about the Openembedded-devel mailing list