Bug#771380: libclang-common-3.5-dev: libraries cant be installed for crosscompiling 32bit

Norbert Lange npl at chello.at
Sat Nov 29 17:29:47 UTC 2014


Sure,

consider test.cpp a trivial hello world program.

# This works:
clang++ test.cpp
# This works also if you installed the 32bit libs from gcc:
clang++ -m32 test.cpp

# These will use the llvm libraries, and there is no way of getting the  
32bit ones via package:
clang++ -m32 --rtlib=compiler-rt test.cpp
clang++ -m32 -fsanitize=address test.cpp

# .. and theoretical, this would be nice aswell:
clang++ -target arm-linux-eabi test.cpp

In short a solution like gccs lib32asan1, lib32gcc, libx32asan1,  
libx32gcc, ... packages would be needed, or proper multiarch packages so  
the binaries for different archs can be installed together.
And ideally further packages would install libraries for arm-[linux|none],  
mips-[linux|none], etc..

Kind Regards,
  Norbert Lange

Am 29.11.2014, 10:42 Uhr, schrieb Sylvestre Ledru <sylvestre at debian.org>:

> On 29/11/2014 00:29, Norbert Lange wrote:
>> Package: libclang-common-3.5-dev
>> Version: 1:3.5-6
>> Severity: normal
>>
>> Dear Maintainer,
>>
>> I am trying to compile for 32 bit with clang. If libraries from llvm
>> have to be used, the linker will rightfully complain about missing  
>> files.
>> Attempting to install libclang-common-3.5-dev:i386 will fail or require  
>> to
>> uninstall the 64bit packages first.
>> Please separate the binaries so that those can be installed side-by-side
>> or provide an additional package for 32bit libs for 64bit Archs
>>
>> As workaround I extracted just the libs from  
>> /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux
>>
> Could you please provide a testcase of what you are trying to do?
> (to make sure I am able to test the changes)
>
> Thanks
> S



More information about the Pkg-llvm-team mailing list