[Beignet] Compiling Beignet problems

Jon Olick jon.olick at gmail.com
Wed Mar 12 22:14:39 PDT 2014


Hey guys!

2 questions.

1) Does Beignet support my Crystal Well 5200 GPU?

and 2) I was wondering if anybody on this list could help me with a
compiling problem with Beignet:

I had a few problems. One with noduplicate which was an easy code
modification (remove the noduplicate). And this one:

[  1%] Building CXX object
backend/src/CMakeFiles/gbe.dir/backend/program.cpp.o
/home/jon/beignet/backend/src/backend/program.cpp: In function 'bool
gbe::buildModuleFromSource(const char*, const char*, std::string, size_t,
char*, size_t*)':
/home/jon/beignet/backend/src/backend/program.cpp:656:28: error:
'llvm::sys::fs' has not been declared
     auto mode = llvm::sys::fs::F_Binary;
                            ^
In file included from
/usr/lib/llvm-3.4/include/clang/Basic/VersionTuple.h:19:0,
                 from
/usr/lib/llvm-3.4/include/clang/Basic/ObjCRuntime.h:18,
                 from
/usr/lib/llvm-3.4/include/clang/Basic/LangOptions.h:20,
                 from
/usr/lib/llvm-3.4/include/clang/Frontend/FrontendAction.h:22,
                 from
/usr/lib/llvm-3.4/include/clang/CodeGen/CodeGenAction.h:13,
                 from /home/jon/beignet/backend/src/backend/program.cpp:56:
/usr/lib/llvm-3.4/include/llvm/ADT/Optional.h: In instantiation of 'T*
llvm::Optional<T>::getPointer() [with T = unsigned int]':
/usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:123:76:   required from 'T&
llvm::Optional<T>::operator*() [with T = unsigned int]'
/usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:51:40:   required from
'llvm::Optional<T>::Optional(llvm::Optional<T>&&) [with T = unsigned int]'
/usr/lib/llvm-3.4/include/clang/Basic/VersionTuple.h:60:14:   required from
here
/usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:114:79: warning:
dereferencing type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
   T* getPointer() { assert(hasVal); return
reinterpret_cast<T*>(storage.buffer); }

   ^
/usr/lib/llvm-3.4/include/llvm/ADT/Optional.h: In instantiation of 'T*
llvm::Optional<T>::getPointer() [with T = bool]':
/usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:123:76:   required from 'T&
llvm::Optional<T>::operator*() [with T = bool]'
/usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:104:8:   required from 'void
llvm::Optional<T>::reset() [with T = bool]'
/usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:110:11:   required from
'llvm::Optional<T>::~Optional() [with T = bool]'
/usr/lib/llvm-3.4/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h:420:27:
  required from here
/usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:114:79: warning:
dereferencing type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
make[2]: *** [backend/src/CMakeFiles/gbe.dir/backend/program.cpp.o] Error 1
make[1]: *** [backend/src/CMakeFiles/gbe.dir/all] Error 2
make: *** [all] Error 2


Thanks!
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20140313/5fb6ad4c/attachment.html>


More information about the Beignet mailing list