folpindo / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

arduino-usbserial: conflicting CALLBACK_USB_GetDescriptor #886

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by hans.sc...@gmail.com on 13 Apr 2012 at 8:49

GoogleCodeExporter commented 9 years ago
OK, actual case solved. I used: LUFA-100807.zip

I guess there have been a lot of changes in LUFA which breaks the compilation 
of Arduino-usbserial.

Original comment by hans.sc...@gmail.com on 14 Apr 2012 at 7:42