Nginx Build Fails on Compiling pcre
Oleksandr Tymoshenko
gonzo at bluezbox.com
Thu Jan 17 05:24:35 UTC 2013
On 2013-01-16, at 4:09 PM, Jesse Griffin <jesse at tummy.com> wrote:
> Hello,
>
> I'm not sure if this is the correct list, but the only reason why I did the
> following was to test FreeBSD on the Pi.
>
> I setup http://www.peach.ne.jp/archives/rpi/freebsd-pi-clang-20130115.img.gz on
> my Pi and I tried building several ports to see what I got. Most of them
> completed okay, but the Nginx build fails when it tries to compile
> /usr/ports/devel/pcre.
>
> Building Nginx on an i386 FreeBSD 10 CURRENT works.
>
> Below is the output:
>
> root at raspberry-pi:/usr/ports/www/nginx # make install clean
> ===> nginx-1.2.6,1 depends on shared library: pcre - not found
> ===> Verifying install for pcre in /usr/ports/devel/pcre
> ===> Building for pcre-8.32
> make all-am
> CCLD pcretest
> ./.libs/libpcre.so: undefined reference to `__clear_cache'
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
I believe it might be clang/ARM issue. gcc compiles test application with
__clear_cache just fine on my ARM. Both clang and gcc compile the same
application on x86_64. So some bits might be missing in clang's std library
for ARM.
More information about the freebsd-arm
mailing list