Jump to content

stm32f4 compiling errors > USB (ubuntu 14)


Phatline
 Share

Recommended Posts

by compiling this code: note2light-withoutDMX.zip

 

i got errors see below...

 

make (im Verzeichnis: /home/tekkstar/c/note2light)
rm -f project.hex
Creating object file for app.c
app.c:21:1: warning: 'bitband' attribute directive ignored [-Wattributes]
 } __attribute__((bitband)) my_struct;
 ^
Creating object file for main.c
Creating object file for strtol.c
Creating object file for tasks.c
Creating object file for list.c
Creating object file for queue.c
Creating object file for timers.c
Creating object file for port.c
Creating object file for umm_malloc.c
Creating object file for startup_stm32f4xx.c
Creating object file for mios32_srio.c
Creating object file for mios32_din.c
Creating object file for mios32_dout.c
Creating object file for mios32_enc.c
Creating object file for mios32_lcd.c
Creating object file for mios32_midi.c
Creating object file for mios32_osc.c
Creating object file for mios32_com.c
Creating object file for mios32_uart_midi.c
Creating object file for mios32_spi_midi.c
Creating object file for mios32_iic_midi.c
Creating object file for mios32_iic_bs.c
Creating object file for mios32_mf.c
Creating object file for mios32_sdcard.c
Creating object file for mios32_enc28j60.c
Creating object file for mios32_timestamp.c
Creating object file for mios32_bsl.c
Creating object file for mios32_sys.c
Creating object file for mios32_irq.c
Creating object file for mios32_spi.c
Creating object file for mios32_i2s.c
Creating object file for mios32_board.c
Creating object file for mios32_timer.c
Creating object file for mios32_stopwatch.c
Creating object file for mios32_delay.c
Creating object file for mios32_ain.c
Creating object file for mios32_usb.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/mios32_usb.c:30:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/mios32_usb.c:25:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for mios32_usb_midi.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33:0,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/mios32_usb_midi.c:27:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/mios32_usb_midi.c:22:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for mios32_usb_com.c
Creating object file for mios32_uart.c
Creating object file for mios32_iic.c
Creating object file for printf-stdarg.c
Creating object file for misc.c
Creating object file for stm32f4xx_adc.c
Creating object file for stm32f4xx_can.c
Creating object file for stm32f4xx_crc.c
Creating object file for stm32f4xx_cryp.c
Creating object file for stm32f4xx_cryp_aes.c
Creating object file for stm32f4xx_cryp_des.c
Creating object file for stm32f4xx_cryp_tdes.c
Creating object file for stm32f4xx_dac.c
Creating object file for stm32f4xx_dbgmcu.c
Creating object file for stm32f4xx_dcmi.c
Creating object file for stm32f4xx_dma.c
Creating object file for stm32f4xx_exti.c
Creating object file for stm32f4xx_flash.c
Creating object file for stm32f4xx_fsmc.c
Creating object file for stm32f4xx_gpio.c
Creating object file for stm32f4xx_hash.c
Creating object file for stm32f4xx_hash_md5.c
Creating object file for stm32f4xx_hash_sha1.c
Creating object file for stm32f4xx_i2c.c
Creating object file for stm32f4xx_iwdg.c
Creating object file for stm32f4xx_pwr.c
Creating object file for stm32f4xx_rcc.c
Creating object file for stm32f4xx_rng.c
Creating object file for stm32f4xx_rtc.c
Creating object file for stm32f4xx_sdio.c
Creating object file for stm32f4xx_spi.c
Creating object file for stm32f4xx_syscfg.c
Creating object file for stm32f4xx_tim.c
Creating object file for stm32f4xx_usart.c
Creating object file for stm32f4xx_wwdg.c
Creating object file for usbd_core.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_core.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_core.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for usbd_ioreq.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/inc/usbd_ioreq.h:35,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_ioreq.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/inc/usbd_ioreq.h:35,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_ioreq.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for usbd_req.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/inc/usbd_req.h:35,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_req.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/inc/usbd_req.h:35,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_req.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
/home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_req.c: In function 'USBD_GetString':
/home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_req.c:845:18: warning: comparison between pointer and integer [enabled by default]
     while (*desc != NULL)
                  ^
/home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_req.c: In function 'USBD_GetLen':
/home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_req.c:863:17: warning: comparison between pointer and integer [enabled by default]
     while (*buf != NULL)
                 ^
