Trouble with --with-sysroot
Jim Wilson
jimw@sifive.com
Wed Sep 4 22:16:00 GMT 2019
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
More information about the Gcc-help
mailing list