[MacPorts] #56613: avr-gcc fails to compile elf file
MacPorts
noreply at macports.org
Tue Jun 5 14:29:41 UTC 2018
#56613: avr-gcc fails to compile elf file
---------------------------------+---------------------
Reporter: chrisjogorman | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.2
Keywords: avr-gcc snowleopard | Port: avr-gcc
---------------------------------+---------------------
this code use to build with `avr-gcc @4.9.1_0+lto` and now fails to
compile.
{{{
Chris-Gormans-Mac-mini:firmware chrisgorman$ make
avr-gcc -Wall -Os -DF_CPU=8000000 -mmcu=atmega162 -c clock.c -o clock.o
clock.c:11:0: warning: "F_CPU" redefined
#define F_CPU = 8000000UL
<command-line>:0:0: note: this is the location of the previous definition
avr-gcc -Wall -Os -DF_CPU=8000000 -mmcu=atmega162 -o clock.elf clock.o
/opt/local/lib/gcc/avr/7.2.0/../../../../avr/bin/ld: cannot find
crtatmega162.o: No such file or directory
/opt/local/lib/gcc/avr/7.2.0/../../../../avr/bin/ld: cannot find
-latmega162
collect2: error: ld returned 1 exit status
make: *** [clock.elf] Error 1
}}}
Not sure where crtatmega162.o should be. Perhaps this is a bug with using
old build steps?
--
Ticket URL: <https://trac.macports.org/ticket/56613>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list