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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34719: Check for right build compiler

Submitter:  Georg-Johann Lay <gjlayde>
Submitted:  Tue 01 Nov 2011 05:08:53 PM UTC
   
 
Category:  Build Infrastructure Severity:  3 - Normal
Priority:  9 - Immediate Item Group:  Build system
Status:  Fixed Assigned to:  None
Percent Complete:  0% Open/Closed:  Closed
Release:  1.7.* Fixed Release:  None

Mon 09 Mar 2015 09:30:17 AM UTC, comment #1: 

http://svn.savannah.nongnu.org/viewvc?view=rev&root=avr-libc&revision=2470



This patch has been applied and committed.

Thank you for the contribution.

Pitchumani <pitchumani>
Group Member
Tue 01 Nov 2011 05:08:53 PM UTC, original submission:  

As outlined in

http://www.mikrocontroller.net/topic/236837#2402619

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

1) CC
2) --prefix
3) PATH

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
-   avr*gcc) ;;
+   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!) ;;
 esac
 case "${AS}" in

Georg-Johann Lay <gjlayde>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pitchumani (Posted a comment)
  • -email is unavailable- added by arcanum (Updated the item)
  • -email is unavailable- added by gjlayde (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-09 pitchumani Open/ClosedOpen Closed
    2015-03-09 pitchumani StatusNone Fixed
    2012-11-16 arcanum Priority5 - Normal 9 - Immediate

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code