I build the AFI on one Centos machine successfully.
I am able to load AFI to another F1 instance (ubuntu machine) successfully.
When I am trying to build the application to call-up the AFI, meet such issue (on ubuntu F1 machine):
Please have a look?
ubuntu@ip-XXXXXXXXX~/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime$ make all gcc -DCONFIG_LOGLEVEL=4 -g -Wall -I/home/ubuntu/aws-fpga/sdk/userspace/include -I /home/ubuntu/aws-fpga/hdk/common/software/include -I ./include -lstdc++ -std=c++11 -o test_zcash zcash_fpga.cpp test_zcash.cpp /home/ubuntu/aws-fpga/sdk/userspace/utils/sh_dpi_tasks.o -lfpga_mgmt -lrt -lpthread /tmp/ccjfM665.o: In function
zcash_fpga::get_instance()':
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/zcash_fpga.cpp:28: undefined reference to __cxa_guard_acquire' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/zcash_fpga.cpp:28: undefined reference to
__cxa_guard_release'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/zcash_fpga.cpp:28: undefined reference to __cxa_guard_abort' /tmp/ccjfM665.o:(.data.rel.local.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to
__gxx_personality_v0'
/tmp/ccynn5Cx.o: In function string_to_hex(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)': /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:66: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::length() const'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:68: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const' /tmp/ccynn5Cx.o: In function
main':
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:118: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:118: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:118: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:118: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:119: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:119: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:119: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:119: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:120: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:120: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:120: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:120: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:121: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:121: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:121: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:121: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:122: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:122: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:122: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:122: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:179: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:179: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:179: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:179: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:185: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:185: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:185: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:185: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:191: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:191: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:191: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:191: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:197: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:197: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:197: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:197: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:203: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:203: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:203: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:203: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:209: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:209: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:209: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:209: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:328: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:328: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:328: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:328: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:329: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:329: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:329: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:329: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:330: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:330: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:330: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:330: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:331: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:331: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:331: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:331: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:332: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:332: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:332: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:332: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:333: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:333: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:333: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:333: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:334: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:334: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:334: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:334: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:335: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:335: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:335: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:335: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:336: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:336: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:336: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:336: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:337: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:337: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:337: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:337: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:338: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:338: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:338: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:338: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:339: undefined reference to std::allocator<char>::allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:339: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:339: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:339: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:118: undefined reference to std::allocator<char>::~allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:119: undefined reference to
std::allocator::~allocator()'
/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:120: undefined reference to std::allocator<char>::~allocator()' /home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:121: undefined reference to
std::allocator::~allocator()'
/tmp/ccynn5Cx.o:/home/ubuntu/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime/test_zcash.cpp:122: more undefined references to std::allocator<char>::~allocator()' follow collect2: error: ld returned 1 exit status Makefile:34: recipe for target 'test_zcash' failed make: *** [test_zcash] Error 1