arduino / ArduinoCore-avr

The Official Arduino AVR core
https://www.arduino.cc
1.24k stars 1.05k forks source link

arduino-usbserial: conflicting CALLBACK_USB_GetDescriptor [imported] #209

Open cmaglie opened 12 years ago

cmaglie commented 12 years ago

This is Issue 886 moved from a Google Code project. Added by 2012-04-13T20:49:25.000Z by hans.sc...@gmail.com. Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

What steps will reproduce the problem?

  1. Install LUFA101122
  2. cd hardware/arduino/firmwares/arduino-usbserial
  3. make

What is the expected output?

A file: Arduino-usbserial-mega.hex

What do you see instead?

avr-gcc (GCC) 4.5.3 Copyright (C) 2010 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 C: Arduino-usbserial.c avr-gcc -c -mmcu=atmega8u2 -I. -gdwarf-2 -DF_CPU=16000000UL -DF_CLOCK=16000000UL -DARDUINO_MODEL_PID=0x0001 -DBOARD=BOARD_USER -D USB_DEVICE_ONLY -D FIXED_CONTROL_ENDPOINT_SIZE=8 -D FIXED_NUM_CONFIGURATIONS=1 -D USE_FLASH_DESCRIPTORS -D INTERRUPT_CONTROL_ENDPOINT -D DEVICE_STATE_AS_GPIOR=0 -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -DAVR_RESET_LINE_PORT="PORTD" -DAVR_RESET_LINE_DDR="DDRD" -DAVR_RESET_LINE_MASK="(1 << 7)" -DTX_RX_LED_PULSE_MS=3 -DPING_PONG_LED_PULSE_MS=100 -Os -funsigned-char -funsigned-bitfields -ffunction-sections -fno-inline-small-functions -fpack-struct -fshort-enums -fno-strict-aliasing -Wall -Wstrict-prototypes -Wa,-adhlns=./Arduino-usbserial.lst -I../../ -std=gnu99 -Wundef -MMD -MP -MF .dep/Arduino-usbserial.o.d Arduino-usbserial.c -o Arduino-usbserial.o In file included from Arduino-usbserial.h:45:0, from Arduino-usbserial.c:37: Descriptors.h:84:12: error: conflicting types for 'CALLBACK_USB_GetDescriptor' ./LUFA/Drivers/USB/HighLevel/../LowLevel/Device.h:205:13: note: previous declaration of 'CALLBACK_USB_GetDescriptor' was here In file included from Arduino-usbserial.h:50:0, from Arduino-usbserial.c:37: ./LUFA/Drivers/Board/LEDs.h:120:18: warning: "BOARD_USBFOO" is not defined make: *\ [Arduino-usbserial.o] Error 1

What version of the Arduino software are you using? On what operating system? Which Arduino board are you using?

Version: git://github.com/arduino/Arduino.git

Linux, Ubuntu

Please provide any additional information below.

I have tried to compile with LUFA-120219 but it gave even more errors.

NicoHood commented 8 years ago

You (sadly) need to compile with a very old winavr version.

There is a newer version here: https://github.com/arduino/Arduino/pull/4482#issuecomment-175033901

Or simply use the generic lufa examples/bootloaders.