build issue

Subash T Comerica subashtc at
Fri Feb 22 23:06:11 UTC 2019

I am facing the dreaded /lib/ missing when I turn on the
with-pcre option while cross-compiling lighttpd.

I have worked with the lighttpd mailing list and confirmed it is not a
lighttpd or libpcre issue.

My uClibc version is
My libpcre version is 8.35
My lighttpd version is 1.4.51

For the with-pcre addition, I just followed:

Strangely if I copy the to my build machine's /lib (with
root perms) the build goes through fine, which obviously is a no-go!
Is there any Makefile patch to remove this ASNEEDED dependency on
libubacktrace as I dont see any backtrace related symbols either in libpcre
or lighttpd source? Are there newer patches like the one referred here(
that I am possibly missing?

Did any of you face this error while cross-compiling lighttpd with-pcre?

Any help/suggestions on this is highly appreciated.


<partial logs, sorry about the redaction!>

libtool: link:
-std=gnu99 -shared  -fPIC -DPIC  .libs/mod_flv_streaming.o
  -Wl,-soname -Wl, -o .libs/
cannot find /lib/
collect2: error: ld returned 1 exit status
make4 <>:

** [ <>] Error 1make4
<>: Leaving
<>: *

*[all] Error 2make3
<>: Leaving
<>: *

*[all-recursive] Error 1make2
<>: Leaving
<>: *

*[all] Error 2make1
<>: Leaving
*** [lighttpd] Error 2

More information about the uClibc mailing list