Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#13851 closed defect (fixed)

avr-libc Build Error on Leopard

Reported by: jdueitt@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: bytestorm@…, me@…, andi@…
Port: avr-libc

Description

When attempting to install avr-libc on Leopard (Intel iMac) I get the following error:

Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-libc/work/avr-libc-1.4.4" && ./configure --prefix=/opt/local --prefix=/opt/local --host=avr --build=`./config.guess` " returned error 1
Command output: checking build system type... i686-apple-darwin9.1.0
checking host system type... avr-unknown-none
checking if configuring for cross compile... yes
checking if target host is avr... yes
checking for a BSD-compatible install... /usr/bin/install
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for avr-strip... avr-strip
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!

Error: Status 1 encountered during processing.

I have already installed avr-gcc and avr-binutils. Those executables work when I invoke them. It seems that the configure step for avr-libc is not finding the correct gcc and is attempting to use the system's gcc (/usr/bin/gcc-4.0). If I download the source to avr-libc and do a manual configure and install outside of MacPorts everything works correctly. Is this a known problem and if so how do I correct it?

Change History (9)

comment:1 Changed 16 years ago by isak@…

Running directly from the shell works, as said. In this case CC is unset. When issuing "port configure avr-libc" then CC is "/usr/bin/gcc-4.0". PATH is the same in both cases. Hopefully this is a clue!

comment:2 Changed 16 years ago by isak@…

The installation works if this line is added in the portfile:

configure.cc avr-gcc

Building and uploading a firmware to an Arduino using the installed avr-libc and avrdude works. I have not verified that the firmware runs correctly, but I think errors related to this ticket would have occurred earlier.

comment:3 Changed 16 years ago by acho@…

Cc: bytestorm@… added

comment:4 Changed 16 years ago by jmroot (Joshua Root)

Cc: me@… added

Cc maintainer.

comment:5 Changed 16 years ago by andi@…

Cc: andi@… added

Cc Me!

comment:6 Changed 16 years ago by andi@…

Are there an updates? Adding this configure.cc avr-gcc line works for me too, but why is the portfile isn't updated yet?

Greets, Andi

comment:7 Changed 15 years ago by athomsonguy@…

Ping...

This is still a problem.

comment:8 Changed 15 years ago by blb@…

Keywords: avr-libc removed
Port: avr-libc added
Resolution: fixed
Status: newclosed

Should be fixed in r41411 (maintainer timeout).

comment:9 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.