bugAVR C Runtime Library - Bugs: bug #34719, Check for right build compiler


bug #34719: Check for right build compiler

Submitted by:  Georg-Johann Lay <gjlayde>
Submitted on:  Tue Nov 1 17:08:53 2011  
Category: Build InfrastructureSeverity: 3 - Normal
Priority: 9 - ImmediateItem Group: Build system
Status: FixedPercent Complete: 0%
Assigned to: NoneOpen/Closed: Closed
Release: 1.7.*Fixed 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 Mar 9 09:30:17 2015, comment #1:


This patch has been applied and committed.

Thank you for the contribution.

Pitchumani <pitchumani>
Project Member
Tue Nov 1 17:08:53 2011, original submission:

As outlined in


the search policy for the build compiler has to be checkes:

1) CC
2) --prefix

Moreover there is a proposed patch

  • configure.ac (CC): Use `${CC} -dumpmachine` to query for

right cross compiler instead of checking CC.

Index: configure.ac
--- configure.ac (revision 2259)
+++ configure.ac (working copy)
@@ -146,7 +146,12 @@ AC_CHECK_TOOL(AR, ar, ar)
# Make sure that we found the right avr cross-compiler.

case "${CC}" in
- avrgcc*) ;;
+ gcc)
+ case "X`${CC} -dumpmachine`X" in
+ XavrX) ;;
+ *) AC_MSG_ERROR(Wrong C compiler found; check the PATH!) ;;
+ esac
+ ;;
*) AC_MSG_ERROR(Wrong C compiler found; check the PATH!) ;;
case "${AS}" in

Georg-Johann Lay <gjlayde>


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

Attach File(s):

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 pitchumani (Posted a comment)
  • -unavailable- added by arcanum (Updated the item)
  • -unavailable- added by gjlayde (Submitted the item)

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



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Mar 9 09:31:18 2015pitchumaniOpen/ClosedOpen=>Closed
    Mon Mar 9 09:30:17 2015pitchumaniStatusNone=>Fixed
    Fri Nov 16 18:35:15 2012arcanumPriority5 - Normal=>9 - Immediate

    Back to the top

    Powered by Savane 3.1-cleanup1