Package: libc++1
Version: 3.5-2
Severity: normal

Dear Maintainer,

trying to compile any file, I get:

$ clang++ -target arm-linux-gnueabi -stdlib=libc++ main.cc
/usr/lib/gcc/arm-linux-gnueabi/4.9/../../../../arm-linux-gnueabi/bin/ld: a.out: 
hidden symbol `__sync_val_compare_and_swap_4' in 
/usr/lib/gcc/arm-linux-gnueabi/4.9/libgcc.a(linux-atomic.o) is referenced by DSO
/usr/lib/gcc/arm-linux-gnueabi/4.9/../../../../arm-linux-gnueabi/bin/ld: final 
link failed: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Using -stdlib=libstdc++, I need -latomic for almost everything, but it
seems to work. I haven't found the equivalent for libc++, -static
provides a temporary workaround.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
armhf
powerpc
ppc64el
arm64
s390x
armel

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc++1:armel depends on:
ii  libc6              2.19-13
ii  multiarch-support  2.19-13

libc++1:armel recommends no packages.

Versions of packages libc++1:armel suggests:
ii  clang  1:3.5-25

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to