avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #38037] "Building and Installing" needs round-up


From: Georg-Johann Lay
Subject: [avr-libc-dev] [bug #38037] "Building and Installing" needs round-up
Date: Mon, 07 Jan 2013 18:17:53 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100506 SUSE/3.5.10-0.1.2 Firefox/3.5.10

URL:
  <http://savannah.nongnu.org/bugs/?38037>

                 Summary: "Building and Installing" needs round-up
                 Project: AVR C Runtime Library
            Submitted by: gjlayde
            Submitted on: Mo 07 Jan 2013 18:17:52 GMT
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build system
                  Status: None
        Percent Complete: 0%
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.8.0
           Fixed Release: None

    _______________________________________________________

Details:

The "Building and Installing under Linux, FreeBSD, and Others" documentation
[1] needs some fixes:

1)
"Installing GCC" states in [2]:
   "First, we *highly* recommend that GCC be built into a
   separate directory from the sources which does not reside
   within the source tree. [...] building where srcdir == objdir
   should still work, but doesn't get extensive testing;
   building where objdir is a subdirectory of srcdir is
   not supported."

Nevertheless [1] uses ../configure, i.e. objdir is a subdirectory of srcdir.

2)
Depending on its version, GCC needs several prerequisites: GMP, MPFR, MPC. 
The recommended way to get them is to "cd $(srcdir)" and then to run
./contrib/download_prerequisites and to do an in-tree build with these
prerequisites.  This ensures the right versions of the prerequisites are used
and that they are configured in sync with GCC, cf. [3]

3) GCC configure should be performed with --with-avrlibc, cf. [2] and see [4]
for reasoning.

4) Recent versions of GCC are distributed as one chunk, there is no gcc-core
etc. any more.

5) Binutils need not to be in the PATH as GCC is being built provided both are
configured with the same prefix.

6) With Linux, Binutils and GCC for MS windows can be built as easily as the
tools for Linux:  Just configure with, say, --target=i386-mingw32
--build=x86-linux-gnu.  This requires working avr-gcc (you already built it as
described) and i386-ming32-gcc cross-compilers.  The rest of the build process
is the same, including the in-tree builds of the prerequisites.


[1] http://nongnu.org/avr-libc/user-manual/install_tools.html
[2] http://gcc.gnu.org/install/configure.html
[3] http://gcc.gnu.org/wiki/InstallingGCC
[4] http://gcc.gnu.org/PR54461





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?38037>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]