{"id":458,"date":"2022-08-30T15:01:41","date_gmt":"2022-08-30T15:01:41","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/arm-angstrom-linux-gnueabi-gcc-linker-fails-to-link-against-uclibc-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:01:41","modified_gmt":"2022-08-30T15:01:41","slug":"arm-angstrom-linux-gnueabi-gcc-linker-fails-to-link-against-uclibc-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/arm-angstrom-linux-gnueabi-gcc-linker-fails-to-link-against-uclibc-collection-of-common-programming-errors\/","title":{"rendered":"arm-angstrom-linux-gnueabi-gcc linker fails to link against uclibc-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to build an application for angstrom linux (that uses uclibc instead of libstdc++, in my case). I am using bitbake and openembedded. With a simple toolchain I am able to build successfully by adding only <code>-muclibc<\/code> flag. With bitbake my build command is the following<\/p>\n<pre><code>arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=\/home\/hnsl\/stuff\/tmp\/sysroots\/armv7a-angstrom-linux-gnueabi -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb2 -Wl,-O1 -Wl,--hash-style=gnu -muclibc mainThread.cpp lib.cpp -lportaudio\n<\/code><\/pre>\n<p>where <code>-muclibc mainThread.cpp lib.cpp -lportaudio<\/code> is done by me. Portaudio (<code>-lportaudio<\/code>) is linked successfully. Uclibc (I think) fails to be linked; I get these errors:<\/p>\n<pre><code> \/tmp\/ccW4SVb4.o: In function `main':\n| \/home\/hnsl\/stuff\/tmp\/work\/armv7a-angstrom-linux-gnueabi\/cphone-1.0.0-r1\/mainThread.cpp:68: undefined reference to `__cxa_end_cleanup'\n| \/home\/hnsl\/stuff\/tmp\/work\/armv7a-angstrom-linux-gnueabi\/cphone-1.0.0-r1\/mainThread.cpp:68: undefined reference to `__cxa_begin_catch'\n| \/tmp\/ccW4SVb4.o: In function `operator<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-11-09 19:43:41. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am trying to build an application for angstrom linux (that uses uclibc instead of libstdc++, in my case). I am using bitbake and openembedded. With a simple toolchain I am able to build successfully by adding only -muclibc flag. With bitbake my build command is the following arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb [&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-458","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/458","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=458"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/458\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}