{"id":547,"date":"2022-08-30T15:03:10","date_gmt":"2022-08-30T15:03:10","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/ubuntu-11-04-installing-gcc-4-4-6-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:03:10","modified_gmt":"2022-08-30T15:03:10","slug":"ubuntu-11-04-installing-gcc-4-4-6-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/ubuntu-11-04-installing-gcc-4-4-6-collection-of-common-programming-errors\/","title":{"rendered":"Ubuntu 11.04: Installing GCC 4.4.6-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to install GCC 4.4.6 on Ubuntu 11.04 64 bit and having some trouble. As the package does not ship with this distribution I try to build it from source. It needs GMP and MPFR which I installed from the package system. I am using distinct source, build and install directories as advised. Target=build=host.<\/p>\n<p>Except <code>--prefix<\/code> I do not give any configure options:<\/p>\n<pre><code>gcc-4.4.6\/configure --prefix=[absolute_path]\/install\/gcc-4.4.6\n<\/code><\/pre>\n<p>These environment variables are also used:<\/p>\n<pre><code>CXX=\/usr\/bin\/g++-4.4\nCC=\/usr\/bin\/gcc-4.4\n<\/code><\/pre>\n<p>since (gcc and g++ default to 4.5 which is also installed)<\/p>\n<p><code>make<\/code> produces the following error (it seems after the bootstrap compiler was built) when it comes to compile gcc-4.4.6\/libgcc\/..\/gcc\/libgcc2.c<\/p>\n<p>\/usr\/include\/gnu\/stubs.h:7:27: error: gnu\/stubs-32.h: No such file or directory<\/p>\n<p>The filename might suggest that this is a 64\/32 bit issue. Is there something to consider when building GCC on a 64 bit machine?<\/p>\n<p>The config.log says:<\/p>\n<pre><code>uname -m = x86_64\nuname -r = 2.6.38-11-generic\nuname -s = Linux\nuname -v = #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011\n\n\/usr\/bin\/uname -p = unknown\n\/bin\/uname -X     = unknown\n\n\/bin\/arch              = unknown\n\/usr\/bin\/arch -k       = unknown\n\/usr\/convex\/getsysinfo = unknown\nhostinfo               = unknown\n\/bin\/machine           = unknown\n\/usr\/bin\/oslevel       = unknown\n\/bin\/universe          = unknown\n\nPATH: \/usr\/local\/sbin\nPATH: \/usr\/local\/bin\nPATH: \/usr\/sbin\nPATH: \/usr\/bin\nPATH: \/sbin\nPATH: \/bin\n<\/code><\/pre>\n<h2>&#8212;&#8212;&#8212;&#8211;<\/h2>\n<h2>Core tests.<\/h2>\n<h2>&#8212;&#8212;&#8212;&#8211;<\/h2>\n<p>configure:1563: checking build system type configure:1581: result: x86_64-unknown-linux-gnu configure:1616: checking host system type configure:1630: result: x86_64-unknown-linux-gnu configure:1638: checking target system type configure:1652: result: x86_64-unknown-linux-gnu configure:1696: checking for a BSD-compatible install configure:1762: result: \/usr\/bin\/install -c configure:1773: checking whether ln works configure:1795: result: yes configure:1799: checking whether ln -s works configure:1803: result: yes configure:3002: checking for gcc configure:3028: result: \/usr\/bin\/gcc-4.4 configure:3274: checking for C compiler version configure:3277: \/usr\/bin\/gcc-4.4 &#8211;version &amp;5 gcc-4.4 (Ubuntu\/Linaro 4.4.5-15ubuntu1) 4.4.5 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<\/p>\n<ol>\n<li>\n<p>The problem is a missing package: &#8220;libc6-dev-i386&#8221;<\/p>\n<p>apt-file update<\/p>\n<p>apt-file search stubs-32.h<\/p>\n<p>libc6-dev-i386: \/usr\/include\/gnu\/stubs-32.h<\/p>\n<p>apt-get install libc6-dev-i386<\/p>\n<p>That solves it!<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-11-09 20:50:33. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am trying to install GCC 4.4.6 on Ubuntu 11.04 64 bit and having some trouble. As the package does not ship with this distribution I try to build it from source. It needs GMP and MPFR which I installed from the package system. I am using distinct source, build and install directories as advised. [&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-547","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/547","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=547"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/547\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}