libtool: error: cannot find the library '/usr/lib/'...

Ken Brown
Sun Aug 21 22:18:00 GMT 2016

On 8/21/2016 11:04 AM, Marco Atzeri wrote:
> On 21/08/2016 06:01, Ken Brown wrote:
>> On 8/20/2016 5:54 PM, Ken Brown wrote:
>>> I'm trying to rebuild texlive, and the build on x86 is failing as
>>> follows:
>>> make[2]: Entering directory
>>> '/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build/texk/xdvik'
>>> /bin/sh ./libtool  --tag=CC   --mode=link gcc -Wimplicit -Wreturn-type
>>> -Wdeclaration-after-statement -Wno-unknown-pragmas -ggdb -O2 -pipe
>>> -Wimplicit-function-declaration
>>> -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build=/usr/src/debug/texlive-20160520-2
>>> -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/src/texlive-20160520-source=/usr/src/debug/texlive-20160520-2
>>> -o xdvi-bin.exe main.o libxdvi.a
>>> /home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build/texk/kpathsea/
>>> -lfreetype  -Xlinker --allow-multiple-definition  -lXaw -lXmu -lXt
>>> -lSM -lICE -lXi -lXext -lXpm -lX11
>>> libtool:   error: cannot find the library '/usr/lib/' or
>>> unhandled argument '/usr/lib/'
>>> (/usr/lib/ was removed from the x86 distro in the recent
>>> update of libxcb-devel.)
>> I think I found the problem, but I don't have access to my build machine
>> right now to test it: Several /usr/lib/*.la files include the
>> non-existent /usr/lib/ in their dependency_libs.  In
>> particular, this is true of /usr/lib/  So I'm guessing that
>> the presence of -lXext in the libtool command line is causing libtool to
>> look for /usr/lib/
>> Can someone confirm this guess?  If I'm right, then it seems that
>> /usr/lib/ should be restored until all packages that depend on
>> it can be rebuilt.
>> Ken
> my usual solution it to remove the /usr/lib/*.la that is calling the
> /usr/lib/
> This is also what Yaakov proposed as general solution.

Removing /usr/lib/ solved the problem.  Thanks for your help.


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list