<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang frontend command failed with exit code 70 when building mesa"
   href="https://llvm.org/bugs/show_bug.cgi?id=23541">23541</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang frontend command failed with exit code 70 when building mesa
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>yunlian@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When using clang to build mesa, I got 
In file included from ../../../src/mapi/entry.c:49:
In file included from ../../../src/mapi/entry_x86-64_tls.h:46:
../../../src/mapi/mapi_tmp.h:27:9: warning: 'MAPI_ABI_HEADER' macro redefined
[-Wmacro-redefined]
#define MAPI_ABI_HEADER "shared-glapi/glapi_mapi_tmp.h"
        ^
<command line>:59:9: note: previous definition is here
#define MAPI_ABI_HEADER shared-glapi/glapi_mapi_tmp.h
        ^
In file included from ../../../src/mapi/entry.c:49:
../../../src/mapi/entry_x86-64_tls.h:66:1: warning: tentative array definition
assumed to have one element
x86_64_entry_start[];
^
fatal error: error in backend: symbol 'x86_64_entry_start' is already defined
clang-3.7: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.7.0
(/var/cache/chromeos-cache/distfiles/host/egit-src/clang.git
6b7e300a9c14a2ff364d8ef8a0f7510378f38dbc)
(/var/cache/chromeos-cache/distfiles/host/egit-src/llvm.git
1df6d33c5eb998cc38707bb9a97f3fa6cbf0ca53)
Target: x86_64-cros-linux-gnu
Thread model: posix
clang-3.7: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.7: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.7: note: diagnostic msg: /tmp/entry-18195d.c
clang-3.7: note: diagnostic msg: /tmp/entry-18195d.sh
clang-3.7: note: diagnostic msg: 

********************

the corresponding sh file is
"/usr/bin/clang-3.7" "-cc1" "-triple" "x86_64-cros-linux-gnu" "-emit-obj"
"-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-main-file-name"
"entry.c" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix"
"-mdisable-fp-elim" "-relaxed-aliasing" "-fmath-errno" "-masm-verbose"
"-mconstructor-aliases" "-munwind-tables" "-fuse-init-array" "-target-cpu"
"x86-64" "-dwarf-column-info" "-D" "_FORTIFY_SOURCE=2" "-D" "PACKAGE_NAME=Mesa"
"-D" "PACKAGE_TARNAME=mesa" "-D" "PACKAGE_VERSION=10.5.0-devel" "-D"
"PACKAGE_STRING=Mesa 10.5.0-devel" "-D"
"PACKAGE_BUGREPORT=<a href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa">https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa</a>"
"-D" "PACKAGE_URL=" "-D" "PACKAGE=mesa" "-D" "VERSION=10.5.0-devel" "-D"
"STDC_HEADERS=1" "-D" "HAVE_SYS_TYPES_H=1" "-D" "HAVE_SYS_STAT_H=1" "-D"
"HAVE_STDLIB_H=1" "-D" "HAVE_STRING_H=1" "-D" "HAVE_MEMORY_H=1" "-D"
"HAVE_STRINGS_H=1" "-D" "HAVE_INTTYPES_H=1" "-D" "HAVE_STDINT_H=1" "-D"
"HAVE_UNISTD_H=1" "-D" "HAVE_DLFCN_H=1" "-D" "LT_OBJDIR=.libs/" "-D"
"YYTEXT_POINTER=1" "-D" "HAVE___BUILTIN_BSWAP32=1" "-D"
"HAVE___BUILTIN_BSWAP64=1" "-D" "HAVE___BUILTIN_CLZ=1" "-D"
"HAVE___BUILTIN_CLZLL=1" "-D" "HAVE___BUILTIN_CTZ=1" "-D"
"HAVE___BUILTIN_EXPECT=1" "-D" "HAVE___BUILTIN_FFS=1" "-D"
"HAVE___BUILTIN_FFSLL=1" "-D" "HAVE___BUILTIN_POPCOUNT=1" "-D"
"HAVE___BUILTIN_POPCOUNTLL=1" "-D" "HAVE___BUILTIN_UNREACHABLE=1" "-D"
"HAVE_FUNC_ATTRIBUTE_FLATTEN=1" "-D" "HAVE_FUNC_ATTRIBUTE_FORMAT=1" "-D"
"HAVE_FUNC_ATTRIBUTE_MALLOC=1" "-D" "HAVE_FUNC_ATTRIBUTE_PACKED=1" "-D"
"HAVE_DLADDR=1" "-D" "HAVE_CLOCK_GETTIME=1" "-D" "HAVE_PTHREAD=1" "-D"
"USE_EXTERNAL_DXTN_LIB=1" "-D" "_GNU_SOURCE" "-D" "USE_SSE41" "-D"
"TEXTURE_FLOAT_ENABLED" "-D" "USE_X86_64_ASM" "-D" "HAVE_XLOCALE_H" "-D"
"HAVE_STRTOF" "-D" "HAVE_DLOPEN" "-D" "HAVE_POSIX_MEMALIGN" "-D" "HAVE_LIBDRM"
"-D" "HAVE_LIBUDEV" "-D" "GLX_USE_TLS" "-D" "HAVE_ALIAS" "-D" "HAVE_MINCORE"
"-D" "MESA_EGL_NO_X11_HEADERS" "-D" "HAVE_LLVM=0x0305" "-D"
"LLVM_VERSION_PATCH=0" "-D" "MAPI_MODE_GLAPI" "-D"
"MAPI_ABI_HEADER=shared-glapi/glapi_mapi_tmp.h" "-D" "PIC"
"-Wno-deprecated-declarations" "-Wall" "-Werror=implicit-function-declaration"
"-Werror=missing-prototypes" "-std=c99" "-ferror-limit" "19" "-fmessage-length"
"187" "-pthread" "-mstackrealign" "-fobjc-runtime=gcc"
"-fdiagnostics-show-option" "-fcolor-diagnostics" "-x" "c" "entry-18195d.c"</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>