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

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

Re: [avr-libc-dev] Re: headers only / bootstrapping an avr toolchain


From: Rick Altherr
Subject: Re: [avr-libc-dev] Re: headers only / bootstrapping an avr toolchain
Date: Tue, 4 Nov 2008 10:16:10 -0800


On Nov 4, 2008, at 1:16 AM, Sven Köhler wrote:

Weddington, Eric schrieb:
Do Gentoo developers not know how to read documentation?:
<http://www.nongnu.org/avr-libc/user-manual/install_tools.html>

I'm not sure who developed the avr-libc package for Gentoo. But it turns out, that running
 crossdev --without-headers -S -t avr

works just fine.

Information on how to build an AVR toolchain has been in the avr- libc user manual for a long time. If you just want to build a C and C++ toolchain for the AVR then build, in order:
- binutils
- gcc
- avr-libc
I also happen to build the Objective C compiler for the AVR (not that anyone in their right mind would use it), and I end up doing:
- binutils
- gcc, C compiler only (in essence just enough to build avr-libc)
- avr-libc
- gcc, full build for c, c++, objc
I do this because the objc compiler needs to have the headers built and installed first. The C and C++ compilers don't seem to have a problem with that (at least for the AVR).

So that could be a problem. So actually there is a dependency of the gcc-package (including objc) on the avr-libc headers? So instead of building gcc twice, it might be better to install avr-libc's headers after binutils and before gcc?


gcc only has a dependency on the avr-libc headers when building the objc compiler. Since no one is likely to ever use objc, you could simply adjust the crossdev scripts to not attempt to build the objc compiler when building gcc.

If the avr-libc documentation is lacking then please suggest a patch so we can fix it. Thank you for looking into getting crossdev fixed. It has been broken for so long, we have just been telling users to stop using it to build an AVR toolchain.

I'm trying my best.

I already have my C compiler installed, but things like c++/objc will be another big step.



_______________________________________________
AVR-libc-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

--
Rick Altherr
address@hidden

"He said he hadn't had a byte in three days. I had a short, so I split it with him."
 -- Slashdot signature


Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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