Debian Bug report logs - #710322
clang-3.3: Support Headers not picked up cstddef and more

version graph

Package: clang-3.3; Maintainer for clang-3.3 is (unknown);

Reported by: "Marc J. Driftmeyer" <mjd@reanimality.com>

Date: Wed, 29 May 2013 22:45:02 UTC

Severity: normal

Found in version llvm-toolchain-snapshot/1:3.3~svn179851-1~exp1

Fixed in versions llvm-toolchain-snapshot/1:3.3-2, llvm-toolchain-3.3/1:3.3-2

Done: Sylvestre Ledru <sylvestre@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>:
Bug#710322; Package clang-3.3. (Wed, 29 May 2013 22:45:06 GMT) (full text, mbox, link).


Acknowledgement sent to "Marc J. Driftmeyer" <mjd@reanimality.com>:
New Bug report received and forwarded. Copy sent to LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>. (Wed, 29 May 2013 22:45:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Marc J. Driftmeyer" <mjd@reanimality.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: clang-3.3: Support Headers not picked up cstddef and more
Date: Wed, 29 May 2013 22:33:55 +0000
Package: clang-3.3
Version: 1:3.3~svn179851-1~exp1
Severity: normal

Dear Maintainer,

Since so many packages have been pushed from experimental into Sid with GCC-4.7 and part of GCC-4.8 I decided to see how building LLVM/Clang from trunk works. It fails with assembly issues I'll file later using GCC-4.7 as the CC.

Now, I decide to install the LLVM-3.3/Clang-3.3 toolchain in its entirety to see how well it builds and this is what I get:

Scanning dependencies of target LLVMSupport
[  0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/lib/Support/APFloat.cpp:15:
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/include/llvm/ADT/APFloat.h:104:
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/include/llvm/ADT/APInt.h:19:
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/include/llvm/ADT/ArrayRef.h:14:
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/include/llvm/ADT/SmallVector.h:17:
/home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/include/llvm/Support/AlignOf.h:19:10: fatal error: 
      'cstddef' file not found
#include <cstddef>
         ^
1 error generated.
make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o] Error 1
make[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make: *** [all] Error 2

----------------

What is it with this latest transition in GCC-4.7.4 and GCC-4.8 that seems to throw this error each and every time I test it? Am I missing a package that can resolve the relocation of these header file paths or does Debian need to contact LLLVM/Clang and make sure those paths are included when building the infrastructure?

Sincerely,

Marc J. Driftmeyer

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

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

Versions of packages clang-3.3 depends on:
ii  libc6                2.17-3
ii  libclang-common-dev  1:3.3~svn179851-1~exp1
ii  libffi5              3.0.10-3
ii  libgcc1              1:4.8.0-8
ii  libllvm3.3           1:3.3~svn179851-1~exp1
ii  libstdc++6           4.8.0-8
ii  libstdc++6-4.7-dev   4.7.3-4

Versions of packages clang-3.3 recommends:
ii  llvm-3.3-dev  1:3.3~svn179851-1~exp1
ii  python        2.7.3-13

clang-3.3 suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>:
Bug#710322; Package clang-3.3. (Thu, 30 May 2013 04:54:04 GMT) (full text, mbox, link).


Acknowledgement sent to Sylvestre Ledru <sylvestre@debian.org>:
Extra info received and forwarded to list. Copy sent to LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>. (Thu, 30 May 2013 04:54:04 GMT) (full text, mbox, link).


Message #10 received at 710322@bugs.debian.org (full text, mbox, reply):

From: Sylvestre Ledru <sylvestre@debian.org>
To: "Marc J. Driftmeyer" <mjd@reanimality.com>, 710322@bugs.debian.org
Subject: Re: Bug#710322: clang-3.3: Support Headers not picked up cstddef and more
Date: Thu, 30 May 2013 06:50:27 +0200
Hello,

On 30/05/2013 00:33, Marc J. Driftmeyer wrote:> Package: clang-3.3
> Version: 1:3.3~svn179851-1~exp1
> Severity: normal
>
> Dear Maintainer,
>
> In file included from
/home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/include/llvm/ADT/SmallVector.h:17:
>
/home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/include/llvm/Support/AlignOf.h:19:10:
fatal error:
>       'cstddef' file not found
> #include <cstddef>
>          ^
> 1 error generated.
> make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o]
Error 1
> make[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
> make: *** [all] Error 2
>
> ----------------
>

Could you try to build the same way the package it built ? For now, I do
not support cmake build.

Thanks
Sylvestre




Information forwarded to debian-bugs-dist@lists.debian.org, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>:
Bug#710322; Package clang-3.3. (Thu, 30 May 2013 23:33:07 GMT) (full text, mbox, link).


Acknowledgement sent to Marc Driftmeyer <mjd@reanimality.com>:
Extra info received and forwarded to list. Copy sent to LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>. (Thu, 30 May 2013 23:33:07 GMT) (full text, mbox, link).


Message #15 received at 710322@bugs.debian.org (full text, mbox, reply):

From: Marc Driftmeyer <mjd@reanimality.com>
To: Sylvestre Ledru <sylvestre@debian.org>
Cc: 710322@bugs.debian.org
Subject: Re: Bug#710322: clang-3.3: Support Headers not picked up cstddef and more
Date: Thu, 30 May 2013 23:25:01 +0000
[Message part 1 (text/plain, inline)]
On 05/30/2013 04:50 AM, Sylvestre Ledru wrote:
> Hello,
>
> On 30/05/2013 00:33, Marc J. Driftmeyer wrote:> Package: clang-3.3
>> Version: 1:3.3~svn179851-1~exp1
>> Severity: normal
>>
>> Dear Maintainer,
>>
>> In file included from
> /home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/include/llvm/ADT/SmallVector.h:17:
> /home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/include/llvm/Support/AlignOf.h:19:10:
> fatal error:
>>        'cstddef' file not found
>> #include <cstddef>
>>           ^
>> 1 error generated.
>> make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o]
> Error 1
>> make[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> ----------------
>>
> Could you try to build the same way the package it built ? For now, I do
> not support cmake build.
>
> Thanks
> Sylvestre
>
Cmake aside which is going to be the defacto standard within the 
LLVM/Clang system, I found out the error with cstddef: After installing 
libstdc++6-4.7-pic this error is gone compiling 
LLVM/Clang/LLDB/Compiler-RT/Libcxx trunk against llvm-3.3 latest [have 
not yet tested bleeding edge 3.4] in Debian.

Now that <cstddef> no longer fails I've got this presently from trunk:

> Linking CXX executable ToolingTests
> CMakeFiles/ToolingTests.dir/ToolingTest.cpp.o:/home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/tools/clang/unittests/Tooling/ToolingTest.cpp:function 
> clang::tooling::newFrontendActionFactory_CreatesFrontendActionFactoryFromType_Test::TestBody(): 
> error: undefined reference to 
> 'clang::SyntaxOnlyAction::~SyntaxOnlyAction()'
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> make[2]: *** [tools/clang/unittests/Tooling/ToolingTests] Error 1
> make[1]: *** 
> [tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/all] Error 2
> make: *** [all] Error 2
> mdriftmeyer@horus:~/DeveloperProjects/LLVMProject/cmake-clang-trunk$

I'm going to track down and see if the latest checkout resolves this 
issue or not. I wish I had a deeper knowledge of both GCC and LLVM/Clang 
[though in this area I am gaining in] so as to not waste your time.



The other `error' I had with assembly [I alluded to as being a different 
bug] was the fact with a mixed gcc-4.7/gcc-4.8 transition from 
Experimental I checked more closely the cmake config and noted gcc-> 
gcc-4.8 while g++ -> g++-4.7 thus the error.

With the standard: -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.7 
-DCMAKE_C_COMPILER=/usr/bin/gcc-4.7 ../llvm in a simple cmake config 
everything built from trunk.

I'm not sure what reason gcc-4.8 is set to default for gcc and thus cc 
compiler option, but the symlink states Feb 18, 2013 on this change, 
while the g++ symlink dates back to September 12, 2012.

Sincerely,

Marc J. Driftmeyer

-- 
Marc J. Driftmeyer
Email :: mjd@reanimality.com <mailto:mjd@reanimality.com>
Web :: http://www.reanimality.com
Cell :: (509) 435-5212
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>:
Bug#710322; Package clang-3.3. (Fri, 31 May 2013 05:48:04 GMT) (full text, mbox, link).


Acknowledgement sent to Sylvestre Ledru <sylvestre@debian.org>:
Extra info received and forwarded to list. Copy sent to LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>. (Fri, 31 May 2013 05:48:04 GMT) (full text, mbox, link).


Message #20 received at 710322@bugs.debian.org (full text, mbox, reply):

From: Sylvestre Ledru <sylvestre@debian.org>
To: Marc Driftmeyer <mjd@reanimality.com>
Cc: 710322@bugs.debian.org
Subject: Re: Bug#710322: clang-3.3: Support Headers not picked up cstddef and more
Date: Fri, 31 May 2013 07:44:40 +0200
>>
> Cmake aside which is going to be the defacto standard within the
> LLVM/Clang system, 
Cmake build is not completed compare to the autotools.
See:
http://llvm.org/bugs/show_bug.cgi?id=15732
Until they are fixed, I am not planning to support two build system.

Even if I started some works on that:
http://anonscm.debian.org/viewvc/pkg-llvm/llvm-toolchain/branches/cmake/


> I found out the error with cstddef: After installing
> libstdc++6-4.7-pic this error is gone compiling
> LLVM/Clang/LLDB/Compiler-RT/Libcxx trunk against llvm-3.3 latest [have
> not yet tested bleeding edge 3.4] in Debian.
Interesting. Thanks for the feedback.

S




Information forwarded to debian-bugs-dist@lists.debian.org, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>:
Bug#710322; Package clang-3.3. (Wed, 04 Sep 2013 15:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Sylvestre Ledru <sylvestre@debian.org>:
Extra info received and forwarded to list. Copy sent to LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>. (Wed, 04 Sep 2013 15:33:07 GMT) (full text, mbox, link).


Message #25 received at 710322@bugs.debian.org (full text, mbox, reply):

From: Sylvestre Ledru <sylvestre@debian.org>
To: control@bugs.debian.org, 710322-done@bugs.debian.org, 710322@bugs.debian.org
Subject: Fixed
Date: Wed, 04 Sep 2013 17:29:57 +0200
fixed 710322 3.3-1
thanks

Hi,

On my system at least, this bug is fixed.

-- bar.cpp --
#include <cstddef>

int main() {

	return 0;
}

$ clang++ bar.cpp
$ ./a.out

If it stills fails on your system, please provide a testcase and reopen it.

Thanks
S



Marked as fixed in versions 3.3-1. Request was from Sylvestre Ledru <sylvestre@debian.org> to control@bugs.debian.org. (Wed, 04 Sep 2013 15:33:14 GMT) (full text, mbox, link).


Reply sent to Sylvestre Ledru <sylvestre@debian.org>:
You have taken responsibility. (Wed, 04 Sep 2013 15:33:18 GMT) (full text, mbox, link).


Notification sent to "Marc J. Driftmeyer" <mjd@reanimality.com>:
Bug acknowledged by developer. (Wed, 04 Sep 2013 15:33:18 GMT) (full text, mbox, link).


No longer marked as fixed in versions 3.3-1. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 02 Nov 2013 15:58:10 GMT) (full text, mbox, link).


Marked as fixed in versions llvm-toolchain-3.3/1:3.3-2. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 02 Nov 2013 15:58:11 GMT) (full text, mbox, link).


Marked as fixed in versions llvm-toolchain-snapshot/1:3.3-2. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Thu, 09 Jan 2014 19:24:12 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 07 Feb 2014 07:28:07 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Oct 11 23:39:03 2017; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.