[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Compile error
From: |
Stewart Cutler |
Subject: |
Re: [avr-gcc-list] Compile error |
Date: |
Thu, 17 Feb 2005 10:41:39 +0000 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
Paul Colin Gloster wrote:
On Thu, Feb 17, 2005 at 01:09:57PM +0700, Andi wrote:
"I got problem to compile my code . the messages :
"make.exe" all
make.exe: *** No rule to make target `all'. Stop.
[..]"
Your Makefile file (if it even exists) does not have
a section for all which is what make.exe by default tries
to do. Try to use Mfile which is in the WinAVR
distribution and whose website is at
WWW.Sax.De/~joerg/mfile/ in order to construct a valid
Makefile file.
_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Possibly not,
I downloaded the latest WinAVR package (20050214), renamed the 20040720
version and installed the new software in the same place. My test
compilation failed, which had previously worked under 20040720, with the
same error as Andi describes. I then used the new MFile to create a new
makefile and attempted a compilation again. Still no luck, same error. I
renamed the new installation to get it out of the way and renamed the
old installation back to the original name; and the test would compile,
once I'd set up the extra include files and redefined two symbols that
were in the old makefile, but the errors generated were not the ones
reported. Using the old makefile it would also compile correctly, just
checking.
Switching the two installations back again so we've got the new one
again and a check compile, same error. If, however, I specified the old
version of Make rather than the default (new) version then the make
would go alright.
I am aware that the version of make in 20050214 is version 3.80 and is a
native windows app, and the old version is 3.78.1 and relies on Cygwin.
I believe that there is a bug in the new version. But since the old one
works OK I've replaced the new make with the old one and am using it
that way.
The debug output from the new make is:
D:\GCC Projects\AVR\Test\LCD Test>make all
-------- begin --------
avr-gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiling: LCDTest.c
avr-gcc -c -mmcu=at90s8515 -I. -gdwarf-2 -DF_CPU=8000000UL -Os
-funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -fnew-ra -Wall
-Wstrict-prototy
pes -Wa,-adhlns=LCDTest.lst -ID:/GCC/WinAVR/avr/include/ -std=gnu99
-DTICKS_PER_
uSEC=3.69 -DCLOCK_DIVIDE=1 -MD -MP -MF .dep/LCDTest.o.d LCDTest.c -o
LCDTest.o
make: *** No rule to make target `LCD.o', needed by `LCDTest.elf'. Stop.
The debug output from make 3.78.1 is very, very long indeed.
This is the standard output from make 3.78.1 for the small test program
using the same makefile:
-------- begin --------
avr-gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Built for Windows32
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Report bugs to <address@hidden>.
Compiling: LCD.c
avr-gcc -c -mmcu=at90s8515 -I. -gdwarf-2 -DF_CPU=8000000UL -Os
-funsigned-ch
-funsigned-bitfields -fpack-struct -fshort-enums -fnew-ra -Wall
-Wstrict-prot
pes -Wa,-adhlns=LCD.lst -ID:/GCC/WinAVR/avr/include/ -std=gnu99
-DTICKS_PER_u
=3.69 -DCLOCK_DIVIDE=1 -MD -MP -MF .dep/LCD.o.d LCD.c -o LCD.o
Compiling: timers.c
avr-gcc -c -mmcu=at90s8515 -I. -gdwarf-2 -DF_CPU=8000000UL -Os
-funsigned-ch
-funsigned-bitfields -fpack-struct -fshort-enums -fnew-ra -Wall
-Wstrict-prot
pes -Wa,-adhlns=timers.lst -ID:/GCC/WinAVR/avr/include/ -std=gnu99
-DTICKS_PE
SEC=3.69 -DCLOCK_DIVIDE=1 -MD -MP -MF .dep/timers.o.d timers.c -o timers.o
Linking: LCDTest.elf
avr-gcc -mmcu=at90s8515 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char
nsigned-bitfields -fpack-struct -fshort-enums -fnew-ra -Wall
-Wstrict-prototy
-Wa,-adhlns=LCDTest.o -ID:/GCC/WinAVR/avr/include/ -std=gnu99
-DTICKS_PER_uS
3.69 -DCLOCK_DIVIDE=1 -MD -MP -MF .dep/LCDTest.elf.d LCDTest.o LCD.o
timers.o
output LCDTest.elf -Wl,-Map=LCDTest.map,--cref -lm
Creating load file for Flash: LCDTest.hex
avr-objcopy -O ihex -R .eeprom LCDTest.elf LCDTest.hex
Creating load file for EEPROM: LCDTest.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex LCDTest.elf LCDTest.eep
Creating Extended Listing: LCDTest.lss
avr-objdump -h -S LCDTest.elf > LCDTest.lss
Creating Symbol Table: LCDTest.sym
avr-nm -n LCDTest.elf > LCDTest.sym
Size after:
LCDTest.elf :
section size addr
.text 5686 0
.data 92 8388704
.bss 16 8388796
.noinit 0 8388812
.eeprom 0 8454144
.debug_aranges 60 0
.debug_pubnames 649 0
.debug_info 2586 0
.debug_abbrev 693 0
.debug_line 2155 0
.debug_str 958 0
Total 12895
AVR Memory Usage:
-----------------
Device: at90s8515
Program: 5778 bytes (70.5% Full)
(.text + .data + .bootloader)
Data: 108 bytes (21.1% Full)
(.data + .bss + .noinit)
-------- end --------
I have also sent this to make bug reporting
Stewart Cutler
- [avr-gcc-list] WinAVR 20050414 Released, Colin O'Flynn, 2005/02/15
- Re: [avr-gcc-list] WinAVR 20050414 Released, Andy Hutchinson, 2005/02/15
- Re: [avr-gcc-list] WinAVR 20050414 Released, E. Weddington, 2005/02/15
- [avr-gcc-list] WinAVR 20050414 Released, Royce & Sharal Pereira, 2005/02/16
- Re: [avr-gcc-list] WinAVR 20050414 Released, E. Weddington, 2005/02/16
- [avr-gcc-list] Compile error, andi, 2005/02/17
- Re: [avr-gcc-list] Compile error, Paul Colin Gloster, 2005/02/17
- Re: [avr-gcc-list] Compile error,
Stewart Cutler <=
- Re: [avr-gcc-list] Compile error, Frederik ROULEAU, 2005/02/17
- Re: [avr-gcc-list] Compile error, Stewart Cutler, 2005/02/17
- Re: [avr-gcc-list] Compile error, E. Weddington, 2005/02/17
- Re: [avr-gcc-list] Compile error, Stewart Cutler, 2005/02/17
- Re: [avr-gcc-list] Compile error, E. Weddington, 2005/02/17
- Re: [avr-gcc-list] Compile error, Stewart Cutler, 2005/02/17
- Re: [avr-gcc-list] Compile error, Stewart Cutler, 2005/02/17
- Re: [avr-gcc-list] Compile error, E. Weddington, 2005/02/17