Date: Fri, 27 Apr 2018 23:10:16 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r468502 - head/lang/beignet Message-ID: <201804272310.w3RNAGGi002931@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Fri Apr 27 23:10:16 2018 New Revision: 468502 URL: https://svnweb.freebsd.org/changeset/ports/468502 Log: lang/beignet: cannot build with llvm50 on 10.3 FAILED: src/kernels/cl_internal_copy_buf_align16_str.c cd /wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/src && rm -rf /wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/src/kernels//cl_internal_copy_buf_align16_str.c && env OCL_BITCODE_LIB_PATH=/wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src/libocl//usr/local/lib/beignet//beignet.bc OCL_HEADER_FILE_DIR=/wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src/libocl//usr/local/lib/beignet//include/ OCL_PCH_PATH=/wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src/libocl//usr/local/lib/beignet//beignet.local.pch OCL_BITCODE_LIB_20_PATH=/wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src/libocl//usr/local/lib/beignet//beignet_20.bc OCL_PCH_20_PATH=/wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src/libocl//usr/local/lib/beignet//beignet_20.local.pch LD_LIBRARY_PATH=/wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src /wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2 -Source/backend/src/gbe_bin_generater -s -o/wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/src/kernels//cl_internal_copy_buf_align16_str.c /wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/src/kernels//cl_internal_copy_buf_align16.cl ninja: build stopped: subcommand failed. Program received signal SIGBUS, Bus error. std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::compare ( this=0x80959ac20, __str=...) at /usr/include/c++/v1/string:3643 3643 size_t __rhs_sz = __str.size(); (gdb) backtrace #0 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::compare ( this=0x80959ac20, __str=...) at /usr/include/c++/v1/string:3643 #1 std::__1::operator< <char, std::__1::char_traits<char>, std::__1::allocator<char> > (__lhs=..., __rhs=...) at /usr/include/c++/v1/string:3827 #2 std::__1::__tree<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::value_comp ( this=0x7fffffff9af8, this=0x7fffffff9af8, __x=..., __y=...) at /usr/include/c++/v1/__functional_base:63 #3 std::__1::__tree<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::__find_equal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > (this=0x7fffffff9ae8, __parent=@0x7fffffff94b8: 0x80063e400, __v=...) at /usr/include/c++/v1/__tree:1613 #4 0x0000000800f6c3c2 in std::__1::__tree<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > ---Type <return> to continue, or q <return> to quit--- >::__insert_unique (this=0x7fffffff9ae8, __v=...) at /usr/include/c++/v1/__tree:1867 #5 0x000000080147e8eb in clang::ASTReader::ReadASTBlock(clang::serialization::ModuleFile&, unsigned int) () from /wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src/libgbe.so #6 0x0000000801484484 in clang::ASTReader::ReadAST(llvm::StringRef, clang::serialization::ModuleKind, clang::SourceLocation, unsigned int, llvm::SmallVectorImpl<clang::ASTReader::ImportedSubmodule>*) () from /wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src/libgbe.so #7 0x000000080138be1b in clang::CompilerInstance::createPCHExternalASTSource(llvm::StringRef, llvm::StringRef, bool, bool, clang::Preprocessor&, clang::ASTContext&, clang::PCHContainerReader const&, llvm::ArrayRef<std::__1::shared_ptr<clang::ModuleFileExtension> >, clang::DependencyFileGenerator*, llvm::ArrayRef<std::__1::shared_ptr<clang::DependencyCollector> >, void*, bool, bool, bool) () from /wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src/libgbe.so #8 0x000000080138bb7c in clang::CompilerInstance::createPCHExternalASTSource(llvm::StringRef, bool, bool, void*, bool) () from /wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src/libgbe.so #9 0x00000008013d0d47 in clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, clang::FrontendInputFile const&) () from /wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src/libgbe.so #10 0x000000080138eec5 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) () ---Type <return> to continue, or q <return> to quit--- from /wrkdirs/usr/ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src/libgbe.so #11 0x0000000800f19565 in gbe::buildModuleFromSource ( source=0x8007b2000 "kernel void __cl_copy_region_align16 ( global float* src, unsigned int src_offset,\n", ' ' <repeats 38 times>, "global float* dst, unsigned int dst_offset,\n\t\t\t\t unsigned int size)\n{\n "..., out_module=0x7fffffffd360, llvm_ctx=0x809419468, dumpLLVMFileName=..., dumpSPIRBinaryName=..., options=..., stringSize=0, err=0x0, errSize=0x0, oclVersion=120) at backend/src/backend/program.cpp:735 #12 0x0000000800f0688c in gbe::programCompileFromSource (deviceID=0, source=0x8007b2000 "kernel void __cl_copy_region_align16 ( global float* src, unsigned int src_offset,\n", ' ' <repeats 38 times>, "global float* dst, unsigned int dst_offset,\n\t\t\t\t unsigned int size)\n{\n "..., temp_header_path=0x0, stringSize=0, options=0x809417259 "", err=0x0, errSize=0x0) at backend/src/backend/program.cpp:1163 #13 0x00000000004073f8 in program_build_instance::build_program (this=0x809417240) at backend/src/gbe_bin_generater.cpp:280 #14 0x000000000040990f in main (argc=4, argv=0x7fffffffe740) at backend/src/gbe_bin_generater.cpp:429 Modified: head/lang/beignet/Makefile (contents, props changed) Modified: head/lang/beignet/Makefile ============================================================================== --- head/lang/beignet/Makefile Fri Apr 27 23:09:59 2018 (r468501) +++ head/lang/beignet/Makefile Fri Apr 27 23:10:16 2018 (r468502) @@ -64,4 +64,11 @@ do-test-TEST-on: pre-install-TEST-on: do-test-TEST-on +.include <bsd.port.options.mk> + +# gbe_bin_generater crashes in libc++ when built by clang++60 +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1003513 +LLVMVER= 50 +.endif + .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804272310.w3RNAGGi002931>