[Q&A] how to setup environment using daily built binary
Closed this issue · 1 comments
alanzhai219 commented
Hi,
I download the daily built binary and then set some env like
export PATH=$DPCPP_HOME/bin:$PATH
export LD_LIBRARY_PATH=$DPCPP_HOME/lib:$LD_LIBRARY_PATH
but run into several compilation errors when run the cmds: clang++ -fsycl abc.cpp
- os: ubuntu
- GPU: arc770
In file included from p2p_copy.cpp:7:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/detail/core.hpp:21:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/accessor.hpp:12:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/atomic.hpp:14:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/detail/helpers.hpp:21:
In file included from /usr/include/c++/11/memory:77:
In file included from /usr/include/c++/11/bits/shared_ptr.h:52:
In file included from /usr/include/c++/11/iosfwd:40:
In file included from /usr/include/c++/11/bits/postypes.h:40:
In file included from /usr/include/c++/11/cwchar:44:
In file included from /usr/include/wchar.h:38:
In file included from /usr/include/c++/11/tr1/stdarg.h:32:
In file included from /usr/include/c++/11/tr1/cstdarg:32:
/usr/include/c++/11/cstdarg:55:11: error: no member named 'va_list' in the global namespace
55 | using ::va_list;
| ~~^
In file included from p2p_copy.cpp:7:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/detail/core.hpp:21:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/accessor.hpp:12:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/atomic.hpp:14:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/detail/helpers.hpp:21:
In file included from /usr/include/c++/11/memory:77:
In file included from /usr/include/c++/11/bits/shared_ptr.h:52:
In file included from /usr/include/c++/11/iosfwd:40:
In file included from /usr/include/c++/11/bits/postypes.h:40:
In file included from /usr/include/c++/11/cwchar:44:
/usr/include/wchar.h:615:9: error: unknown type name '__gnuc_va_list'
615 | __gnuc_va_list __arg)
| ^
/usr/include/wchar.h:622:8: error: unknown type name '__gnuc_va_list'
622 | __gnuc_va_list __arg)
| ^
/usr/include/wchar.h:628:9: error: unknown type name '__gnuc_va_list'
628 | __gnuc_va_list __arg)
| ^
/usr/include/wchar.h:690:8: error: unknown type name '__gnuc_va_list'
690 | __gnuc_va_list __arg)
| ^
/usr/include/wchar.h:697:7: error: unknown type name '__gnuc_va_list'
697 | __gnuc_va_list __arg)
| ^
/usr/include/wchar.h:702:8: error: unknown type name '__gnuc_va_list'
702 | __gnuc_va_list __arg)
| ^
/usr/include/wchar.h:713:7: error: unknown type name '__gnuc_va_list'
713 | __gnuc_va_list __arg), __isoc99_vfwscanf)
| ^
/usr/include/wchar.h:716:6: error: unknown type name '__gnuc_va_list'
716 | __gnuc_va_list __arg), __isoc99_vwscanf)
| ^
/usr/include/wchar.h:720:11: error: unknown type name '__gnuc_va_list'
720 | __gnuc_va_list __arg), __isoc99_vswscanf)
| ^
In file included from p2p_copy.cpp:7:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/detail/core.hpp:21:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/accessor.hpp:12:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/atomic.hpp:16:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/multi_ptr.hpp:13:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/aliases.hpp:12:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/half_type.hpp:13:
In file included from /home/abc/soft/dpcpp/bin/../include/sycl/detail/iostream_proxy.hpp:11:
In file included from /usr/include/c++/11/istream:38:
In file included from /usr/include/c++/11/ios:42:
In file included from /usr/include/c++/11/bits/ios_base.h:41:
In file included from /usr/include/c++/11/bits/locale_classes.h:40:
In file included from /usr/include/c++/11/string:55:
In file included from /usr/include/c++/11/bits/basic_string.h:6608:
In file included from /usr/include/c++/11/ext/string_conversions.h:41:
In file included from /usr/include/c++/11/cstdlib:75:
In file included from /usr/include/c++/11/tr1/stdlib.h:32:
/usr/include/c++/11/tr1/cstdlib:48:14: error: no member named 'lldiv_t' in namespace 'std'
48 | using std::lldiv_t;
| ~~~~~^
/usr/include/c++/11/tr1/cstdlib:51:14: error: no member named 'llabs' in namespace 'std'
51 | using std::llabs;
| ~~~~~^
/usr/include/c++/11/tr1/cstdlib:52:14: error: no member named 'lldiv' in namespace 'std'
52 | using std::lldiv;
| ~~~~~^
/usr/include/c++/11/tr1/cstdlib:55:14: error: no member named 'atoll' in namespace 'std'
55 | using std::atoll;
| ~~~~~^
/usr/include/c++/11/tr1/cstdlib:56:14: error: no member named 'strtoll' in namespace 'std'
56 | using std::strtoll;
| ~~~~~^
/usr/include/c++/11/tr1/cstdlib:57:14: error: no member named 'strtoull' in namespace 'std'
57 | using std::strtoull;
| ~~~~~^
/usr/include/c++/11/tr1/cstdlib:59:14: error: no member named 'strtof' in namespace 'std'
59 | using std::strtof;
| ~~~~~^
/usr/include/c++/11/tr1/cstdlib:60:14: error: no member named 'strtold' in namespace 'std'
60 | using std::strtold;
| ~~~~~^
/usr/include/c++/11/tr1/cstdlib:63:14: error: no member named 'abs' in namespace 'std'
63 | using std::abs;
| ~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
alanzhai219 commented
close it.
There's a conflict with other version of clang++
.