[llvm-bugs] [Bug 27593] New: clang fails to compile intel vulkan driver

via llvm-bugs llvm-bugs at lists.llvm.org
Sun May 1 08:21:54 PDT 2016


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

            Bug ID: 27593
           Summary: clang fails to compile intel vulkan driver
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: krejzi at email.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16290
  --> https://llvm.org/bugs/attachment.cgi?id=16290&action=edit
Files mentioned in the backtrace

Trying to build intel vulkan driver (part of mesa) with clang/clang++ version
3.9.0 (trunk 268194). During the build, clang crashes with:

#0 0x00007f5ba1f20858 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/lib/libLLVM-3.9svn.so+0x477858)
#1 0x00007f5ba1f1efc6 llvm::sys::RunSignalHandlers()
(/usr/lib/libLLVM-3.9svn.so+0x475fc6)
#2 0x00007f5ba1f20dfe (/usr/lib/libLLVM-3.9svn.so+0x477dfe)
#3 0x00007f5ba0cf43e0 (/lib/libc.so.6+0x353e0)
#4 0x00007f5ba2404867 llvm::AsmPrinter::lowerConstant(llvm::Constant const*)
(/usr/lib/libLLVM-3.9svn.so+0x95b867)
#5 0x00007f5ba2401f45 llvm::AsmPrinter::emitGlobalIndirectSymbol(llvm::Module&,
llvm::GlobalIndirectSymbol const&) (/usr/lib/libLLVM-3.9svn.so+0x958f45)
#6 0x00007f5ba24026be llvm::AsmPrinter::doFinalization(llvm::Module&)
(/usr/lib/libLLVM-3.9svn.so+0x9596be)
#7 0x00007f5ba1fd9542 llvm::FPPassManager::doFinalization(llvm::Module&)
(/usr/lib/libLLVM-3.9svn.so+0x530542)
#8 0x00007f5ba1fd9a1a llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/lib/libLLVM-3.9svn.so+0x530a1a)
#9 0x000000000060b8b8 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*) (/usr/bin/clang-3.9+0x60b8b8)
#10 0x00000000009df46a (/usr/bin/clang-3.9+0x9df46a)
#11 0x0000000000bd1486 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/bin/clang-3.9+0xbd1486)
#12 0x00000000008e50dd clang::FrontendAction::Execute()
(/usr/bin/clang-3.9+0x8e50dd)
#13 0x00000000008b40c8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/bin/clang-3.9+0x8b40c8)
#14 0x000000000095c91f
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/bin/clang-3.9+0x95c91f)
#15 0x00000000005ce584 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/bin/clang-3.9+0x5ce584)
#16 0x00000000005cd1fb main (/usr/bin/clang-3.9+0x5cd1fb)
#17 0x00007f5ba0cdf7c1 __libc_start_main (/lib/libc.so.6+0x207c1)
#18 0x00000000005ca869 _start (/usr/bin/clang-3.9+0x5ca869)
Stack dump:
0.      Program arguments: /usr/bin/clang-3.9 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name anv_entrypoints.c -mrelocation-model pic
-pic-level 2 -mthread-model posix -relaxed-aliasing -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu skylake
-target-feature +sse2 -momit-leaf-frame-pointer -dwarf-column-info
-debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -coverage-file
/sources/mesa/src/intel/vulkan/.libs/anv_entrypoints.o -resource-dir
/usr/bin/../lib/clang/3.9.0 -dependency-file .deps/anv_entrypoints.Tpo
-sys-header-deps -MP -MT anv_entrypoints.lo -D PACKAGE_NAME="Mesa" -D
PACKAGE_TARNAME="mesa" -D PACKAGE_VERSION="11.3.0-devel" -D
PACKAGE_STRING="Mesa 11.3.0-devel" -D
PACKAGE_BUGREPORT="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa" -D
PACKAGE_URL="" -D PACKAGE="mesa" -D VERSION="11.3.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_CONST=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_FUNC_ATTRIBUTE_PURE=1 -D
HAVE_FUNC_ATTRIBUTE_UNUSED=1 -D HAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -D
HAVE_DLADDR=1 -D HAVE_CLOCK_GETTIME=1 -D HAVE_PTHREAD=1 -D
HAVE_SHA1_IN_LIBNETTLE=1 -I . -I /usr/include/libdrm -D __STDC_LIMIT_MACROS -D
__STDC_CONSTANT_MACROS -D _GNU_SOURCE -D USE_SSE41 -D NDEBUG -D
TEXTURE_FLOAT_ENABLED -D USE_X86_64_ASM -D HAVE_XLOCALE_H -D HAVE_SYS_SYSCTL_H
-D HAVE_STRTOF -D HAVE_MKOSTEMP -D HAVE_DLOPEN -D HAVE_POSIX_MEMALIGN -D
HAVE_LIBDRM -D HAVE_SHA1 -D GLX_USE_DRM -D HAVE_LIBUDEV -D
GLX_INDIRECT_RENDERING -D GLX_DIRECT_RENDERING -D GLX_USE_TLS -D HAVE_ALIAS -D
HAVE_DRI3 -D HAVE_MINCORE -D HAVE_ST_VDPAU -D HAVE_LLVM=0x0309 -D
MESA_LLVM_VERSION_PATCH=0 -I ../../../include -I ../../../src -I ../../../src
-I ../../../src/compiler -I ../../../src/compiler -I ../../../src/compiler/nir
-I ../../../src/mapi -I ../../../src/mesa -I
../../../src/mesa/drivers/dri/common -I ../../../src/mesa/drivers/dri/i965 -I
../../../src/gallium/auxiliary -I ../../../src/gallium/include -I
../../../src/intel -I ../../../src/intel -D VK_USE_PLATFORM_XCB_KHR -I
../../../src/egl/wayland/wayland-drm -I ../../../src/egl/wayland/wayland-drm -D
VK_USE_PLATFORM_WAYLAND_KHR -D PIC -internal-isystem /usr/local/include
-internal-isystem /usr/bin/../lib/clang/3.9.0/include -internal-externc-isystem
/include -internal-externc-isystem /usr/include -O2 -Wno-override-init -Wall
-Werror=implicit-function-declaration -Werror=missing-prototypes -std=c99
-fdebug-compilation-dir /sources/mesa/src/intel/vulkan -ferror-limit 19
-fmessage-length 176 -fno-builtin-memcmp -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o .libs/anv_entrypoints.o -x c anv_entrypoints.c 
1.      <eof> parser at end of file
2.      Code generation
clang-3.9: error: unable to execute command: Segmentation fault (core dumped)
clang-3.9: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0 (trunk 268194)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-3.9: 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.9: 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.9: note: diagnostic msg: /tmp/anv_entrypoints-27a05b.c
clang-3.9: note: diagnostic msg: /tmp/anv_entrypoints-27a05b.sh
clang-3.9: note: diagnostic msg:

Mentioned files are attached. Let me know if you need more info.

-- 
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/20160501/5ba290ab/attachment-0001.html>


More information about the llvm-bugs mailing list