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 01 Nov 2011 05:08:53 PM UTC  
 
Category: Build InfrastructureSeverity: 3 - Normal
Priority: 9 - ImmediateItem Group: Build system
Status: NonePercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
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.

 

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
- 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!) ;;
esac
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):
   
   
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 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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 16 Nov 2012 06:35:15 PM UTCarcanumPriority5 - Normal=>9 - Immediate

    Back to the top


    Powered by Savane 3.1-cleanup