PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Probleme beim kompilieren unter Linux



gandalfsz
29.11.2008, 10:21
Wenn ich versuche ein Programm zu kompilieren bekomme ich folgendes:

daniel@daniel-desktop:~/Programmieren/Robocup/Own_programs/FirstTest$ make all

-------- begin --------
avr-gcc (GCC) 4.3.0
Copyright (C) 2008 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.


Size before:
avr-size: invalid argument to --format: avr
Usage: avr-size [option(s)] [file(s)]
Displays the sizes of sections inside binary files
If no input file(s) are specified, a.out is assumed
The options are:
-A|-B --format={sysv|berkeley} Select output style (default is berkeley)
-o|-d|-x --radix={8|10|16} Display numbers in octal, decimal or hex
-t --totals Display the total sizes (Berkeley only)
--common Display total size for *COM* syms
--target=<bfdname> Set the binary file format
@<file> Read options from <file>
-h --help Display this information
-v --version Display the program's version

avr-size: supported targets: elf32-avr elf32-little elf32-big srec symbolsrec tekhex binary ihex


Size after:
avr-size: invalid argument to --format: avr
Usage: avr-size [option(s)] [file(s)]
Displays the sizes of sections inside binary files
If no input file(s) are specified, a.out is assumed
The options are:
-A|-B --format={sysv|berkeley} Select output style (default is berkeley)
-o|-d|-x --radix={8|10|16} Display numbers in octal, decimal or hex
-t --totals Display the total sizes (Berkeley only)
--common Display total size for *COM* syms
--target=<bfdname> Set the binary file format
@<file> Read options from <file>
-h --help Display this information
-v --version Display the program's version

avr-size: supported targets: elf32-avr elf32-little elf32-big srec symbolsrec tekhex binary ihex

-------- end --------

Es wird auch ein *.hex erstellt aber dieser ändert sich nicht wenn ich den Quelltext ändere, es wwird immer das gleiche erzeugt. Wie schaff ich es das er die Programme auch wirklich kompiliert ?
mfg Daniel

pyr0skull
29.11.2008, 10:31
Wo hast du denn das Makefile her? Da ist irgendwas kaputt, was genau findest du aber auch in der Ausgabe: avr-size wird ein falscher Parameter übergeben.

gandalfsz
29.11.2008, 10:38
Ich hab das Programm PR6_Leds geändert und auch das Makefile von dort genommen.

mfg Daniel

pyr0skull
29.11.2008, 11:41
Hm mit den RP6-spezifischen Sachen kenn ich mich jetzt nicht so aus, ein heißer Tip wäre es aber mal in das Makefile reinzugucken und da den avr-size-Aufruf zu prüfen..

gandalfsz
30.11.2008, 15:54
Ok hab herausgefunden das ich mir den gcc selber kompilieren muss. Das funktioniert bei mir zwar nicht aber da gehts mehr um Linux als um Robotik deshalb hab ich in nem Linuxforum gefragt.
mfg Daniel