help-hurd
[Top][All Lists]
Advanced

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

Cross Toolchain - ld: cannot find -lihash when building libpthreads


From: Masanori Ogino
Subject: Cross Toolchain - ld: cannot find -lihash when building libpthreads
Date: Sat, 05 Dec 2015 22:49:19 +0000

Hello,

I've been trying to build a Hurd system in Linux From Scratch approach.

When I built a "cross" toolchain targeting i686-pc-gnu on Debian GNU/Hurd, I encountered an error. The message is below:

> /mnt/hfs/tools/bin/../lib/gcc/i686-pc-gnu/5.2.0/../../../../i686-pc-gnu/bin/ld: cannot find -lihash
> collect2: error: ld returned 1 exit status
> ../Makerules:438: recipe for target '/mnt/hfs/sources/glibc-build/libpthread/libpthread.so' failed
> make[2]: *** [/mnt/hfs/sources/glibc-build/libpthread/libpthread.so] Error 1
> make[2]: Leaving directory '/mnt/hfs/sources/glibc-2.19-hurd+libpthread-20151031/libpthread'
> Makefile:213: recipe for target 'libpthread/others' failed
> make[1]: *** [libpthread/others] Error 2
> make[1]: Leaving directory '/mnt/hfs/sources/glibc-2.19-hurd+libpthread-20151031'
> Makefile:9: recipe for target 'all' failed
> make: *** [all] Error 2

The problem is, libpthreads integrated in glibc requires libihash and libihash requires glibc.
I avoided this problem by copying libihash.* from the host system, but it seems dirty. Is there any clean and sane way to handle it?
--
Masanori Ogino

reply via email to

[Prev in Thread] Current Thread [Next in Thread]