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

2014-11-29 Thread Sylvestre Ledru
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


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



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

2014-11-29 Thread Norbert Lange

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 sylves...@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



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



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

2014-11-29 Thread Norbert Lange
Well, not as important for me, but fitting nonetheless x32 doesnt seem to  
fit in the naming scheme at all,

if you run

clang++ -mx32 -fsanitize=address test.cpp

then clang will try to link the amd64 libraries, instead of trying to  
using x32 versions


--- Weitergeleitete Nachricht ---
Von: Norbert Lange n...@chello.at
An: 771...@bugs.debian.org, Sylvestre Ledru sylves...@debian.org
Kopie:
Betreff: Re: Bug#771380: libclang-common-3.5-dev: libraries cant be  
installed for crosscompiling 32bit

Datum: Sat, 29 Nov 2014 18:29:47 +0100

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 sylves...@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



--
Erstellt mit Operas E-Mail-Modul: http://www.opera.com/mail/


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



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

2014-11-28 Thread Norbert Lange
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

Kind Regards,
 Norbert Lange

-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (200, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages libclang-common-3.5-dev depends on:
ii  libllvm3.5  1:3.5-6

libclang-common-3.5-dev recommends no packages.

libclang-common-3.5-dev suggests no packages.

-- 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