Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [CONSOLIDATED PULL 04/28] ncurses: move libraries to base_libdir
Date: Fri, 06 Jan 2012 12:20:34 +0000	[thread overview]
Message-ID: <1325852434.20759.92.camel@ted> (raw)
In-Reply-To: <1325851670.28005.154.camel@phil-desktop>

On Fri, 2012-01-06 at 12:07 +0000, Phil Blundell wrote:
> On Fri, 2012-01-06 at 12:06 +0000, Richard Purdie wrote:
> > On Fri, 2012-01-06 at 11:33 +0000, Phil Blundell wrote:
> > > On Fri, 2012-01-06 at 11:07 +0000, Richard Purdie wrote:
> > > > On Fri, 2012-01-06 at 11:29 +0100, Enrico Scholz wrote:
> > > > > Saul Wold <sgw-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> writes:
> > > > > 
> > > > > > -		f=${D}${libdir}/$i.so
> > > > > > +                f=${D}${base_libdir}/$i.so
> > > > > 
> > > > > this breaks builds because 'ld' does not search ${base_libdir}:
> > > > > 
> > > > > | gcc -shared ... -ltermcap
> > > > > | /usr/bin/ld: cannot find -ltermcap
> > > > > | ERROR: Task 216 (virtual:native:.../readline/readline_6.2.bb, do_install) failed with exit code '1'
> > > > > | ERROR: 'virtual:native:.../readline/readline_6.2.bb' failed
> > > > 
> > > > Note this is a -native problem, not a target library one.
> > > 
> > > It looks to me like the same would probably occur on the target.
> > > The .so devel symlinks should be in ${libdir} not ${base_libdir} since
> > > the latter is indeed not in the linker's standard search path.
> > 
> > Are you 100% sure about that? I was pretty sure that /lib is in the
> > default linker's search path as well as /usr/lib?
> 
> Not 100%, admittedly, but I can't think of any other instances of these
> things being installed in /lib.  I know that glibc, for example, puts
> libc.so in /usr/lib even though the corresponding libraries are in /lib.
> Admittedly that one isn't a symlink though.
> 
> > I can't find a commandline option to make ld dump its search path but
> > looking at the linker scripts for various architectures, it does appear
> > that /lib is listed as a search directory...
> 
> I think "ld -verbose" should do that.  Look for SEARCH_DIR or some such.

$ ./i586-poky-linux-ld --verbose | grep SEARCH
SEARCH_DIR("/media/build1/poky/build/tmp/sysroots/x86_64-linux/usr/i586-poky-linux/lib32"); SEARCH_DIR("=/usr/local/lib32"); SEARCH_DIR("=/lib32"); SEARCH_DIR("=/usr/lib32"); SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");

which makes sense since the builds are all still working...

Cheers,

Richard




  reply	other threads:[~2012-01-06 12:28 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-05  6:30 [CONSOLIDATED PULL 00/28] Build Fixes and Updates Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 01/28] linux-dtb: add multi-dtb build support and keep dtb in deploy cache package Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 02/28] alsa-state: add alsa-state from oe classic Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 03/28] task-base: add alsa-state to task-base-alsa Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 04/28] ncurses: move libraries to base_libdir Saul Wold
2012-01-06 10:29   ` Enrico Scholz
2012-01-06 11:07     ` Richard Purdie
2012-01-06 11:33       ` Phil Blundell
2012-01-06 12:06         ` Richard Purdie
2012-01-06 12:07           ` Phil Blundell
2012-01-06 12:20             ` Richard Purdie [this message]
2012-01-06 12:38               ` Phil Blundell
2012-01-06 17:57     ` Scott Garman
2012-01-09 12:10       ` Enrico Scholz
2012-01-05  6:30 ` [CONSOLIDATED PULL 05/28] libcap: move library " Saul Wold
2012-01-21 23:41   ` Khem Raj
2012-01-05  6:30 ` [CONSOLIDATED PULL 06/28] util-linux: move libraries " Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 07/28] e2fsprogs: " Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 08/28] libusb1: " Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 09/28] libusb-compat: " Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 10/28] insane.bbclass: add QA tests for unsafe references to exec_prefix Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 11/28] python-native: correct prefix handling for oe-core sysroot layout Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 12/28] opkg-utils: use /usr/bin/env python Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 13/28] binutils-cross-canadian: Allow ld-is-gold Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 14/28] binutils: Allow plugins Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 15/28] image_types: Fix rootfs size calcuation Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 16/28] glib-2.0: ensure dtrace is diabled for all distro options and fix packaging Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 17/28] kern-tools: import flexible branching support Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 18/28] linux-yocto: bump kernel version to v3.0.14 Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 19/28] linux-yocto: use src_patches for out of tree kernel feature support Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 20/28] xserver-kdrive: work around issues with -Werror=address Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 21/28] libxp: fix cast error Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 22/28] udev: use 'echo' instead of 'echo -n' in init script Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 23/28] udev: split utilities onto udev-utils Saul Wold
2012-01-05 10:33   ` Phil Blundell
2012-01-05  6:30 ` [CONSOLIDATED PULL 24/28] udev: remove commented code from init script (no code changes) Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 25/28] Patch Upstream-Status Update Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 26/28] matchbox-wm: Remove x-session-manager handling Saul Wold
2012-01-05 11:14   ` Phil Blundell
2012-01-05  6:30 ` [CONSOLIDATED PULL 27/28] util-linux: Update patch for non-GPLv3 Saul Wold
2012-01-05  6:30 ` [CONSOLIDATED PULL 28/28] gnutls: remove gettext " Saul Wold
2012-01-05 11:30 ` [CONSOLIDATED PULL 00/28] Build Fixes and Updates Richard Purdie
2012-01-05 14:10   ` Bruce Ashfield
2012-01-05 15:05     ` Richard Purdie
2012-01-05 15:12       ` Bruce Ashfield
2012-01-05 15:57   ` McClintock Matthew-B29882
2012-01-05 22:16     ` Richard Purdie
2012-01-06  2:25       ` Luo Zhenhua-B19537

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1325852434.20759.92.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox