Bug#490432: llvm-gcc: cannot build shared libraries on amd64

Sam Hocevar sam at zoy.org
Sat Jul 12 09:57:59 UTC 2008


Package: llvm-gcc-4.2
Version: 2.2-1
Severity: important

   I am unable to build shared libraries with llvm-gcc because of
crtbeginS.o containing non-PIC code:

% echo 'static int c; int foo(void) { return c; }' > foo.c
% llvm-gcc -fPIC -DPIC -shared foo.c -o foo.so
/usr/bin/ld: /usr/lib/llvm/gcc-4.2/lib/gcc/x86_64-linux-gnu/4.2.1/crtbeginS.o: relocation R_X86_64_PC32 against `__cxa_finalize@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25.9 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages llvm-gcc-4.2 depends on:
ii  libc6                         2.7-12     GNU C Library: Shared libraries
ii  libgcc1                       1:4.3.1-6  GCC support library
ii  libltdl3                      1.5.26-4   A system independent dlopen wrappe
ii  libstdc++6                    4.3.1-6    The GNU Standard C++ Library v3
ii  llvm                          2.2-8      Low-Level Virtual Machine (LLVM) c
ii  llvm-dev                      2.2-8      common libraries and headers for L

llvm-gcc-4.2 recommends no packages.

-- no debconf information





More information about the Pkg-llvm-team mailing list