Creating object file for usbh_core.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/inc/usbh_ioreq.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/src/usbh_core.c:30:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/inc/usbh_ioreq.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/src/usbh_core.c:30:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for usbh_hcs.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_regs.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_hcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/inc/usbh_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/inc/usbh_hcs.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/src/usbh_hcs.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_regs.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_hcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/inc/usbh_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/inc/usbh_hcs.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/src/usbh_hcs.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for usbh_ioreq.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/inc/usbh_ioreq.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/src/usbh_ioreq.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/inc/usbh_ioreq.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/src/usbh_ioreq.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for usbh_stdreq.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/inc/usbh_ioreq.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/src/usbh_stdreq.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/inc/usbh_ioreq.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_HOST_Library/Core/src/usbh_stdreq.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for usb_core.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_core.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_core.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for usb_dcd.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_dcd.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_dcd.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for usb_dcd_int.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd_int.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_dcd_int.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_dcd_int.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_dcd_int.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for usb_hcd.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_hcd.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_hcd.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for usb_hcd_int.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_hcd_int.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_core.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_hcd_int.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for usb_otg.c
In file included from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_defines.h:33:0,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_otg.c:29:
/home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:176:0: warning: "__packed" redefined [enabled by default]
   #define __packed    __attribute__ ((__packed__))
 ^
In file included from /usr/include/newlib/stdio.h:35:0,
                 from /home/tekkstar/mios32/trunk/include/mios32/mios32.h:57,
                 from /home/tekkstar/mios32/trunk/mios32/STM32F4xx/usb_conf.h:29,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/inc/usb_defines.h:33,
                 from /home/tekkstar/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_OTG_Driver/src/usb_otg.c:29:
/usr/include/newlib/sys/cdefs.h:250:0: note: this is the location of the previous definition
 #define __packed __attribute__((__packed__))
 ^
Creating object file for app_lcd.c
Creating object file for glcd_font_normal.c
Creating object file for glcd_font_normal_inv.c
Creating object file for glcd_font_big.c
Creating object file for glcd_font_small.c
Creating object file for glcd_font_tiny.c
Creating object file for glcd_font_knob_icons.c
Creating object file for glcd_font_meter_icons_h.c
Creating object file for glcd_font_meter_icons_v.c
Creating object file for diskio.c
Creating object file for ccsbcs.c
Creating object file for ff.c
Creating object file for file.c
Creating object file for mini_cpp.cpp
Creating object file for freertos_heap.cpp
-------------------------------------------------------------------------------
Application successfully built for:
Processor: STM32F407VG
Family:    STM32F4xx
Board:     MBHP_CORE_STM32F4
LCD:       universal
-------------------------------------------------------------------------------
arm-none-eabi-size project_build/project.elf
   text       data        bss        dec        hex    filename
  71794        248      17144      89186      15c62    project_build/project.elf
Kompilierung erfolgreich beendet.
20000000 D __ram_start
200043f0 B __ram_end

 

Edited by Phatline
Link to comment
Share on other sites

It wouldn't surprise me if you are getting warnings when you are using a different gcc version.

Even more dangerous are the hidden differences which are only visible by running the code and could result into a lot of trouble!

 

Therefore I strongly recommend you to use the official MIOS32 toolchain which is located under: http://midibox.org/mios32_toolchain/

All other versions are unreliable.

 

Best Regards, Thorsten.

Link to comment
Share on other sites

hallo thorsten - thx for looking in

 

where did you identify my gcc version?

 

Anyway i did it, downloaded the toolchain copied the files, proved the envirnoment variables... > exactly the same warnings.

 

bevore i used the lpc17.... i only changed now to STM32F4 for a other project... my environment variables now are, maybe copyied a false syntax for family processor and board, which was a result from a forum search...:

 

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/tekkstar/mios32_toolchain/arm-none-eabi/bin"
MIOS32_PATH=/home/tekkstar/mios32/trunk
MIOS32_BIN_PATH=/home/tekkstar/mios32/trunk/bin
MIOS32_GCC_PREFIX=arm-none-eabi
MIOS32_FAMILY=STM32F4xx
MIOS32_PROCESSOR=STM32F407VG
MIOS32_BOARD=MBHP_CORE_STM32F4
MIOS32_LCD=universal
Link to comment
Share on other sites

It was just an assumption...

I don't know (and I'm too lazy to install Ubuntu14 in order to check your source files there)

 
Let's see if anybody else has an idea what could cause the warnings that seem to worry you.

 

Best Regards, Thorsten.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...