Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2013 20:21:32 -0700
From:      Jesse Griffin <jesse@tummy.com>
To:        Oleksandr Tymoshenko <gonzo@bluezbox.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Nginx Build Fails on Compiling pcre
Message-ID:  <5107403C.5070206@tummy.com>
In-Reply-To: <0C39E32B-32D2-4FE6-A8D4-168C83F18AF0@bluezbox.com>
References:  <50F74150.1080600@tummy.com> <0C39E32B-32D2-4FE6-A8D4-168C83F18AF0@bluezbox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/16/2013 10:24 PM, Oleksandr Tymoshenko wrote:
> 
> On 2013-01-16, at 4:09 PM, Jesse Griffin <jesse@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@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.  

This was my suspicion as well.  I just tested building Nginx on
freebsd-pi-r245446.img and it worked as expected.


Thank you,
Jesse Griffin
tummy.com, ltd.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5107403C.5070206>