clang cannot find stddef.h
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| llvm-defaults (Ubuntu) |
Undecided
|
Unassigned | |||
Bug Description
/usr/include/
#include <stddef.h>
I am getting this error
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: clang 1:3.2-19
ProcVersionSign
Uname: Linux 3.9.0-1-generic x86_64
ApportVersion: 2.10.2-0ubuntu3
Architecture: amd64
Date: Fri Jul 5 11:00:39 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-04-26 (69 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
SourcePackage: llvm-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
| Mike G (bluplr) wrote : | #3 |
Also affects me since upgrading to ubuntu 13.10 last night.
| Kirit Sælensminde (kayess) wrote : | #4 |
stdarg.h also seems to be affected.
| Kirit Sælensminde (kayess) wrote : | #5 |
The following seems to work as a workaround for me:
cd /usr/lib/clang/3.2/
sudo ln -s /usr/lib/
It looks like there's a mismatch between where the include files are installed to and where clang expects to find them
Diagnosed with the help of:
echo '#include <stdarg.h>' | clang -xc -v -
| Andy Buckley (andy-insectnation) wrote : | #6 |
Thanks for the workaround: works for me. The problem is still there in vanilla 13.10.
Andy
| Stephen Sinclair (radarsat1) wrote : | #7 |
This workaround also fixed it for me.
| Nick Andrik (andrikos) wrote : | #8 |
I'm marking this as duplicate of another similar bug, because it includes more information.
I will copy the workaround solution also there, thanks Kirit!


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