Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it posiible to build armnn with aarch64-openwrt-linux-g++? #795

Open
Christopher-RH opened this issue Dec 18, 2024 · 1 comment
Open

Comments

@Christopher-RH
Copy link

/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp: In member function 'bool arm::pipe::BasePipeServer::ReadFromSocket(uint8_t*, uint32_t)':
/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp:31:75: error: 'strerror' was not declared in this scope
std::cerr << ": Failure when reading from client socket: " << strerror(errno) << std::endl;
^~~~~~~~
/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp:31:75: note: suggested alternative: 'perror'
std::cerr << ": Failure when reading from client socket: " << strerror(errno) << std::endl;
^~~~~~~~
perror
/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp: In member function 'bool arm::pipe::BasePipeServer::WaitForStreamMetaData()':
/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp:94:44: error: 'strerror' was not declared in this scope
std::cerr << ": Socket error: " << strerror(errno) << std::endl;
^~~~~~~~
/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp:94:44: note: suggested alternative: 'perror'
std::cerr << ": Socket error: " << strerror(errno) << std::endl;
^~~~~~~~
perror
/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp: In member function 'arm::pipe::Packet arm::pipe::BasePipeServer::WaitForPacket(uint32_t)':
/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp:133:42: error: 'strerror' was not declared in this scope
strerror(errno));
^~~~~~~~
/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp:133:42: note: suggested alternative: 'perror'
strerror(errno));
^~~~~~~~
perror
/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp: In member function 'bool arm::pipe::BasePipeServer::SendPacket(uint32_t, uint32_t, const uint8_t*, uint32_t)':
/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp:228:70: error: 'strerror' was not declared in this scope
std::cerr << ": Failure when writing to client socket: " << strerror(errno) << std::endl;
^~~~~~~~
/home/christopher/apps/armnn/armnn-branches-armnn_24_11/profiling/server/src/basePipeServer/BasePipeServer.cpp:228:70: note: suggested alternative: 'perror'
std::cerr << ": Failure when writing to client socket: " << strerror(errno) << std::endl;
^~~~~~~~
perror
make[2]: *** [profiling/server/src/basePipeServer/CMakeFiles/armnnBasePipeServer.dir/build.make:76: profiling/server/src/basePipeServer/CMakeFiles/armnnBasePipeServer.dir/BasePipeServer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1636: profiling/server/src/basePipeServer/CMakeFiles/armnnBasePipeServer.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

I tried to change the compiler to openwrt's g++, but the above problem occurred.

@orlmon01
Copy link
Collaborator

orlmon01 commented Jan 8, 2025

Hi,
We do not officially support it and we did not attempt to compile or test with openwrt g++ so we can't say for sure if it will work. Looking at your error it seems that some dependencies, namely 'strerror', are not available with that compiler. If you could figure out what you need to add to your LD_LIBRARY_PATH that the compiler could then use it, you might be able to get it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants