[Beignet] Another build failure with current master

Yichao Yu yyc1992 at gmail.com
Fri Sep 12 05:34:25 PDT 2014


On Fri, Sep 12, 2014 at 8:21 AM, He Junyan <junyan.he at inbox.com> wrote:
> I suggest that you delete the PCH file in the system install dir
> and try again.

Yeah, that works.
Does this happen because there's some ABI bump  (or sth similar)?

Thanks.

Yichao Yu

>
> On 五, 2014-09-12 at 07:52 -0400, Yichao Yu wrote:
>> On Fri, Sep 12, 2014 at 7:32 AM, Yichao Yu <yyc1992 at gmail.com> wrote:
>> > Hi,
>> >
>> > I've got an error when generating src/kernels/cl_internal_*_str.c's.
>> >
>> > The error message reads
>> >
>> > error: OpenCL version was  in PCH file but is currently ������zzzz{{{{
>> > build the file /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/src/kernels//cl_internal_built_in_kernel.cl
>> > failed
>> >
>> > Note the non-ascii (non-utf8) characters even when I set locale to C.
>> >
>> > The command line executed was
>> >
>> > cd /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/src
>> > && OCL_BITCODE_BIN=/home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libocl/lib/beignet.bc
>> > OCL_HEADER_DIR=/home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libocl/include/
>> > OCL_PCH_OBJECT=/home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libocl/lib/beignet.pch
>> > LD_LIBRARY_PATH=/home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src
>> > /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/gbe_bin_generater
>> > -s /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/src/kernels//cl_internal_built_in_kernel.cl
>> > -o/home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/src/kernels//cl_internal_built_in_kernel_str.c
>> >
>> > Doesn't work with either CLANG or GCC (probably unrelated). llvm version 3.5.0.
>>
>> Ooops, I forgot to save my PKGBUILD before recompile the package. With
>> -DCOMPILER=CLANG the gbe_bin_generater (btw I think it should spell as
>> generator...) actually segfault with the following backtrace (and
>> although the gcc version doesn't segfault, the error message does look
>> like some sort of memory corruption)
>>
>> #0  0x00007ffff7285335 in clang::Diagnostic::FormatDiagnostic(char
>> const*, char const*, llvm::SmallVectorImpl<char>&) const ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #1  0x00007ffff72860f3 in clang::Diagnostic::FormatDiagnostic(char
>> const*, char const*, llvm::SmallVectorImpl<char>&) const ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #2  0x00007ffff694a77a in
>> clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level,
>> clang::Diagnostic const&) ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #3  0x00007ffff7287b50 in
>> clang::DiagnosticIDs::EmitDiag(clang::DiagnosticsEngine&,
>> clang::DiagnosticIDs::Level) const ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #4  0x00007ffff7287cc6 in
>> clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #5  0x00007ffff7280c4c in
>> clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool) ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #6  0x00007ffff698af9c in clang::DiagnosticBuilder::Emit() [clone .part.41] ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #7  0x00007ffff698eecd in checkLanguageOptions(clang::LangOptions
>> const&, clang::LangOptions const&, clang::DiagnosticsEngine*) ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #8  0x00007ffff69a4b90 in
>> clang::ASTReader::ParseLanguageOptions(llvm::SmallVector<unsigned
>> long, 64u> const&, bool, clang::ASTReaderListener&) ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #9  0x00007ffff69a7409 in
>> clang::ASTReader::ReadControlBlock(clang::serialization::ModuleFile&,
>> llvm::SmallVectorImpl<clang::ASTReader::ImportedModule>&,
>> clang::serialization::ModuleFile const*, unsigned int) () from
>> /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #10 0x00007ffff69a7e8a in
>> clang::ASTReader::ReadASTCore(llvm::StringRef,
>> clang::serialization::ModuleKind, clang::SourceLocation,
>> clang::serialization::ModuleFile*,
>> llvm::SmallVectorImpl<clang::ASTReader::ImportedModule>&, long, long,
>> unsigned int) ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #11 0x00007ffff69c19c3 in clang::ASTReader::ReadAST(std::string
>> const&, clang::serialization::ModuleKind, clang::SourceLocation,
>> unsigned int) ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #12 0x00007ffff68f152d in
>> clang::CompilerInstance::createPCHExternalASTSource(llvm::StringRef,
>> std::string const&, bool, bool, clang::Preprocessor&,
>> clang::ASTContext&, void*, bool, bool, bool) () from
>> /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #13 0x00007ffff68f162b in
>> clang::CompilerInstance::createPCHExternalASTSource(llvm::StringRef,
>> bool, bool, void*, bool) ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #14 0x00007ffff6916ae7 in
>> clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&,
>> clang::FrontendInputFile const&) ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #15 0x00007ffff68f22c0 in
>> clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) ()
>>    from /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/build/backend/src/libgbe.so
>> #16 0x00007ffff685227c in gbe::buildModuleFromSource (input=<optimized
>> out>, out_module=0x7fffffffd300, llvm_ctx=<optimized out>,
>> options=..., stringSize=0, err=0x0,
>>     errSize=<optimized out>) at
>> /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/backend/src/backend/program.cpp:598
>> #17 0x00007ffff684f296 in gbe::programCompileFromSource (deviceID=0,
>> source=<optimized out>, temp_header_path=<optimized out>,
>> stringSize=0,
>>     options=0x7ffff620b6f8
>> <std::string::_Rep::_S_empty_rep_storage+24> "", err=0x0, errSize=0x0)
>>     at /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/backend/src/backend/program.cpp:824
>> #18 0x00000000004035d5 in program_build_instance::build_program (this=0x634760)
>>     at /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/backend/src/gbe_bin_generater.cpp:262
>> #19 0x00000000004044a0 in main (argc=<optimized out>, argv=<optimized out>)
>>     at /home/yuyichao/projects/mlinux/pkg/all/beignet-git/src/beignet/backend/src/gbe_bin_generater.cpp:411
>>
>>
>> >
>> > Yichao Yu
>> _______________________________________________
>> Beignet mailing list
>> Beignet at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/beignet
>
>
>


More information about the Beignet mailing list