Bug#674588: /usr/lib/llvm-3.1/bin/llvm-config: llvm-config reports bogus prefix in chroot

Michal Suchanek michal.suchanek at ruk.cuni.cz
Fri May 25 17:44:30 UTC 2012


Package: llvm-3.1
Version: 3.1-1
Severity: normal
File: /usr/lib/llvm-3.1/bin/llvm-config

Hello,

llvm-config reports some random bogus value for prefix

# llvm-config-3.1 --prefix
/

This is in a 32bit chroot.

The 64bit package and 32bit package installed outside of the chroot work
as expected.

Strace reveals
readlink("/proc/self/exe", "/usr/lib/llvm-3.1/bin/llvm-config", 4096)

Which is a no-go in the chroot.



-- System Information:
Debian Release: 6.0.5
  APT prefers stable
  APT policy: (900, 'stable'), (700, 'testing'), (500, 'unstable'), (200, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.2.0-2-amd64
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages llvm-3.1 depends on:
ii  libc6                         2.13-32    Embedded GNU C Library: Shared lib
ii  libffi5                       3.0.9-3    Foreign Function Interface library
ii  libgcc1                       1:4.7.0-8  GCC support library
ii  libllvm3.1                    3.1-1      Low-Level Virtual Machine (LLVM), 
ii  libstdc++6                    4.7.0-8    GNU Standard C++ Library v3
ii  llvm-3.1-runtime              3.1-1      Low-Level Virtual Machine (LLVM), 

Versions of packages llvm-3.1 recommends:
ii  llvm-3.1-dev                  3.1-1      Low-Level Virtual Machine (LLVM), 

Versions of packages llvm-3.1 suggests:
pn  llvm-3.1-doc                  <none>     (no description available)

-- no debconf information


-- System Information:
Debian Release: wheezy/sid
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'testing'), (410, 'unstable'), (200, 'experimental'), (111, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages llvm-3.1 depends on:
ii  libc6             2.13-32
ii  libffi5           3.0.10-3
ii  libgcc1           1:4.7.0-8
ii  libllvm3.1        3.1-1
ii  libstdc++6        4.7.0-8
ii  llvm-3.1-runtime  3.1-1

Versions of packages llvm-3.1 recommends:
ii  llvm-3.1-dev  3.1-1

Versions of packages llvm-3.1 suggests:
pn  llvm-3.1-doc  <none>

-- no debconf information





More information about the Pkg-llvm-team mailing list