On Thu, Nov 12, 2015 at 10:25:53AM +0100, Pascal Stumpf wrote:
> On Thu, 12 Nov 2015 00:08:35 +0100, Christian Weisgerber wrote:
> > Pascal Stumpf:
> > 
> > > I have done manual builds of some ports that use clang (various
> > > firefoxes, multimedia stuff, vlc, mplayer), but maybe this needs a bulk
> > > build?
> > 
> > If I get a complete patch, I can kick off an amd64 bulk build with it
> > tom^Hday.
> 
> Next try to get the diff unmangled.  If that fails, it's on cvs too ...

I tried to build mesa git with clang/clang++ but it seems clang can't
compile it's own headers?

libtool: compile:  /usr/local/bin/clang++ -DPACKAGE_NAME=\"Mesa\" 
-DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"11.2.0-devel\" 
"-DPACKAGE_STRING=\"Mesa 11.2.0-devel\"" 
"-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"";
 -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"11.2.0-devel\" 
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" 
-DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1 -DHAVE___BUILTIN_BSWAP64=1 
-DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 
-DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 
-DHAVE___BUILTIN_POPCOUNT=1 -DHAVE___BUILTIN_POPCOUNTLL=1 
-DHAVE___BUILTIN_UNREACHABLE=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1 
-DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1 
-DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_FUNC_ATTRIBUTE_PACKED=1 
-DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1 
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -DHAVE_DLADDR=1 
-DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 
-DHAVE_SHA1_IN_LIBC=1 -I. -fvisibility=hidden -Werror=pointer-arith -Werror=vla 
-I../../../include -I../../../src -I../../../src/gallium/include 
-I../../../src/gallium/auxiliary -D__STDC_LIMIT_MACROS -DUSE_SSE41 -DDEBUG 
-DUSE_X86_64_ASM -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP 
-DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DHAVE_SHA1 -DGLX_USE_DRM 
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DHAVE_MINCORE 
-DHAVE_LLVM=0x0307 -DMESA_LLVM_VERSION_PATCH=0 -I/usr/local/include -pipe -W 
-Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers 
-Wno-long-long -Wno-maybe-uninitialized -Wno-comment -std=c++11 
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 
-Wall -fno-strict-aliasing -fno-builtin-memcmp -Qunused-arguments -MT 
gallivm/lp_bld_debug.lo -MD -MP -MF gallivm/.deps/lp_bld_debug.Tpo -c 
gallivm/lp_bld_debug.cpp  -fPIC -DPIC -o gallivm/.libs/lp_bld_debug.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean 
'-Wno-uninitialized'? [-Wunknown-warning-option]
In file included from gallivm/lp_bld_debug.cpp:32:
In file included from /usr/local/include/llvm/Support/raw_ostream.h:17:
In file included from /usr/local/include/llvm/ADT/SmallVector.h:17:
/usr/local/include/llvm/ADT/iterator_range.h:36:29: error: no member named 
'move' in namespace 'std'; did you mean 'modf'?
      : begin_iterator(std::move(begin_iterator)),
                       ~~~~~^~~~
                            modf
/usr/include/math.h:200:8: note: 'modf' declared here
double modf(double, double *);
       ^
In file included from gallivm/lp_bld_debug.cpp:32:
In file included from /usr/local/include/llvm/Support/raw_ostream.h:17:
In file included from /usr/local/include/llvm/ADT/SmallVector.h:17:
/usr/local/include/llvm/ADT/iterator_range.h:37:27: error: no member named 
'move' in namespace 'std'; did you mean 'modf'?
        end_iterator(std::move(end_iterator)) {}
                     ~~~~~^~~~
                          modf
/usr/include/math.h:200:8: note: 'modf' declared here
double modf(double, double *);
       ^
In file included from gallivm/lp_bld_debug.cpp:32:
In file included from /usr/local/include/llvm/Support/raw_ostream.h:17:
In file included from /usr/local/include/llvm/ADT/SmallVector.h:17:
/usr/local/include/llvm/ADT/iterator_range.h:48:33: error: no member named 
'move' in namespace 'std'; did you mean 'modf'?
  return iterator_range<T>(std::move(x), std::move(y));
                           ~~~~~^~~~
                                modf
/usr/include/math.h:200:8: note: 'modf' declared here
double modf(double, double *);
       ^
In file included from gallivm/lp_bld_debug.cpp:32:
In file included from /usr/local/include/llvm/Support/raw_ostream.h:17:
In file included from /usr/local/include/llvm/ADT/SmallVector.h:17:
/usr/local/include/llvm/ADT/iterator_range.h:48:47: error: no member named 
'move' in namespace 'std'; did you mean 'modf'?
  return iterator_range<T>(std::move(x), std::move(y));
                                         ~~~~~^~~~
                                              modf
/usr/include/math.h:200:8: note: 'modf' declared here
double modf(double, double *);
       ^
In file included from gallivm/lp_bld_debug.cpp:32:
In file included from /usr/local/include/llvm/Support/raw_ostream.h:17:
In file included from /usr/local/include/llvm/ADT/SmallVector.h:17:
/usr/local/include/llvm/ADT/iterator_range.h:52:33: error: no member named 
'move' in namespace 'std'; did you mean 'modf'?
  return iterator_range<T>(std::move(p.first), std::move(p.second));
                           ~~~~~^~~~
                                modf
/usr/include/math.h:200:8: note: 'modf' declared here
double modf(double, double *);
       ^
In file included from gallivm/lp_bld_debug.cpp:32:
In file included from /usr/local/include/llvm/Support/raw_ostream.h:17:
In file included from /usr/local/include/llvm/ADT/SmallVector.h:17:
/usr/local/include/llvm/ADT/iterator_range.h:52:53: error: no member named 
'move' in namespace 'std'; did you mean 'modf'?
  return iterator_range<T>(std::move(p.first), std::move(p.second));
                                               ~~~~~^~~~
                                                    modf
/usr/include/math.h:200:8: note: 'modf' declared here
double modf(double, double *);
       ^
In file included from gallivm/lp_bld_debug.cpp:32:
In file included from /usr/local/include/llvm/Support/raw_ostream.h:17:
In file included from /usr/local/include/llvm/ADT/SmallVector.h:20:
/usr/local/include/llvm/Support/MathExtras.h:21:10: fatal error: 'type_traits' 
file not found
#include <type_traits>
         ^
1 warning and 7 errors generated.
*** Error 1 in src/gallium/auxiliary (Makefile:2193 'gallivm/lp_bld_debug.lo')
*** Error 1 in src/gallium (Makefile:558 'all-recursive')
*** Error 1 in src (Makefile:651 'all-recursive')

Reply via email to