Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1727 Discussions

Urgent: cannot compile and execute successfully for the same program after the server changed

Fernando_Mo
Novice
899 Views

Hi,

 

Has anyone met the problem as below when executed the program, however the program could compile and execute successful before the server changed of devcloud. In other word, for the same program, now it shows many errors after the server changed of devcloud. 

 

it's so weird, would I need to configure anything else for it?

 

executed result:

                    Failed clGetDeviceIDs.

 

compiled result:

 

u154409@s005-n005:~/HLS_BLE/cpu$ make
g++ -c -DLINUX -O2 -g -I/glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/hld/host/include ble.cpp -o ble.o
g++ ble.o options.o opencl.o -L/glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/hld/host/linux64/lib -lOpenCL -o test_channels
ble.o: In function `init()':
/home/u154409/HLS_BLE/cpu/ble.cpp:64: undefined reference to `aocl_utils::getBoardBinaryFile(char const*, _cl_device_id*)'
options.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)':
/usr/include/c++/7/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
options.o: In function `aocl_utils::Options::addFromCommandLine(int, char**)':
/home/u154409/HLS_BLE/cpu/options.cpp:61: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long) const'
options.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/7/bits/basic_string.h:1356: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
options.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_check(unsigned long, char const*) const':
/usr/include/c++/7/bits/basic_string.h:302: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
/usr/include/c++/7/bits/basic_string.h:302: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
/usr/include/c++/7/bits/basic_string.h:302: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
options.o: In function `std::basic_istream<char, std::char_traits<char> >::basic_istream()':
/usr/include/c++/7/istream:607: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/include/c++/7/istream:607: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `std::basic_ostream<char, std::char_traits<char> >::basic_ostream()':
/usr/include/c++/7/ostream:385: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/include/c++/7/ostream:385: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `std::basic_iostream<char, std::char_traits<char> >::basic_iostream()':
/usr/include/c++/7/istream:860: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
options.o:/usr/include/c++/7/istream:860: more undefined references to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >' follow
options.o: In function `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)':
/usr/include/c++/7/sstream:704: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(std::_Ios_Openmode)':
/usr/include/c++/7/sstream:101: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/7/bits/basic_string.h:1356: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
options.o: In function `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()':
/usr/include/c++/7/sstream:731: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
/usr/include/c++/7/sstream:65: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `std::basic_iostream<char, std::char_traits<char> >::~basic_iostream()':
/usr/include/c++/7/istream:856: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/include/c++/7/istream:856: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()':
/usr/include/c++/7/ostream:93: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/include/c++/7/ostream:93: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `std::basic_istream<char, std::char_traits<char> >::~basic_istream()':
/usr/include/c++/7/istream:104: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/7/bits/basic_string.h:1356: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
options.o: In function `std::basic_istream<char, std::char_traits<char> >::~basic_istream()':
/usr/include/c++/7/istream:104: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `void aocl_utils::Options::set<bool>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool const&)':
/home/u154409/HLS_BLE/cpu/options.h:123: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()'
options.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
/usr/include/c++/7/sstream:65: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `std::basic_iostream<char, std::char_traits<char> >::~basic_iostream()':
/usr/include/c++/7/istream:856: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/include/c++/7/istream:856: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
options.o: In function `std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()':
/usr/include/c++/7/ostream:93: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/include/c++/7/ostream:93: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
opencl.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)':
/usr/include/c++/7/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
opencl.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long) const':
/usr/include/c++/7/bits/basic_string.h:2343: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const'
opencl.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
/usr/include/c++/7/bits/basic_string.h:1258: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)'
opencl.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long) const':
/usr/include/c++/7/bits/basic_string.h:2376: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const'
opencl.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
/usr/include/c++/7/bits/basic_string.h:1258: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)'
opencl.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/7/bits/basic_string.h:1212: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)'
opencl.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
/usr/include/c++/7/bits/basic_string.h:1258: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)'
/usr/include/c++/7/bits/basic_string.h:1258: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)'
/usr/include/c++/7/bits/basic_string.h:1258: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)'
opencl.o:/usr/include/c++/7/bits/basic_string.h:1258: more undefined references to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)' follow
collect2: error: ld returned 1 exit status
make: *** [test_channels] Error 1
u154409@s005-n005:~/HLS_BLE/cpu$

 

 

Best Regards,

GM

0 Kudos
4 Replies
JananiC_Intel
Moderator
853 Views

Hi,


Thanks for posting in Intel forum.


Could you let us know which devcloud you are using(oneapi/fpga/edge)?


Regards,

Janani Chandran


0 Kudos
Fernando_Mo
Novice
838 Views

Hi @JananiC_Intel 

 

Thanks for your concern, now I am using the FPGA of Stratix 10 PAC for RTL, OpenCL.

 

Best Regards,

Ganyong

0 Kudos
Fernando_Mo
Novice
834 Views

Hi @JananiC_Intel 

 

Just now I tried it again, it's working again!!  Even if I didn't change anything in my program...

 

Anyway, thank you very much!

 

Best Regards,

GM 

0 Kudos
JananiC_Intel
Moderator
824 Views

Hi,


Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Regards,

Janani Chandran


0 Kudos
Reply