[LLVMbugs] [Bug 23541] New: clang frontend command failed with exit code 70 when building mesa

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 15 16:19:19 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23541

            Bug ID: 23541
           Summary: clang frontend command failed with exit code 70 when
                    building mesa
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: yunlian at chromium.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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
http://llvm.org/bugs/ 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=https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa"
"-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"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150515/f454b641/attachment.html>


More information about the llvm-bugs mailing list