Peter created SVN-4848:
--------------------------
Summary: ARM BUILD ERROR: subversion/libsvn_subr/lz4/lz4.c:349:
undefined reference to `__builtin_clz'
Key: SVN-4848
URL: https://issues.apache.org/jira/browse/SVN-4848
Project: Subversion
Issue Type: Bug
Environment: #----BUILD ERROR MESSAGE----
.......
subversion/libsvn_subr/lz4/lz4.c:322: undefined reference to `__builtin_ctz'
lz4/.libs/lz4.o(.text+0x1c8):subversion/libsvn_subr/lz4/lz4.c:349: undefined
reference to `__builtin_clz'
collect2: ld returned 1 exit status
make: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1
........
#----SYSTEM----
uname -a
Linux 2.6.21-ts #12 PREEMPT Fri Nov 13 14:40:56 PST 2015 armv5tejl GNU/Linux
#----CPU INFO----
cat /proc/cpuinfo
Processor : ARM926EJ-S rev 0 (v5l)
BogoMIPS : 332.59
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 0
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 32768
I assoc : 1
I line length : 32
I sets : 1024
D size : 32768
D assoc : 1
D line length : 32
D sets : 1024
#----COMPILER VERSION----
gcc --version
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
#----CONFIGURATION PARAMETERS----
./configure --with-zlib=/usr --with-lz4=internal --prefix=/usr
#----RESULTING BUILD ERROR----
gcc -g -O2 -g -O2 -pthread -rpath /usr/lib -version-info 0
-Wl,--no-undefined -o libsvn_subr-1.la adler32.lo atomic.lo auth.lo base64.lo
bit_array.lo cache-inprocess.lo cache-membuffer.lo cache-memcache.lo
cache-null.lo cache.lo cache_config.lo checksum.lo cmdline.lo compat.lo
compress_lz4.lo compress_zlib.lo config.lo config_auth.lo config_file.lo
config_win.lo crypto.lo ctype.lo date.lo debug.lo deprecated.lo dirent_uri.lo
dso.lo encode.lo eol.lo error.lo fnv1a.lo gpg_agent.lo hash.lo io.lo iter.lo
lock.lo log.lo lz4/lz4.lo macos_keychain.lo magic.lo md5.lo mergeinfo.lo
mutex.lo nls.lo object_pool.lo opt.lo packed_data.lo path.lo pool.lo
prefix_string.lo prompt.lo properties.lo quoprint.lo root_pools.lo
simple_providers.lo skel.lo sorts.lo spillbuf.lo sqlite.lo sqlite3wrapper.lo
ssl_client_cert_providers.lo ssl_client_cert_pw_providers.lo
ssl_server_trust_providers.lo stream.lo string.lo subst.lo sysinfo.lo target.lo
temp_serializer.lo time.lo token.lo types.lo user.lo username_providers.lo
utf.lo utf8proc.lo utf_validate.lo utf_width.lo validate.lo version.lo
win32_crashrpt.lo win32_crypto.lo win32_xlate.lo x509info.lo x509parse.lo
xml.lo -laprutil-1 -lapr-1 -lexpat -lz -lsqlite3 -lutf8proc
lz4/.libs/lz4.o(.text+0x1b8): In function `LZ4_NbCommonBytes':
subversion/libsvn_subr/lz4/lz4.c:322: undefined reference to `__builtin_ctz'
lz4/.libs/lz4.o(.text+0x1c8):subversion/libsvn_subr/lz4/lz4.c:349: undefined
reference to `__builtin_clz'
collect2: ld returned 1 exit status
make: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1
Reporter: Peter
On compilation of source 'subversion-1.13.0' build fails with error.
NOTE:
libLZ4 seems rather Intel-centric with the necessity of this specific
instruction.
SUGGESTION:
Maybe dump the requirement for LZ4 until it can compile on all CPU platforms
properly.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)