bugAVR C Runtime Library - Bugs: bug #38037, "Building and...

 
 

bug #38037: "Building and Installing" needs round-up

Submitted by:  Georg-Johann Lay <gjlayde>
Submitted on:  Mon 07 Jan 2013 06:17:52 PM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build system
Status: NonePercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
Release: 1.8.0Fixed Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 07 Jan 2013 06:17:52 PM UTC, original submission:

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

Georg-Johann Lay <gjlayde>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gjlayde (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup