This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trouble with --with-sysroot


On Wed, Sep 4, 2019 at 12:46 PM Alex <wailingoctopus@gmail.com> wrote:
> .../$TARGET-ld cannot find /home/alex/sysroot/usr/lib/libc.so.6 inside
> /home/alex/sysroot

This usually indicates a glibc configure error.  When you configured
glibc, target paths are relative to the sysroot, but you probably did
something like set libdir to $(sysroot)/usr/lib when it should have
been just /usr/lib instead, so now the linker is looking for a file
$(sysroot)/usr/lib/X inside $(sysroot), when it should have been
looking for the file /usr/lib/X inside $(sysroot).

Jim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]