https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106088
--- Comment #1 from William Tang <galaxyking0419 at gmail dot com> --- The mentioned libraries did exist in the cross compile environment. Compiling with command "arm-linux-gnueabihf-gcc main.c -Wl,-rpath-link,/usr/arm-linux-gnueabihf/usr/lib -larchive" works just fine.