<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GCC: configuring srcdir 7 objdir in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/gcc-configuring-srcdir-7-objdir/m-p/4702372#M42448</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've been configuring Apache on Red Hat Linux 5 for the past 2 weeks and I’m at the point where I’m configuring gcc-4.5.1 as a pre-requisite for Apache. I’ve already installed autoconf and make/automake, which are pre-requisites for gcc. So, gcc has been download and extracted and I’m configuring before it can be built.&lt;BR /&gt;&lt;BR /&gt;What is suggested is srcdir is used to refer to the top level source directory for GCC; and objdir for the top level build/object directory. So, my question is all the files located directly underneath /gcc-4.*.*/ such as ChangeLog, MAINTAINERS should be moved into the srcdir folder? And all the subfolders OR all the files within subfolders belong in the objdir folder? Lastly, does srcdir &amp;amp; objdir both belong along the same file structure underneath /gcc-4.*.*/?&lt;BR /&gt;&lt;BR /&gt;Tito&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Oct 2010 18:38:18 GMT</pubDate>
    <dc:creator>Tito Hall</dc:creator>
    <dc:date>2010-10-20T18:38:18Z</dc:date>
    <item>
      <title>GCC: configuring srcdir 7 objdir</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gcc-configuring-srcdir-7-objdir/m-p/4702372#M42448</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've been configuring Apache on Red Hat Linux 5 for the past 2 weeks and I’m at the point where I’m configuring gcc-4.5.1 as a pre-requisite for Apache. I’ve already installed autoconf and make/automake, which are pre-requisites for gcc. So, gcc has been download and extracted and I’m configuring before it can be built.&lt;BR /&gt;&lt;BR /&gt;What is suggested is srcdir is used to refer to the top level source directory for GCC; and objdir for the top level build/object directory. So, my question is all the files located directly underneath /gcc-4.*.*/ such as ChangeLog, MAINTAINERS should be moved into the srcdir folder? And all the subfolders OR all the files within subfolders belong in the objdir folder? Lastly, does srcdir &amp;amp; objdir both belong along the same file structure underneath /gcc-4.*.*/?&lt;BR /&gt;&lt;BR /&gt;Tito&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Oct 2010 18:38:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gcc-configuring-srcdir-7-objdir/m-p/4702372#M42448</guid>
      <dc:creator>Tito Hall</dc:creator>
      <dc:date>2010-10-20T18:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: GCC: configuring srcdir 7 objdir</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gcc-configuring-srcdir-7-objdir/m-p/4702373#M42449</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I've been [...]&lt;BR /&gt;&lt;BR /&gt;For newcomers:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1451791" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1451791&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] I've already installed autoconf and&lt;BR /&gt;&amp;gt; make/automake, which are pre-requisites for&lt;BR /&gt;&amp;gt; gcc.&lt;BR /&gt;&lt;BR /&gt;You seem to be working too hard (on the wrong&lt;BR /&gt;things).&lt;BR /&gt;&lt;BR /&gt;&amp;gt; What is suggested [...]&lt;BR /&gt;&lt;BR /&gt;Where?  What are you looking at?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gcc.gnu.org/install/" target="_blank"&gt;http://gcc.gnu.org/install/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://gcc.gnu.org/install/prerequisites.html" target="_blank"&gt;http://gcc.gnu.org/install/prerequisites.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://gcc.gnu.org/install/configure.html" target="_blank"&gt;http://gcc.gnu.org/install/configure.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As I read the "Prerequisites for GCC" page,&lt;BR /&gt;many things are needed "for building GCC",&lt;BR /&gt;but autoconf and automake are needed only&lt;BR /&gt;"for modifying GCC", which you're unlikely to&lt;BR /&gt;be doing.&lt;BR /&gt;&lt;BR /&gt;On the "Installing GCC: Configuration" page:&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;We use srcdir to refer to the toplevel source&lt;BR /&gt;directory for GCC; we use objdir to refer to&lt;BR /&gt;the toplevel build/object directory.&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;So, ".../gcc-4.x.x" _is_ "srcdir".  As it&lt;BR /&gt;says there, ...&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;To configure GCC: &lt;BR /&gt;&lt;BR /&gt;        % mkdir objdir&lt;BR /&gt;        % cd objdir&lt;BR /&gt;        % srcdir/configure [options] [target]&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;So, for example:&lt;BR /&gt;&lt;BR /&gt;      cd xxx/gcc-4.5.1           # ("cd srcdir")&lt;BR /&gt;      mkdir ../gcc-4.5.1_obj   # "mkdir objdir"&lt;BR /&gt;      cd ../gcc-4.5.1_obj        # "cd objdir"&lt;BR /&gt;      ../gcc-4.5.1/configure [...]   # "srcdir/configure [...]"&lt;BR /&gt;&lt;BR /&gt;You start with an empty "objdir".  The&lt;BR /&gt;builders will populate "objdir" as needed.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Lastly, does srcdir &amp;amp; objdir both belong&lt;BR /&gt;&amp;gt; along the same file structure underneath&lt;BR /&gt;&amp;gt; /gcc-4.*.*/?&lt;BR /&gt;&lt;BR /&gt;No.  As it says:&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;[...] building where objdir is a&lt;BR /&gt;subdirectory of srcdir is unsupported.&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;Just pick a nice name (like, say,&lt;BR /&gt;"gcc-4.5.1_obj"), and put it next to "srcdir"&lt;BR /&gt;("gcc-4.5.1").&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I still claim that you should be looking for&lt;BR /&gt;a pre-built GCC kit for your environment.</description>
      <pubDate>Wed, 20 Oct 2010 22:25:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gcc-configuring-srcdir-7-objdir/m-p/4702373#M42449</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-10-20T22:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: GCC: configuring srcdir 7 objdir</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gcc-configuring-srcdir-7-objdir/m-p/4702374#M42450</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] Red Hat Linux 5 [...]&lt;BR /&gt;&lt;BR /&gt;So you posted this in an HP-UX forum because,&lt;BR /&gt;...?</description>
      <pubDate>Wed, 20 Oct 2010 22:32:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gcc-configuring-srcdir-7-objdir/m-p/4702374#M42450</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-10-20T22:32:44Z</dc:date>
    </item>
  </channel>
</rss>

