From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21874 invoked by alias); 11 Jan 2014 12:47:54 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 21863 invoked by uid 89); 11 Jan 2014 12:47:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f49.google.com Received: from mail-la0-f49.google.com (HELO mail-la0-f49.google.com) (209.85.215.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 11 Jan 2014 12:47:53 +0000 Received: by mail-la0-f49.google.com with SMTP id er20so3916007lab.8 for ; Sat, 11 Jan 2014 04:47:49 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.112.135.67 with SMTP id pq3mr5531439lbb.65.1389444469355; Sat, 11 Jan 2014 04:47:49 -0800 (PST) Received: by 10.112.132.168 with HTTP; Sat, 11 Jan 2014 04:47:49 -0800 (PST) In-Reply-To: <52D0A294.9000203@videotron.ca> References: <52D0A294.9000203@videotron.ca> Date: Sat, 11 Jan 2014 12:47:00 -0000 Message-ID: Subject: Re: How to test uninstalled GCC 4.8 C and Fortran compilers? From: Jonathan Wakely To: David Bernier Cc: gcc-help Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00049.txt.bz2 On 11 January 2014 01:47, David Bernier wrote: > > As there were problems with `make' the first time > around with java, the second time around I only > enabled the languages C, C++ and Fortran; that > was done in options to the "configure" script: > > > $ git checkout -b gcc-4_8-branch origin/gcc-4_8-branch > $ cd gcc > $ ./configure --enable-languages=c,c++,fortran > $ make It's recommended to do the build outside the source directory, see http://gcc.gnu.org/wiki/InstallingGCC The advantage is that if you mess the build up then the source directory is untouched, so you can just remove the entire build directory and start again in an empty directory. > I don't want to install in the default directories > the C and Fortran compilers for the time being. The default installation prefix is /usr/local, so it wouldn't replace your system compiler (which is good, because replacing the system compiler is usually a bad idea). > I'd like to test the GCC 4.8 C and Fortran compilers for > now. I suppose I could do that from the > /home/david/local_gcc/gcc directory or a sub-directory, > or else perhaps install GCC 4.8 in a > non-standard directory, so as not to interfere with > the "System" gcc, i.e.: > gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4) . > > I have the GCC 4.8.2 manual with me, but I've only > used the gcc C compiler that comes with my Linux > distribution, CentOS 6.5 . > > I would welcome advice on how to test the GCC 4.8 > C and Fortran compilers that were built in > my home directory's sub-directory, i.e. > /home/david/local_gcc/gcc . I asume you mean do your own tests, not run the testsuite (which would be simply "make check" in the build dir). You can install it to a temporary directory by overriding the installation prefix with DESTDIR e.g. mkdir $HOME/gcc_tmp_dir make install DESTDIR=$HOME/gcc_tmp_dir've finished testing When you've finished testing you can just remove that directory, or move it somewhere else.