Forum: Mikrocontroller und Digitale Elektronik OpenMCP compilieren


von Stefan H. (Firma: dm2sh) (stefan_helmert)


Lesenswert?

Hallo,

ich wollte OpenMCP compilieren, nur kommt folgende Fehlermeldung:
1
-------- begin --------
2
avr-gcc (GCC) 4.5.1
3
Copyright (C) 2010 Free Software Foundation, Inc.
4
This is free software; see the source for copying conditions.  There is NO
5
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
6
7
8
Compiling C: main.c
9
avr-gcc -c -mmcu=atmega644 -I. -gdwarf-2 -DF_CPU=16000000UL -Os -fno-common -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wshadow -Wstrict-prototypes -Wa,-adhlns=./main.lst  -std=gnu99 -D__heap_end=0x80ff
10
ff -DAVRNETIO -DAVRNETIO_ADDON -mcall-prologues -fdata-sections -ffunction-sections -fmerge-constants -mno-tablejump -ffreestanding -fno-move-loop-invariants --param inline-call-cost=2 -finline-limit=10 -MMD -MP -MF .dep/main.o.d
11
main.c -o main.o
12
cc1: error: unrecognized command line option "-mno-tablejump"
13
cc1: error: invalid parameter 'inline-call-cost'
14
make: *** [main.o] Error 1

Brauche ich AVR-GCC Version 3 statt 4?
Weshalb kann der Compiler mit der Option nichts anfangen?

von Murkser (Gast)


Lesenswert?

Dann laß doch mal die unbekannten Optionen weg. Ich habe mit AVR-GCC 
zwar keine Erfahrung, aber wenn der GCC die Optionen nicht mag, dann 
schau doch halt mal wie weit Du ohne diese Optionen kommst.

Murkser

von Markus H. (traumflug)


Lesenswert?

Zitat aus dem gcc-Manual http://linux.die.net/man/1/gcc

-mno-tablejump
    Do not generate tablejump insns which sometimes increase code size. 
The option is now deprecated in favor of the equivalent -fno-jump-tables

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.