[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Another problem building gcc-4.4_4.4.4-6 related to the recent binutils 2.20.51.20100710-1 patch to set sysroot for cross builds



On 7/21/2010 5:32 PM, Loïc Minier wrote:
On Wed, Jul 21, 2010, Jim Heck wrote:
I have run into another problem that seems related to the recent
changes to binutils to set sysroot to /$(PF)/$(TARGET) for cross
builds.  I don't fully understand why, but my build of
gcc-4.4_4.4.4.6 with an alternate prefix that was working fine, but
now fails with ld unable to find the correct libraries, unless I
build binutils and specify an environment variable to explicitly set
WITH_SYSROOT=/
  This sounds a bit like
  https://bugs.launchpad.net/binutils-linaro/+bug/598389


Yes I meant to include this link in my post but forgot. I had found it during my search to see where that patch had come from. So do you understand the rationale for adding the --with-sysroot setting?


  I think the behavior of binutils changes if it's built with or without
  support, but I'm not up-to-date on what's the best thing to do is for
  cross-compilers and native compilers really.  :-/

It seems that the change was only applied to cross compilers. I imagine native compilers never needed to avoid the default behavior, but I'm confused as to what setting --with-sysroot accomplished, since at least the paths ld was complaining about for me seemed to be absolute paths to the libraries in question.




Reply to: