In an ongoing effort to accelerate development of GCC and provide an open development environment, we are making our CVS source repository available read-only to the public at large.
That way you can pick up any version (including releases) of GCC that is in our repository or our web pages.
In addition, you can browse our CVS history online at
In January 2004, these instructions were modified to reflect security changes implemented after an attack on the Free Software Foundation's site.
Assuming you have both CVS and SSH installed, you can check out the GCC sources as follows:
ssh.:ext:anoncvs@savannah.gnu.org:/cvsroot/gcc.
Alternately add
-d :ext:anoncvs@savannah.gnu.org:/cvsroot/gcc
immediately after cvs in the commands below.cvs -qz9 checkout -P gcc wwwdocs,
will check out both modules in our CVS repository.
Module gcc is the compiler source while module
wwwdocs contains the sources for our web pages.In case of problems with the repository at savannah.gnu.org please contact savannah-hackers@gnu.org.
Our CVS source tree contains a number of files that are generated
from other source files by build tools such as Bison, Autoconf, and
Gperf. Bison is now required when using CVS to access our sources,
but all other generated files are included in the source tree so that
GCC can be built without these build tools. The CVS checkout and
update operations do not insure that the timestamps of generated files
are later than those of the files they are generated from. The script
contrib/gcc_update updates the timestamps for all these
generated files. See the comments in that script for instructions on
running it.
GCC's build system (in particular Make) uses file timestamps to
determine if a generated file needs to be updated by running a particular
build tool. Because of this, GCC's build system may believe that
a generated file needs regenerating even though its source has not
changed, and require a particular build tool to rebuild that generated
file. If the appropriate build tool is installed on your system, then
this will not be a problem. If you do not intend to make changes to
the source, you can avoid installing these build tools by running
contrib/gcc_update.
There has been some discussion of removing these generated files from GCC's CVS source tree (there is no discussion of removing them from the released source tarballs). If that happens then building GCC from the CVS source tree would require installing the above mentioned build tools. Installing these build tools is not particularly difficult, but can be time consuming especially if you only occasionally install GCC on a particular system.
The build tools that GCC uses are all available from the GNU Project (see http://www.gnu.org), are often already available on many systems, and can often be found already built for some systems. A partial list of these build tools is: Autoconf, Bison, Xgettext, Automake, and Gperf.
cvs updateIt is not uncommon to get CVS conflict messages for some generated files when updating your local sources from the CVS repository. Typically such conflicts occur with autoconf generated files.
As long as you haven't been making modifications to the generated files
or the generator files, it is safe to delete the offending file, then run
cvs update again to get a new copy.
You can check out the latest version of the GCC x.y release branch with the following command:
cvs -z 9 co -P -rgcc-x_y-branch gcc
By changing the -r argument above you can check out
particular releases or snapshots or the latest snapshot.
[cs] in the subject line.[csl-arm-branch] in the subject
line.[csl-hpux-branch] in the subject
line.
[libobjc-branch] in the subject line. Patches can
be approved by Andrew
Pinski or
Nicola Pero.tree-ssa-20020619-branch branch.The web pages for the GCC project are also in the CVS repository
and you can check them out, submit patches, etc just like you do for
the compiler itself. Use cvs co -P wwwdocs to check out
the web pages.
The setup of the machine running the gcc.gnu.org site is also
available, through
cvsweb and anonymous read-only CVS. Use the same procedure
as above, but use
:pserver:anoncvs@gcc.gnu.org:/cvs/sourceware for the repository
and infra for the module.
Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways to contact the FSF.
These pages are maintained by the GCC team.
For questions related to the use of GCC, please consult these web pages and the GCC manuals. If that fails, the gcc-help@gcc.gnu.org mailing list might help.Copyright (C) Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
| Last modified 2004-02-02 |
|