Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

HELP! Can't get Macport avr-libc to compile

HELP! Can't get Macport avr-libc to compile

2008-01-06 by dlc

Hi all,

   I'm _trying_ to get the latest AVR toolset on my Mac.  I'm using 
various people's ways to get the Macport AVR toolset.  avr-binutils and 
avr-gcc come down and install just fine (avr-gcc 4.0.2), but trying to 
bring in the Macport of avr-libc is totally failing, it keeps 
complaining thus:
configure: error: Wrong C compiler found; check the PATH!

   Because I don't grok these kinds of install packages I don't know 
what compiler it is talking about.  This is the dialog up to that point:
.
.
.
checking for avr-gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.0 accepts -g... yes
checking for /usr/bin/gcc-4.0 option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/bin/gcc-4.0... gcc3
checking for avr-as... avr-as
checking for avr-ranlib... avr-ranlib
checking for avr-ar... avr-ar
configure: error: Wrong C compiler found; check the PATH!

So it seems all happy until then.  I'd sure appreciate any wisdom that 
the list has.  Heck, I tried to use : port -D /usr/local/avr install 
avr-gcc and it ignored me, chastised me to for choosing a "non standard" 
install location and put it all in /opt/local/bin in spite of me - That 
irritates me to no end, that isn't even an AVR only location!

Anyway, please, if you have a clue what is going wrong, please feel free 
to criticize my ignorance.  I'm installing on OS X 10.4.11.

many thanks,
DLC
-- 
-------------------------------------------------
Dennis Clark          TTT Enterprises
www.techtoystoday.com
-------------------------------------------------

Re: [AVR-Chat] HELP! Can't get Macport avr-libc to compile

2008-01-06 by dlc

I'm going to reply to my own post.  I found the offending area in the 
configure script that just REFUSED to find avr-gcc and insisted on using 
/usr/bin/gcc which is the Apple gcc.  If I could have found a way to set 
the env var CC I could have overridden it, but I couldn't figure out how 
to do that so I hacked the configure script to point to the avr-gcc 
4.0.2 I just installed and the installer is working and it installed the 
avr-libc stuff in /opt/local/avr/include/avr.

Sheesh!
DLC

dlc wrote:
> Hi all,
> 
>    I'm _trying_ to get the latest AVR toolset on my Mac.  I'm using 
> various people's ways to get the Macport AVR toolset.  avr-binutils and 
> avr-gcc come down and install just fine (avr-gcc 4.0.2), but trying to 
> bring in the Macport of avr-libc is totally failing, it keeps 
> complaining thus:
> configure: error: Wrong C compiler found; check the PATH!
> 
>    Because I don't grok these kinds of install packages I don't know 
> what compiler it is talking about.  This is the dialog up to that point:
> .
> .
> .
> checking for avr-gcc... /usr/bin/gcc-4.0
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... yes
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /usr/bin/gcc-4.0 accepts -g... yes
> checking for /usr/bin/gcc-4.0 option to accept ANSI C... none needed
> checking for style of include used by make... GNU
> checking dependency style of /usr/bin/gcc-4.0... gcc3
> checking for avr-as... avr-as
> checking for avr-ranlib... avr-ranlib
> checking for avr-ar... avr-ar
> configure: error: Wrong C compiler found; check the PATH!
> 
> So it seems all happy until then.  I'd sure appreciate any wisdom that 
> the list has.  Heck, I tried to use : port -D /usr/local/avr install 
> avr-gcc and it ignored me, chastised me to for choosing a "non standard" 
> install location and put it all in /opt/local/bin in spite of me - That 
> irritates me to no end, that isn't even an AVR only location!
> 
> Anyway, please, if you have a clue what is going wrong, please feel free 
> to criticize my ignorance.  I'm installing on OS X 10.4.11.
> 
> many thanks,
> DLC

-- 
-------------------------------------------------
Dennis Clark          TTT Enterprises
www.techtoystoday.com
-------------------------------------------------

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.