From owner-freebsd-arm@FreeBSD.ORG Tue Jan 29 03:31:00 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AA9643AA for ; Tue, 29 Jan 2013 03:31:00 +0000 (UTC) (envelope-from jesse@tummy.com) Received: from mail2.tummy.com (mail.tummy.com [198.49.126.6]) by mx1.freebsd.org (Postfix) with ESMTP id 89ACA23E for ; Tue, 29 Jan 2013 03:31:00 +0000 (UTC) Received: by mail2.tummy.com (Postfix, from userid 10) id BBA501BA4C2; Mon, 28 Jan 2013 20:21:56 -0700 (MST) Received: from jesse.tummy.com (localhost.localdomain [127.0.0.1]) by jesse.tummy.com (Postfix) with ESMTP id 7336A139AB; Mon, 28 Jan 2013 20:21:32 -0700 (MST) Message-ID: <5107403C.5070206@tummy.com> Date: Mon, 28 Jan 2013 20:21:32 -0700 From: Jesse Griffin Organization: tummy.com, ltd. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130109 Thunderbird/10.0.12 MIME-Version: 1.0 To: Oleksandr Tymoshenko Subject: Re: Nginx Build Fails on Compiling pcre References: <50F74150.1080600@tummy.com> <0C39E32B-32D2-4FE6-A8D4-168C83F18AF0@bluezbox.com> In-Reply-To: <0C39E32B-32D2-4FE6-A8D4-168C83F18AF0@bluezbox.com> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Hashcash: 1:26:130129:freebsd-arm@freebsd.org::a1f+zsTK2ogFEODj:00000000000000 000000000000000000000001NauR Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 03:31:00 -0000 On 01/16/2013 10:24 PM, Oleksandr Tymoshenko wrote: > > On 2013-01-16, at 4:09 PM, Jesse Griffin 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.