Discussion:
[avr-libc-dev] [bug #38037] "Building and Installing" needs round-up
Georg-Johann Lay
2013-01-07 18:17:53 UTC
Permalink
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/
Jonathan W. Taylor
2016-08-14 22:04:23 UTC
Permalink
Update of bug #38037 (project avr-libc):

Assigned to: None => elderling


_______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/

Continue reading on narkive:
Loading...