Unable to compile squid for RPI

Andrew Turner andrew at fubar.geek.nz
Tue Aug 5 07:51:54 UTC 2014


On Tue, 5 Aug 2014 12:39:12 +0700
Alie Tan <alie at afflemedialab.com> wrote:

> Hi,
> 
> Is there anyway to solve compilation error below:
> ../../include/util.h:58:34: note: expanded from macro
> '_SQUID_EXTERNNEW_' #define _SQUID_EXTERNNEW_ extern inline
> __attribute__((gnu_inline)) ^
> 5 warnings generated.
> /tmp/StoreMap-5d1169.s: Assembler messages:
> /tmp/StoreMap-5d1169.s:713: Error: selected processor does not support
> `ldrexb r1,[r2]'
> /tmp/StoreMap-5d1169.s:715: Error: selected processor does not support
> `strexb r4,r3,[r2]'
> /tmp/StoreMap-5d1169.s:2456: Error: selected processor does not
> support `ldrexb r1,[r2]'
> /tmp/StoreMap-5d1169.s:2458: Error: selected processor does not
> support `strexb r7,r3,[r2]'
> c++: error: assembler command failed with exit code 1 (use -v to see
> invocation)
> *** [StoreMap.lo] Error code 1
> 
> make[5]: stopped in /usr/ports/www/squid33/work/squid-3.3.11/src/ipc
> 1 error

You need to make sure you have r269387. These are armv6k instructions
and our version of clang prior to this change only worked with armv6
instructions, i.e. no ldrexb or strexb instruction.

Andrew


More information about the freebsd-arm mailing list