Project

General

Profile

Actions

Bug #1344

closed

Error compiling latest master on ARM CPU - atomic.h

Added by hoon tune over 12 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
non-x86
Target version:
-
Start date:
2012-10-21
Due date:
% Done:

0%

Estimated time:
Found in version:
a40aad8f
Affected Versions:

Description

Hi,

I think Revision a40aad8f may have caused issues for ARM compilation.

I run the following script to compile

mkdir -p /opt/tvheadendts2
git clone https://github.com/tvheadend/tvheadend.git /opt/tvheadendts2
cd /opt/tvheadendts2

export CC=gcc

bash configure \
--host=armle-unknown-linux \
--target=armle-unknown-linux \
--build=i686-pc-linux \
--disable-avahi \
--release \
--openssl=/opt/lib \
--prefix=/opt/tvheadendts2

make

but today get the following error


./build.linux/src/packet.o: In function `atomic_add':
/opt/tvheadendts2/src/atomic.h:24: undefined reference to `__sync_fetch_and_add_4'

./build.linux/src/streaming.o:/opt/tvheadendts2/src/atomic.h:24: more undefined references to `__sync_fetch_and_add_4' follow
./build.linux/src/subscriptions.o: In function `atomic_exchange':
/opt/tvheadendts2/src/atomic.h:30: undefined reference to `__sync_lock_test_and_set_4'
./build.linux/src/service.o: In function `atomic_add':
/opt/tvheadendts2/src/atomic.h:24: undefined reference to `__sync_fetch_and_add_4'
/opt/tvheadendts2/src/atomic.h:24: undefined reference to `__sync_fetch_and_add_4'
./build.linux/src/cwc.o: In function `atomic_add':
/opt/tvheadendts2/src/atomic.h:24: undefined reference to `__sync_fetch_and_add_4'
collect2: ld returned 1 exit status
make: *** [build.linux/tvheadend] Error 1

configure shows the following

DiskStation> bash configure \
> --host=armle-unknown-linux \
> --target=armle-unknown-linux \
> --build=i686-pc-linux \
> --disable-avahi \
> --release \
> --openssl=/opt/lib \
> --prefix=/opt/tvheadendts2
checking for cc execinfo.h ...         ok
checking for cc -mmmx ...              fail
checking for cc -msse2 ...             fail
checking for cc getloadavg ...         ok
checking for py module gzip ...        ok
checking for bzip2 ...                 ok
checking for pkg openssl  ...          ok
checking for pkg zlib  ...             fail

Compiler:
  Using C compiler:                    gcc
  Build for arch:                      armv5tel

Binaries:
  Using PYTHON:                        python

Options:
  cwc:                                 yes
  v4l:                                 yes
  linuxdvb:                            yes
  dvbscan:                             yes
  avahi:                               no
  zlib:                                no
  bundle:                              no
  execinfo:                            yes
  getloadavg:                          yes
  py_gzip:                             yes
  bin_bzip2:                           yes
  ssl:                                 yes

Packages:
  openssl:                             0.9.8p

Installation paths:
  Prefix:                              /opt/tvheadendts2
  Binaries:                            ${prefix}/bin
  Libraries:                           ${prefix}/lib
  Data files:                          ${prefix}/share
  Man pages:                           ${datadir}/man

Final Binary:
  /opt/tvheadendts2/build.linux/tvheadend

Tvheadend Data Directory:
  /opt/tvheadendts2/share/tvheadend

perhaps I need to install some more libraries ?

Thanks for all your work

Hayden

Actions

Also available in: Atom PDF