Bug#705418: clang++ fails to find stdarg.h include (and probably others)

Vedran Miletić rivanvx at gmail.com
Sun Apr 14 16:51:08 UTC 2013


Package: llvm-toolchain-3.2

Version: 1:3.2repack-1~exp4

Hi,

when compiling ns-3-dev [1] using clang 1:3.2repack-1~exp4 I get the error:

 682/1868] cxx: examples/tutorial/fifth.cc ->
build/examples/tutorial/fifth.cc.6.o
[ 683/1868] cxx: examples/tutorial/sixth.cc ->
build/examples/tutorial/sixth.cc.7.o
[ 684/1868] cxx: examples/wireless/mixed-wireless.cc ->
build/examples/wireless/mixed-wireless.cc.1.o
In file included from ../examples/tutorial/hello-simulator.cc:17:
In file included from ./ns3/core-module.h:10:
In file included from ./ns3/abort.h:24:
In file included from ./ns3/fatal-error.h:24:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/iostream:39:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/ostream:39:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/ios:38:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/iosfwd:41:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/postypes.h:41:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/cwchar:45:
/usr/include/wchar.h:39:11: fatal error: 'stdarg.h' file not found
# include <stdarg.h>
          ^
1 error generated.

Configuration also doesn't complete at the step:

Checking for boost linkage                                :

This used to work in previous version of clang (it was 3.2-5 if I
recall correctly).

Regards,
Vedran

[1] http://code.nsnam.org/ns-3-dev



More information about the Pkg-llvm-team mailing list