{"id":1298,"date":"2022-08-30T15:15:22","date_gmt":"2022-08-30T15:15:22","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/10\/compiling-on-beagleboard-fail-on-ar-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:15:22","modified_gmt":"2022-08-30T15:15:22","slug":"compiling-on-beagleboard-fail-on-ar-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/compiling-on-beagleboard-fail-on-ar-collection-of-common-programming-errors\/","title":{"rendered":"Compiling on Beagleboard &#8211; Fail on AR-Collection of common programming errors"},"content":{"rendered":"<p>I am Compiling on a Beagleboard-Xm, Kernel:<\/p>\n<pre><code>root@beagleboard:~# uname -a\nLinux beagleboard 2.6.32 #3 PREEMPT Tue Jul 26 10:56:56 CEST 2011 armv7l unknown\n<\/code><\/pre>\n<p>I now try to compile a static library with CMake, and everything is working fine, until it comes to linking of the library:<\/p>\n<pre><code>root@beagleboard:\/usr\/src\/build\/beaglebuild# make\nScanning dependencies of target phoenix_base\n[  2%] Building CXX object 00_phoenix_base\/CMakeFiles\/phoenix_base.dir\/src\/exec_buffer.cpp.o\n[  5%] Building CXX object 00_phoenix_base\/CMakeFiles\/phoenix_base.dir\/src\/func_buffer.cpp.o\n[  8%] Building CXX object 00_phoenix_base\/CMakeFiles\/phoenix_base.dir\/src\/worker.cpp.o\n[ 11%] Building CXX object 00_phoenix_base\/CMakeFiles\/phoenix_base.dir\/src\/workermanager.cpp.o\n[ 14%] Building CXX object 00_phoenix_base\/CMakeFiles\/phoenix_base.dir\/src\/command.cpp.o\n[ 17%] Building CXX object 00_phoenix_base\/CMakeFiles\/phoenix_base.dir\/src\/logger.cpp.o\n[ 20%] Building CXX object 00_phoenix_base\/CMakeFiles\/phoenix_base.dir\/src\/signal.cpp.o\nLinking CXX static library libphoenix_base.a\nBusyBox v1.13.2 (2011-02-25 16:46:47 CET) multi-call binary\n\nUsage: ar [-o] [-v] [-p] [-t] [-x] ARCHIVE FILES\n\nExtract or list FILES from an ar archive\n\nOptions:\n    -o  Preserve original dates\n    -p  Extract to stdout\n    -t  List\n    -x  Extract\n    -v  Verbose\n\nmake[2]: *** [00_phoenix_base\/libphoenix_base.a] Error 1\nmake[1]: *** [00_phoenix_base\/CMakeFiles\/phoenix_base.dir\/all] Error 2\nmake: *** [all] Error 2\n<\/code><\/pre>\n<p>In my the &#8220;ar &#8211;help&#8221; prints the same stuff.<\/p>\n<p>Is there a way to get linking running on the board? What may be the Issue?<\/p>\n<p>Some other System Versions:<\/p>\n<pre><code>root@beagleboard:~# cmake --version\ncmake version 2.8.2\nroot@beagleboard:~# g++ --version\ng++ (GCC) 4.3.3\nCopyright (C) 2008 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions.  There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n<\/code><\/pre>\n<ol>\n<li>\n<p>After much trouble I cross-compiled a fully up-to-date version of ar (i thing the one on the board was outdated) and I got rid of BusyBox.<\/p>\n<p>Now everything works as I expected.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-11-10 00:15:10. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am Compiling on a Beagleboard-Xm, Kernel: root@beagleboard:~# uname -a Linux beagleboard 2.6.32 #3 PREEMPT Tue Jul 26 10:56:56 CEST 2011 armv7l unknown I now try to compile a static library with CMake, and everything is working fine, until it comes to linking of the library: root@beagleboard:\/usr\/src\/build\/beaglebuild# make Scanning dependencies of target phoenix_base [ 2%] [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1298","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1298"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1298\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}