-         

Ergebnis 1 bis 2 von 2

Thema: avr-gcc (GCC) 4.2.2 zu neu für Baselib?

  1. #1
    Benutzer Stammmitglied
    Registriert seit
    17.12.2007
    Beiträge
    74

    avr-gcc (GCC) 4.2.2 zu neu für Baselib?

    Anzeige

    Hallo,
    in meinem Ubuntu Quellen ist die avr-gcc Version 4.2.2 und damit kommt es selbst beim Kompilieren der Beispielprogramme zu einem Haufen Fehlern?! Selbst bei der neusten Version der Lib.

    Code:
    axel@axel-laptop:~/Desktop/RP6Examples_20080510/RP6BASE_EXAMPLES/Example_01_LEDs$ make all
    
    -------- begin --------
    avr-gcc (GCC) 4.2.2
    Copyright (C) 2007 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: RP6Base_LEDs.c
    avr-gcc -c -mmcu=atmega32 -I. -gdwarf-2   -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=RP6Base_LEDs.lst -I../../RP6Lib -I../../RP6Lib/RP6base -I../../RP6Lib/RP6common -std=gnu99 -MD -MP -MF .dep/RP6Base_LEDs.o.d RP6Base_LEDs.c -o RP6Base_LEDs.o
    In file included from ../../RP6Lib/RP6base/RP6RobotBaseLib.h:30,
                     from RP6Base_LEDs.c:33:
    ../../RP6Lib/RP6base/RP6RobotBase.h:52:46: error: avr/io.h: No such file or directory
    ../../RP6Lib/RP6base/RP6RobotBase.h:53:67: error: avr/interrupt.h: No such file or directory
    In file included from ../../RP6Lib/RP6base/RP6RobotBaseLib.h:33,
                     from RP6Base_LEDs.c:33:
    ../../RP6Lib/RP6common/RP6uart.h:29:75: error: avr/pgmspace.h: No such file or directory
    ../../RP6Lib/RP6common/RP6uart.h:30:61: error: stdlib.h: No such file or directory
    ../../RP6Lib/RP6common/RP6uart.h:31:20: error: string.h: No such file or directory
    In file included from ../../RP6Lib/RP6base/RP6RobotBaseLib.h:33,
                     from RP6Base_LEDs.c:33:
    ../../RP6Lib/RP6common/RP6uart.h:42: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
    ../../RP6Lib/RP6common/RP6uart.h:42: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
    ../../RP6Lib/RP6common/RP6uart.h:51: error: expected ‘)’ before ‘number’
    ../../RP6Lib/RP6common/RP6uart.h:52: error: expected ‘)’ before ‘number’
    ../../RP6Lib/RP6common/RP6uart.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uart_status’
    ../../RP6Lib/RP6common/RP6uart.h:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘readChars’
    ../../RP6Lib/RP6common/RP6uart.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘getBufferLength’
    In file included from RP6Base_LEDs.c:33:
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:35:50: error: avr/sleep.h: No such file or directory
    In file included from RP6Base_LEDs.c:33:
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:56: error: expected specifier-qualifier-list before ‘uint8_t’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:75: error: expected ‘)’ before ‘leds’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘getBumperLeft’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:86: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘getBumperRight’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bumper_left’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:88: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bumper_right’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adc_conversion_complete’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adc_result’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adcBat’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adcMotorCurrentLeft’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adcMotorCurrentRight’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adcLSL’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:104: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adcLSR’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adc0’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:106: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adc1’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘readADC’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:109: error: expected ‘)’ before ‘channel’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:117: error: expected specifier-qualifier-list before ‘uint8_t’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:126: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mleft_dir’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mright_dir’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mleft_power’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mright_power’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:139: error: expected ‘)’ before ‘left_dir’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:149: error: expected ‘)’ before ‘left_power’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:159: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mleft_speed’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:160: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mright_speed’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:166: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mleft_dist’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:167: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mright_dist’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:173: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mleft_des_speed’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:174: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mright_des_speed’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:185: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘drive_dir’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:187: error: expected ‘)’ before ‘dir’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:192: error: expected ‘)’ before ‘desired_speed’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:193: error: expected ‘)’ before ‘desired_speed’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:195: error: expected ‘)’ before ‘desired_speed_left’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘isMovementComplete’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:210: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘obstacle_left’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:211: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘obstacle_right’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:236: error: expected specifier-qualifier-list before ‘uint16_t’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:245: error: expected ‘)’ before ‘adr’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:264: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘watches’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:326: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘timer’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:333: error: expected ‘)’ before ‘time’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:334: error: expected ‘)’ before ‘time’
    ../../RP6Lib/RP6base/RP6RobotBaseLib.h:335: error: expected ‘)’ before ‘dly’
    RP6Base_LEDs.c: In function ‘main’:
    RP6Base_LEDs.c:47: warning: implicit declaration of function ‘PSTR’
    RP6Base_LEDs.c:47: warning: passing argument 1 of ‘writeNStringP’ makes pointer from integer without a cast
    RP6Base_LEDs.c:48: warning: passing argument 1 of ‘writeNStringP’ makes pointer from integer without a cast
    RP6Base_LEDs.c:49: warning: passing argument 1 of ‘writeNStringP’ makes pointer from integer without a cast
    RP6Base_LEDs.c:58: warning: passing argument 1 of ‘writeNStringP’ makes pointer from integer without a cast
    RP6Base_LEDs.c:59: warning: passing argument 1 of ‘writeNStringP’ makes pointer from integer without a cast
    RP6Base_LEDs.c:63: warning: implicit declaration of function ‘setLEDs’
    RP6Base_LEDs.c:75: warning: implicit declaration of function ‘mSleep’
    RP6Base_LEDs.c:82: error: ‘uint8_t’ undeclared (first use in this function)
    RP6Base_LEDs.c:82: error: (Each undeclared identifier is reported only once
    RP6Base_LEDs.c:82: error: for each function it appears in.)
    RP6Base_LEDs.c:82: error: expected ‘;’ before ‘runningLight’
    RP6Base_LEDs.c:94: error: ‘runningLight’ undeclared (first use in this function)
    make: *** [RP6Base_LEDs.o] Fehler 1
    bin da grad etwas ratlos oder habe ich nur irgendetwas vergessen ( muss ja zugeben habe längere zeit nichts mehr mit dem RP6 gemacht..)

    mfg Axel

  2. #2
    Benutzer Stammmitglied
    Registriert seit
    17.12.2007
    Beiträge
    74
    ok mein Fehler... war wieder mal zu eilig! Habe einfach nicht die avr-libc installiert... ist mir grad im Linux Thread aufgefallen das man die braucht^^

    mfg Axel

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •