{"id":677,"date":"2022-08-30T15:05:20","date_gmt":"2022-08-30T15:05:20","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/building-gcc-4-5-2-on-amd-x86_64-only-building-64-bit-libraries-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:05:20","modified_gmt":"2022-08-30T15:05:20","slug":"building-gcc-4-5-2-on-amd-x86_64-only-building-64-bit-libraries-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/building-gcc-4-5-2-on-amd-x86_64-only-building-64-bit-libraries-collection-of-common-programming-errors\/","title":{"rendered":"building gcc 4.5.2 on amd x86_64 only building 64 bit libraries-Collection of common programming errors"},"content":{"rendered":"<p>I tried building gcc-4.5.2 from sources on a Debian 64-bit machine. I ended up having just 64 bit version of the compiler but no 32-bit. When I try to build 32 bit application I see following linker error. when I tried \u2018-m32\u2032 options I\u2019m getting this message \/usr\/bin\/ld: skipping incompatible \/usr\/local\/gcc452\/lib\/gcc\/x86_64-unknown-linux-gnu\/4.5.2\/libgcc.a when searching for -lgcc \/usr\/bin\/ld: cannot find -lgcc \/usr\/bin\/ld: cannot find -lgcc_s collect2: ld returned 1 exit statu What should I do to build gcc properly.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 21:26:54. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I tried building gcc-4.5.2 from sources on a Debian 64-bit machine. I ended up having just 64 bit version of the compiler but no 32-bit. When I try to build 32 bit application I see following linker error. when I tried \u2018-m32\u2032 options I\u2019m getting this message \/usr\/bin\/ld: skipping incompatible \/usr\/local\/gcc452\/lib\/gcc\/x86_64-unknown-linux-gnu\/4.5.2\/libgcc.a when searching for -lgcc [&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-677","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/677","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=677"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/677\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}