- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- GCC: configuring srcdir 7 objdir
Operating System - Linux
1754936
Members
3085
Online
108827
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2010 11:38 AM
10-20-2010 11:38 AM
GCC: configuring srcdir 7 objdir
Hello,
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.
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 & objdir both belong along the same file structure underneath /gcc-4.*.*/?
Tito
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.
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 & objdir both belong along the same file structure underneath /gcc-4.*.*/?
Tito
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2010 03:25 PM
10-20-2010 03:25 PM
Re: GCC: configuring srcdir 7 objdir
> I've been [...]
For newcomers:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1451791
> [...] I've already installed autoconf and
> make/automake, which are pre-requisites for
> gcc.
You seem to be working too hard (on the wrong
things).
> What is suggested [...]
Where? What are you looking at?
http://gcc.gnu.org/install/
http://gcc.gnu.org/install/prerequisites.html
http://gcc.gnu.org/install/configure.html
As I read the "Prerequisites for GCC" page,
many things are needed "for building GCC",
but autoconf and automake are needed only
"for modifying GCC", which you're unlikely to
be doing.
On the "Installing GCC: Configuration" page:
[...]
We use srcdir to refer to the toplevel source
directory for GCC; we use objdir to refer to
the toplevel build/object directory.
[...]
So, ".../gcc-4.x.x" _is_ "srcdir". As it
says there, ...
[...]
To configure GCC:
% mkdir objdir
% cd objdir
% srcdir/configure [options] [target]
[...]
So, for example:
cd xxx/gcc-4.5.1 # ("cd srcdir")
mkdir ../gcc-4.5.1_obj # "mkdir objdir"
cd ../gcc-4.5.1_obj # "cd objdir"
../gcc-4.5.1/configure [...] # "srcdir/configure [...]"
You start with an empty "objdir". The
builders will populate "objdir" as needed.
> Lastly, does srcdir & objdir both belong
> along the same file structure underneath
> /gcc-4.*.*/?
No. As it says:
[...]
[...] building where objdir is a
subdirectory of srcdir is unsupported.
[...]
Just pick a nice name (like, say,
"gcc-4.5.1_obj"), and put it next to "srcdir"
("gcc-4.5.1").
I still claim that you should be looking for
a pre-built GCC kit for your environment.
For newcomers:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1451791
> [...] I've already installed autoconf and
> make/automake, which are pre-requisites for
> gcc.
You seem to be working too hard (on the wrong
things).
> What is suggested [...]
Where? What are you looking at?
http://gcc.gnu.org/install/
http://gcc.gnu.org/install/prerequisites.html
http://gcc.gnu.org/install/configure.html
As I read the "Prerequisites for GCC" page,
many things are needed "for building GCC",
but autoconf and automake are needed only
"for modifying GCC", which you're unlikely to
be doing.
On the "Installing GCC: Configuration" page:
[...]
We use srcdir to refer to the toplevel source
directory for GCC; we use objdir to refer to
the toplevel build/object directory.
[...]
So, ".../gcc-4.x.x" _is_ "srcdir". As it
says there, ...
[...]
To configure GCC:
% mkdir objdir
% cd objdir
% srcdir/configure [options] [target]
[...]
So, for example:
cd xxx/gcc-4.5.1 # ("cd srcdir")
mkdir ../gcc-4.5.1_obj # "mkdir objdir"
cd ../gcc-4.5.1_obj # "cd objdir"
../gcc-4.5.1/configure [...] # "srcdir/configure [...]"
You start with an empty "objdir". The
builders will populate "objdir" as needed.
> Lastly, does srcdir & objdir both belong
> along the same file structure underneath
> /gcc-4.*.*/?
No. As it says:
[...]
[...] building where objdir is a
subdirectory of srcdir is unsupported.
[...]
Just pick a nice name (like, say,
"gcc-4.5.1_obj"), and put it next to "srcdir"
("gcc-4.5.1").
I still claim that you should be looking for
a pre-built GCC kit for your environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2010 03:32 PM
10-20-2010 03:32 PM
Re: GCC: configuring srcdir 7 objdir
> [...] Red Hat Linux 5 [...]
So you posted this in an HP-UX forum because,
...?
So you posted this in an HP-UX forum because,
...?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP