Clang 3.3 on Debian Wheezy

Tim Schmidt schmidt.tim at me.com
Mon Jun 3 10:41:28 UTC 2013


Hello Sylvestre,

thanks for your effort.
I'm struggling with the new version and I don't know what is wrong.

First, I removed all old packages and installed the new packages:

$ sudo aptitude install clang-3.4 clang-3.4-doc libclang-common-3.4-dev 
libclang-3.4-dev libclang1-3.4 libclang1-3.4-dbg libllvm-3.4-ocaml-dev 
libllvm3.4 libllvm3.4-dbg lldb-3.4 llvm-3.4 llvm-3.4-dev llvm-3.4-doc 
llvm-3.4-examples llvm-3.4-runtime
The following NEW packages will be installed:
   clang-3.4 clang-3.4-doc libclang-3.4-dev libclang-common-3.4-dev 
libclang1-3.4 libclang1-3.4-dbg libllvm-3.4-ocaml-dev libllvm3.4 
libllvm3.4-dbg lldb-3.4 llvm-3.4 llvm-3.4-dev llvm-3.4-doc
   llvm-3.4-examples llvm-3.4-runtime
0 packages upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 173 MB of archives. After unpacking 284 MB will be used.
Get: 1 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main libllvm3.4 
amd64 1:3.4~svn183093-1~exp1 [8,947 kB]
Get: 2 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main lldb-3.4 
amd64 1:3.4~svn183093-1~exp1 [8,175 kB]
Get: 3 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main 
libclang-common-3.4-dev amd64 1:3.4~svn183093-1~exp1 [6,804 B]
Get: 4 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main 
libclang1-3.4 amd64 1:3.4~svn183093-1~exp1 [6,710 B]
Get: 5 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main clang-3.4 
amd64 1:3.4~svn183093-1~exp1 [10.9 MB]
Get: 6 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main 
clang-3.4-doc all 1:3.4~svn183093-1~exp1 [692 kB]
Get: 7 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main 
libclang-3.4-dev amd64 1:3.4~svn183093-1~exp1 [6,774 B]
Get: 8 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main 
llvm-3.4-runtime amd64 1:3.4~svn183093-1~exp1 [39.3 kB]
Get: 9 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main llvm-3.4 
amd64 1:3.4~svn183093-1~exp1 [1,552 kB]
Get: 10 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main 
llvm-3.4-dev amd64 1:3.4~svn183093-1~exp1 [16.1 MB]
Get: 11 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main 
libllvm-3.4-ocaml-dev amd64 1:3.4~svn183093-1~exp1 [268 kB]
Get: 12 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main 
llvm-3.4-doc all 1:3.4~svn183093-1~exp1 [1,756 kB]
Get: 13 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main 
llvm-3.4-examples all 1:3.4~svn183093-1~exp1 [106 kB]
Get: 14 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main 
libclang1-3.4-dbg amd64 1:3.4~svn183093-1~exp1 [6,726 B]
Get: 15 http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy/main 
libllvm3.4-dbg amd64 1:3.4~svn183093-1~exp1 [124 MB]
Fetched 173 MB in 2min 17s (1,255 kB/s)
Selecting previously unselected package libllvm3.4:amd64.
(Reading database ... 352410 files and directories currently installed.)
Unpacking libllvm3.4:amd64 (from 
.../libllvm3.4_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
Unpacking lldb-3.4 (from 
.../lldb-3.4_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
*dpkg: error processing 
/var/cache/apt/archives/lldb-3.4_1%3a3.4~svn183093-1~exp1_amd64.deb 
(--unpack):*
  trying to overwrite '/usr/lib/x86_64-linux-gnu/liblldb.so.1', which is 
also in package lldb-3.3 1:3.3~svn181334-1~exp1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package libclang-common-3.4-dev.
Unpacking libclang-common-3.4-dev (from 
.../libclang-common-3.4-dev_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
Selecting previously unselected package libclang1-3.4.
Unpacking libclang1-3.4 (from 
.../libclang1-3.4_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
Selecting previously unselected package clang-3.4.
Unpacking clang-3.4 (from 
.../clang-3.4_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
Selecting previously unselected package clang-3.4-doc.
Unpacking clang-3.4-doc (from 
.../clang-3.4-doc_1%3a3.4~svn183093-1~exp1_all.deb) ...
Selecting previously unselected package libclang-3.4-dev.
Unpacking libclang-3.4-dev (from 
.../libclang-3.4-dev_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
Selecting previously unselected package llvm-3.4-runtime.
Unpacking llvm-3.4-runtime (from 
.../llvm-3.4-runtime_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
Selecting previously unselected package llvm-3.4.
Unpacking llvm-3.4 (from 
.../llvm-3.4_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
Selecting previously unselected package llvm-3.4-dev.
Unpacking llvm-3.4-dev (from 
.../llvm-3.4-dev_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
Selecting previously unselected package libllvm-3.4-ocaml-dev.
Unpacking libllvm-3.4-ocaml-dev (from 
.../libllvm-3.4-ocaml-dev_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
Selecting previously unselected package llvm-3.4-doc.
Unpacking llvm-3.4-doc (from 
.../llvm-3.4-doc_1%3a3.4~svn183093-1~exp1_all.deb) ...
Selecting previously unselected package llvm-3.4-examples.
Unpacking llvm-3.4-examples (from 
.../llvm-3.4-examples_1%3a3.4~svn183093-1~exp1_all.deb) ...
Selecting previously unselected package libclang1-3.4-dbg.
Unpacking libclang1-3.4-dbg (from 
.../libclang1-3.4-dbg_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
Selecting previously unselected package libllvm3.4-dbg:amd64.
Unpacking libllvm3.4-dbg:amd64 (from 
.../libllvm3.4-dbg_1%3a3.4~svn183093-1~exp1_amd64.deb) ...
Processing triggers for man-db ...
*Errors were encountered while processing:*
  /var/cache/apt/archives/lldb-3.4_1%3a3.4~svn183093-1~exp1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up libllvm3.4:amd64 (1:3.4~svn183093-1~exp1) ...
Setting up libllvm3.4-dbg:amd64 (1:3.4~svn183093-1~exp1) ...
Setting up llvm-3.4-doc (1:3.4~svn183093-1~exp1) ...
Setting up llvm-3.4-runtime (1:3.4~svn183093-1~exp1) ...
Setting up clang-3.4-doc (1:3.4~svn183093-1~exp1) ...
Setting up libclang-common-3.4-dev (1:3.4~svn183093-1~exp1) ...
Setting up libclang1-3.4 (1:3.4~svn183093-1~exp1) ...
Setting up clang-3.4 (1:3.4~svn183093-1~exp1) ...
Setting up llvm-3.4 (1:3.4~svn183093-1~exp1) ...
Setting up libclang-3.4-dev (1:3.4~svn183093-1~exp1) ...
Setting up llvm-3.4-dev (1:3.4~svn183093-1~exp1) ...
Setting up llvm-3.4-examples (1:3.4~svn183093-1~exp1) ...
Setting up libclang1-3.4-dbg (1:3.4~svn183093-1~exp1) ...
Setting up libllvm-3.4-ocaml-dev (1:3.4~svn183093-1~exp1) ...


Afterwards, I tried to compile a simple program and received the 
following error:

clang++ main.cpp
In file included from main.cpp:1:
In file included from 
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/iostream:40:
In file included from 
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/ostream:40:
In file included from 
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/ios:39:
In file included from 
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/iosfwd:42:
In file included from 
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/postypes.h:42:
In file included from 
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/cwchar:46:
/usr/include/wchar.h:40:11: fatal error: 'stdarg.h' file not found
# include <stdarg.h>
           ^
1 error generated.

It is possible that the new clang version requires one more package 
dependence?
Sorry, for all the trouble.


Cheers!

Tim

On 06/03/2013 09:50 AM, Sylvestre Ledru wrote:
> Hello Tim,
>
> You are right. I renamed some packages to improve the coinstallation of
> various version of clang (it is not fixed but close).
> I updated http://llvm.org/apt/
> This command should work
>
> apt-get install clang-3.4 clang-3.4-doc libclang-common-3.4-dev
> libclang-3.4-dev libclang1-3.4 libclang1-3.4-dbg libllvm-3.4-ocaml-dev
> libllvm3.4 libllvm3.4-dbg lldb-3.4 llvm-3.4 llvm-3.4-dev llvm-3.4-doc
> llvm-3.4-examples llvm-3.4-runtime
>
> Thanks for the feedback.
> Sylvestre
>
>
> Le 02/06/2013 20:29, Tim Schmidt a écrit :
>> Hey Sylvestre,
>>
>> thanks for your fast answer. Unfortunately, two dependencies cannot be
>> solved:
>>
>> +++++++++++++++++++++++++++++++++++++++++++++++++++
>> $ sudo aptitude install clang-3.4 clang-3.4-doc libclang-common-dev
>> libclang-dev libclang1 libclang1-dbg libllvm-3.4-ocaml-dev libllvm3.4
>> libllvm3.4-dbg lldb-3.4 llvm-3.4 llvm-3.4-dev llvm-3.4-doc
>> llvm-3.4-examples llvm-3.4-runtime
>> The following NEW packages will be installed:
>>    libclang-common-dev{b} libclang-dev lldb-3.4
>> 0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
>> Need to get 12.7 MB/20.8 MB of archives. After unpacking 78.7 MB will
>> be used.
>> The following packages have unmet dependencies:
>>   libclang-common-dev : Depends: libllvm3.4 (= 1:3.4~svn182723-1~exp1)
>> but 1:3.4~svn183083-1~exp1 is installed.
>> The following actions will resolve these dependencies:
>>
>>       Keep the following packages at their current version:
>> 1)     libclang-common-dev [Not Installed]
>> 2)     libclang-dev [Not Installed]
>>
>>
>>
>> Accept this solution? [Y/n/q/?]
>> +++++++++++++++++++++++++++++++++++++++++++++++++++
>>
>> Can I fix this by myself?
>>
>> Tim
>>
>>
>> On 06/02/2013 08:03 PM, Sylvestre Ledru wrote:
>>> On 02/06/2013 18:15, Tim Schmidt wrote:
>>>> Good evening,
>>>>
>>>> I tried to install the current version of clang-3.3 from:
>>>>
>>>> deb http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy main
>>>> deb-src http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy main
>>>>
>>> Please try with clang-3.4 instead of 3.3.
>>>
>>> Sylvestre
>>>
>>>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20130603/99dd6e13/attachment-0001.html>


More information about the Pkg-llvm-team mailing list