Hi,
I've tried to build lastest HEAD of openpcd and building are failing on unkown
uint8_t/16_t/32_t types ( on GCC 4.8.4) .
Makefile/Makefile.dfu ggives the same errors. I've already tried to build
this on debian 7.11 - gcc 4.5.2, and debian jessie 8.7 / gcc 4.8.4 ( arm-none-eabi) and it
seems same .
Reverting commit 373c172ab858102e1818c8476ab1a2b290685cda fixes problem .
[..] GCC 4.5.2
-------- begin (mode: RUN_FROM_ROM) --------
arm-elf-gcc (GCC) 4.5.2
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.
scripts/mkcompile_h > include/compile.h
Compiling C (ARM-only): src/start/Cstartup_SAM7.c
arm-elf-gcc -c -mcpu=arm7tdmi -I. -gdwarf-2 -DBOARD=SIMTRACE -DRUN_FROM_ROM
-D__MS_types__ -D__LIBRFID__ -DSIMTRACE -D__AT91SAM7S128__ -Isrc/simtrace -Iinclude -Isrc
-Os -Wall -Wextra -Wcast-align -Wimplicit -Wunused -Wpointer-arith -Wswitch
-Wredundant-decls -Wreturn-type -Wshadow -Wbad-function-cast -Wsign-compare
-Waggregate-return -Wa,-adhlns=src/start/Cstartup_SAM7.lst -MD -MP -MF
.dep/Cstartup_SAM7.o.d -Wnested-externs -std=gnu99 src/start/Cstartup_SAM7.c -o
src/start/Cstartup_SAM7.o
Compiling C (ARM-only): lib/lib_AT91SAM7.c
arm-elf-gcc -c -mcpu=arm7tdmi -I. -gdwarf-2 -DBOARD=SIMTRACE -DRUN_FROM_ROM
-D__MS_types__ -D__LIBRFID__ -DSIMTRACE -D__AT91SAM7S128__ -Isrc/simtrace -Iinclude -Isrc
-Os -Wall -Wextra -Wcast-align -Wimplicit -Wunused -Wpointer-arith -Wswitch
-Wredundant-decls -Wreturn-type -Wshadow -Wbad-function-cast -Wsign-compare
-Waggregate-return -Wa,-adhlns=lib/lib_AT91SAM7.lst -MD -MP -MF .dep/lib_AT91SAM7.o.d
-Wnested-externs -std=gnu99 lib/lib_AT91SAM7.c -o lib/lib_AT91SAM7.o
Compiling C (ARM-only): src/dfu/dfu.c
arm-elf-gcc -c -mcpu=arm7tdmi -I. -gdwarf-2 -DBOARD=SIMTRACE -DRUN_FROM_ROM
-D__MS_types__ -D__LIBRFID__ -DSIMTRACE -D__AT91SAM7S128__ -Isrc/simtrace -Iinclude -Isrc
-Os -Wall -Wextra -Wcast-align -Wimplicit -Wunused -Wpointer-arith -Wswitch
-Wredundant-decls -Wreturn-type -Wshadow -Wbad-function-cast -Wsign-compare
-Waggregate-return -Wa,-adhlns=src/dfu/dfu.lst -MD -MP -MF .dep/dfu.o.d
-Wnested-externs -std=gnu99 src/dfu/dfu.c -o src/dfu/dfu.o
In file included from src/dfu/dfu.c:24:0:
include/usb_ch9.h:122:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:172:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:181:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:234:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:257:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:271:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:289:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:320:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:337:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:351:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:363:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:381:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:394:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:406:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:423:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:434:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:442:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:473:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:495:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_ch9.h:511:2: error: expected specifier-qualifier-list before ‘uint8_t’
In file included from src/dfu/dfu.c:25:0:
include/usb_dfu.h:18:2: error: expected specifier-qualifier-list before ‘uint8_t’
include/usb_dfu.h:44:2: error: expected specifier-qualifier-list before ‘uint8_t’
In file included from src/dfu/dfu.c:29:0:
src/simtrace/usb_strings_dfu.h:11:2: error: expected specifier-qualifier-list before
‘uint16_t’
src/simtrace/usb_strings_dfu.h:14:3: error: unknown field ‘bLength’ specified in
initializer
src/simtrace/usb_strings_dfu.h:14:64: error: ‘uint16_t’ undeclared here (not in a
function)
[..]
[..] GCC 4.8.4
-------- begin (mode: RUN_FROM_ROM) --------
arm-elf-gcc (4.8.4-1+11-1) 4.8.4 20141219 (release)
Copyright (C) 2013 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.
scripts/mkcompile_h > include/compile.h
gcc scripts/usbstring.c -o scripts/usbstring
cat src/picc/usb_strings_dfu.txt | ./scripts/usbstring > src/picc/usb_strings_dfu.h
cat src/pcd/usb_strings_dfu.txt | ./scripts/usbstring > src/pcd/usb_strings_dfu.h
cat src/simtrace/usb_strings_dfu.txt | ./scripts/usbstring >
src/simtrace/usb_strings_dfu.h
Compiling C (ARM-only): src/start/Cstartup_SAM7.c
arm-elf-gcc -c -mcpu=arm7tdmi -I. -gdwarf-2 -DBOARD=SIMTRACE -DRUN_FROM_ROM
-D__MS_types__ -D__LIBRFID__ -DSIMTRACE -D__AT91SAM7S128__ -Isrc/simtrace -Iinclude -Isrc
-Os -Wall -Wextra -Wcast-align -Wimplicit -Wunused -Wpointer-arith -Wswitch
-Wredundant-decls -Wreturn-type -Wshadow -Wbad-function-cast -Wsign-compare
-Waggregate-return -Wa,-adhlns=src/start/Cstartup_SAM7.lst -MD -MP -MF
.dep/Cstartup_SAM7.o.d -Wnested-externs -std=gnu99 src/start/Cstartup_SAM7.c -o
src/start/Cstartup_SAM7.o
Compiling C (ARM-only): lib/lib_AT91SAM7.c
arm-elf-gcc -c -mcpu=arm7tdmi -I. -gdwarf-2 -DBOARD=SIMTRACE -DRUN_FROM_ROM
-D__MS_types__ -D__LIBRFID__ -DSIMTRACE -D__AT91SAM7S128__ -Isrc/simtrace -Iinclude -Isrc
-Os -Wall -Wextra -Wcast-align -Wimplicit -Wunused -Wpointer-arith -Wswitch
-Wredundant-decls -Wreturn-type -Wshadow -Wbad-function-cast -Wsign-compare
-Waggregate-return -Wa,-adhlns=lib/lib_AT91SAM7.lst -MD -MP -MF .dep/lib_AT91SAM7.o.d
-Wnested-externs -std=gnu99 lib/lib_AT91SAM7.c -o lib/lib_AT91SAM7.o
Compiling C (ARM-only): src/dfu/dfu.c
arm-elf-gcc -c -mcpu=arm7tdmi -I. -gdwarf-2 -DBOARD=SIMTRACE -DRUN_FROM_ROM
-D__MS_types__ -D__LIBRFID__ -DSIMTRACE -D__AT91SAM7S128__ -Isrc/simtrace -Iinclude -Isrc
-Os -Wall -Wextra -Wcast-align -Wimplicit -Wunused -Wpointer-arith -Wswitch
-Wredundant-decls -Wreturn-type -Wshadow -Wbad-function-cast -Wsign-compare
-Waggregate-return -Wa,-adhlns=src/dfu/dfu.lst -MD -MP -MF .dep/dfu.o.d
-Wnested-externs -std=gnu99 src/dfu/dfu.c -o src/dfu/dfu.o
In file included from src/dfu/dfu.c:24:0:
include/usb_ch9.h:122:2: error: unknown type name 'uint8_t'
uint8_t bRequestType;
^
include/usb_ch9.h:123:2: error: unknown type name 'uint8_t'
uint8_t bRequest;
^
include/usb_ch9.h:124:2: error: unknown type name 'uint16_t'
uint16_t wValue;
^
include/usb_ch9.h:125:2: error: unknown type name 'uint16_t'
uint16_t wIndex;
^
include/usb_ch9.h:126:2: error: unknown type name 'uint16_t'
uint16_t wLength;
^
include/usb_ch9.h:172:2: error: unknown type name 'uint8_t'
uint8_t bLength;
^
include/usb_ch9.h:173:2: error: unknown type name 'uint8_t'
uint8_t bDescriptorType;
^
include/usb_ch9.h:181:2: error: unknown type name 'uint8_t'
uint8_t bLength;
^
include/usb_ch9.h:182:2: error: unknown type name 'uint8_t'
uint8_t bDescriptorType;
^
include/usb_ch9.h:184:2: error: unknown type name 'uint16_t'
uint16_t bcdUSB;
^
include/usb_ch9.h:185:2: error: unknown type name 'uint8_t'
uint8_t bDeviceClass;
^
include/usb_ch9.h:186:2: error: unknown type name 'uint8_t'
uint8_t bDeviceSubClass;
^
include/usb_ch9.h:187:2: error: unknown type name 'uint8_t'
uint8_t bDeviceProtocol;
^
include/usb_ch9.h:188:2: error: unknown type name 'uint8_t'
uint8_t bMaxPacketSize0;
^
include/usb_ch9.h:189:2: error: unknown type name 'uint16_t'
uint16_t idVendor;
^
include/usb_ch9.h:190:2: error: unknown type name 'uint16_t'
uint16_t idProduct;
^
include/usb_ch9.h:191:2: error: unknown type name 'uint16_t'
uint16_t bcdDevice;
^
include/usb_ch9.h:192:2: error: unknown type name 'uint8_t'
uint8_t iManufacturer;
^
include/usb_ch9.h:193:2: error: unknown type name 'uint8_t'
uint8_t iProduct;
^
include/usb_ch9.h:194:2: error: unknown type name 'uint8_t'
uint8_t iSerialNumber;
^
include/usb_ch9.h:195:2: error: unknown type name 'uint8_t'
uint8_t bNumConfigurations;
^
include/usb_ch9.h:234:2: error: unknown type name 'uint8_t'
uint8_t bLength;
^
include/usb_ch9.h:235:2: error: unknown type name 'uint8_t'
uint8_t bDescriptorType;
^
include/usb_ch9.h:237:2: error: unknown type name 'uint16_t'
uint16_t wTotalLength;
^
include/usb_ch9.h:238:2: error: unknown type name 'uint8_t'
uint8_t bNumInterfaces;
^
include/usb_ch9.h:239:2: error: unknown type name 'uint8_t'
uint8_t bConfigurationValue;
^
include/usb_ch9.h:240:2: error: unknown type name 'uint8_t'
uint8_t iConfiguration;
^
include/usb_ch9.h:241:2: error: unknown type name 'uint8_t'
uint8_t bmAttributes;
^
include/usb_ch9.h:242:2: error: unknown type name 'uint8_t'
uint8_t bMaxPower;
^
include/usb_ch9.h:257:2: error: unknown type name 'uint8_t'
uint8_t bLength;
^
include/usb_ch9.h:258:2: error: unknown type name 'uint8_t'
uint8_t bDescriptorType;
^
include/usb_ch9.h:260:2: error: unknown type name 'uint16_t'
uint16_t wData[0]; /* UTF-16LE encoded */
^
include/usb_ch9.h:271:2: error: unknown type name 'uint8_t'
uint8_t bLength;
^
include/usb_ch9.h:272:2: error: unknown type name 'uint8_t'
uint8_t bDescriptorType;
^
include/usb_ch9.h:274:2: error: unknown type name 'uint8_t'
uint8_t bInterfaceNumber;
^
include/usb_ch9.h:275:2: error: unknown type name 'uint8_t'
uint8_t bAlternateSetting;
^
include/usb_ch9.h:276:2: error: unknown type name 'uint8_t'
uint8_t bNumEndpoints;
^
include/usb_ch9.h:277:2: error: unknown type name 'uint8_t'
uint8_t bInterfaceClass;
^
include/usb_ch9.h:278:2: error: unknown type name 'uint8_t'
uint8_t bInterfaceSubClass;
^
include/usb_ch9.h:279:2: error: unknown type name 'uint8_t'
uint8_t bInterfaceProtocol;
^
include/usb_ch9.h:280:2: error: unknown type name 'uint8_t'
uint8_t iInterface;
^
include/usb_ch9.h:289:2: error: unknown type name 'uint8_t'
uint8_t bLength;
^
include/usb_ch9.h:290:2: error: unknown type name 'uint8_t'
uint8_t bDescriptorType;
^
include/usb_ch9.h:292:2: error: unknown type name 'uint8_t'
uint8_t bEndpointAddress;
^
include/usb_ch9.h:293:2: error: unknown type name 'uint8_t'
uint8_t bmAttributes;
^
include/usb_ch9.h:294:2: error: unknown type name 'uint16_t'
uint16_t wMaxPacketSize;
^
include/usb_ch9.h:295:2: error: unknown type name 'uint8_t'
uint8_t bInterval;
^
include/usb_ch9.h:320:2: error: unknown type name 'uint8_t'
uint8_t bLength;
^
include/usb_ch9.h:321:2: error: unknown type name 'uint8_t'
uint8_t bDescriptorType;
^
include/usb_ch9.h:323:2: error: unknown type name 'uint16_t'
uint16_t bcdUSB;
^
include/usb_ch9.h:324:2: error: unknown type name 'uint8_t'
uint8_t bDeviceClass;
^
include/usb_ch9.h:325:2: error: unknown type name 'uint8_t'
uint8_t bDeviceSubClass;
^
include/usb_ch9.h:326:2: error: unknown type name 'uint8_t'
uint8_t bDeviceProtocol;
^
include/usb_ch9.h:327:2: error: unknown type name 'uint8_t'
uint8_t bMaxPacketSize0;
^
include/usb_ch9.h:328:2: error: unknown type name 'uint8_t'
uint8_t bNumConfigurations;
^
include/usb_ch9.h:329:2: error: unknown type name 'uint8_t'
uint8_t bRESERVED;
^
include/usb_ch9.h:337:2: error: unknown type name 'uint8_t'
/pch
--
Piotr Chytla <pch(a)packetconsulting.pl>
Show replies by date