clang fails to build kate with fatal error: 'stddef.h' file not found

Bug #1196215 reported by Philip Muškovac
58
This bug affects 10 people
Affects Status Importance Assigned to Milestone
llvm-toolchain-3.2 (Debian)
Fix Released
Unknown
llvm-toolchain-3.2 (Ubuntu)
Triaged
High
Unassigned

Bug Description

take kate from the saucy archive, when building it with clang:

[ 0%] Building CXX object part/CMakeFiles/katepartinterfaces.dir/katepartinterfaces_automoc.o
In file included from /home/yofel/src/kate/build-c/part/katepartinterfaces_automoc.cpp:4:
In file included from /home/yofel/src/kate/build-c/part/moc_variablelistview.cpp:10:
In file included from /home/yofel/src/kate/build-c/part/../../part/variableeditor/variablelistview.h:24:
In file included from /usr/include/qt4/QtCore/QMap:1:
In file included from /usr/include/qt4/QtCore/qmap.h:45:
In file included from /usr/include/qt4/QtCore/qatomic.h:45:
/usr/include/qt4/QtCore/qglobal.h:45:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^
1 error generated.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: clang-3.2 1:3.2repack-7ubuntu1
ProcVersionSignature: Ubuntu 3.9.0-7.15-generic 3.9.7
Uname: Linux 3.9.0-7-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.10.2-0ubuntu3
Architecture: amd64
Date: Sun Jun 30 12:38:59 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-10-08 (630 days ago)
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20111007)
MarkForUpload: True
SourcePackage: llvm-toolchain-3.2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Philip Muškovac (yofel) wrote :
Revision history for this message
Philip Muškovac (yofel) wrote : Re: [Bug 1196215] [NEW] clang fails to build kate with fatal error: 'stddef.h' file not found

On Sunday 30 June 2013 18:28:29 Sylvestre Ledru wrote:
> Does it happen with clang-3.3 too ?
>
> S

Yes it does, thanks for pointing out that we have that now.

Cheers,
Philip

Revision history for this message
Philip Muškovac (yofel) wrote :

On Sunday 30 June 2013 18:49:02 Philip Muskovac wrote:
> On Sunday 30 June 2013 18:28:29 Sylvestre Ledru wrote:
> > Does it happen with clang-3.3 too ?
> >
> > S
>
> Yes it does, thanks for pointing out that we have that now.
>
> Cheers,
> Philip

I should not write mails while being tired sundays...

I meant: It works fine with clang-3.3, only clang-3.2 doesn't work

Philip

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in llvm-toolchain-3.2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Kyle Barlow (kylebarlow) wrote :

After upgrading to 13.10 Saucy today, I am now affected by this bug in clang-3.2 as well. Installing clang-3.3 fixes the issue.

In case this isn't clear from the above bug report, trying to build the simple program below with clang or clang++ will fail because both standard libraries are missing.

#include <stddef.h>
#include <stdarg.h>

int main(void)
{
  return 0;
}

Changed in llvm-toolchain-3.2 (Debian):
status: Unknown → New
Changed in llvm-toolchain-3.2 (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
c00kiemon5ter (ivan-kanak) wrote :

Hi, I'm bitten by this too on 13.10

going for a temporary workaround, looks like more files are missing:

cd /usr/include
ln -s ../lib/llvm-3.2/lib/clang/3.2/include/stddef.h .
ln -s ../lib/llvm-3.2/lib/clang/3.2/include/stdarg.h .
ln -s ../lib/llvm-3.2/lib/clang/3.2/include/stdbool.h .

seems to make clang work again for me

Revision history for this message
scottku (scottku) wrote :
Changed in llvm-toolchain-3.2 (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.