[MontelLUG] Errore compilazione gcc arm

Samuele samuele.zanin a tiscali.it
Mar 16 Feb 2016 19:01:34 CET


Sto tentando di installarmi il compilatore offline al pusto di quello 
online per la piattaforma mbed.

Quanto tento di compilare ho il seguente errore:
/usr/lib/gcc/arm-none-eabi/4.8.2/include/stdint.h:9:26: fatal error: 
stdint.h: No such file or directory
  # include_next <stdint.h>

Il file in questione contiene:


#ifndef _GCC_WRAP_STDINT_H
#if __STDC_HOSTED__
# if defined __cplusplus && __cplusplus >= 201103L
#  undef __STDC_LIMIT_MACROS
#  define __STDC_LIMIT_MACROS
#  undef __STDC_CONSTANT_MACROS
#  define __STDC_CONSTANT_MACROS
# endif
# include_next <stdint.h>
#else
# include "stdint-gcc.h"
#endif
#define _GCC_WRAP_STDINT_H
#endif


Ho provato ad installare varie librerire legate al gcc/arm, senza risultato.
La macchina è una mint 17.3 di fresca installazione.

Il compilatore online mi ha generato uno zip con tutti i 
file/configurazione necessari per compilare con gcc.
In teoria bastava scompattarlo e lanciare il make.

Sotto l'output del make:

  make
arm-none-eabi-gcc  -mcpu=cortex-m3 -mthumb  -c -g -fno-common 
-fmessage-length=0 -Wall -Wextra -fno-exceptions -ffunction-sections 
-fdata-sections -fomit-frame-pointer -MMD -MP -DNDEBUG -Os 
-DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -DARM_MATH_CM3 -DTARGET_CORTEX_M 
-DTARGET_LPC176X -DTARGET_NXP -DTARGET_MBED_LPC1768 -DTARGET_LPC1768 
-D__CORTEX_M3 -DTARGET_M3 -DMBED_BUILD_TIMESTAMP=1455552165.38 
-D__MBED__=1  -std=gnu99   -I. -I./header -I./__lib -I./__lib/ConfigFile 
-I./__lib/DebounceIn -I./__lib/EthernetInterface 
-I./__lib/EthernetInterface/Socket -I./__lib/EthernetInterface/lwip 
-I./__lib/EthernetInterface/lwip/netif 
-I./__lib/EthernetInterface/lwip/netif/ppp 
-I./__lib/EthernetInterface/lwip/include 
-I./__lib/EthernetInterface/lwip/include/netif 
-I./__lib/EthernetInterface/lwip/include/lwip 
-I./__lib/EthernetInterface/lwip/include/ipv4 
-I./__lib/EthernetInterface/lwip/include/ipv4/lwip 
-I./__lib/EthernetInterface/lwip/api 
-I./__lib/EthernetInterface/lwip/core 
-I./__lib/EthernetInterface/lwip/core/snmp 
-I./__lib/EthernetInterface/lwip/core/ipv4 
-I./__lib/EthernetInterface/lwip-sys 
-I./__lib/EthernetInterface/lwip-sys/arch 
-I./__lib/EthernetInterface/lwip-eth 
-I./__lib/EthernetInterface/lwip-eth/arch 
-I./__lib/EthernetInterface/lwip-eth/arch/TARGET_NXP -I./__lib/mbed-rtos 
-I./__lib/mbed-rtos/rtx -I./__lib/mbed-rtos/rtx/TARGET_CORTEX_M 
-I./__lib/mbed-rtos/rtx/TARGET_CORTEX_M/TARGET_M3 
-I./__lib/mbed-rtos/rtx/TARGET_CORTEX_M/TARGET_M3/TOOLCHAIN_GCC 
-I./__lib/mbed-rtos/rtos -I./__lib/Watchdog -I./__lib/CRC-C -I./source 
-I./mbed -I./mbed/TARGET_LPC1768 -I./mbed/TARGET_LPC1768/TARGET_NXP 
-I./mbed/TARGET_LPC1768/TARGET_NXP/TARGET_LPC176X 
-I./mbed/TARGET_LPC1768/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 
-I./mbed/TARGET_LPC1768/TOOLCHAIN_GCC_ARM  -o 
__lib/EthernetInterface/lwip/netif/slipif.o 
__lib/EthernetInterface/lwip/netif/slipif.c
In file included from 
./__lib/mbed-rtos/rtx/TARGET_CORTEX_M/cmsis_os.h:144:0,
                  from ./__lib/EthernetInterface/lwip/lwipopts.h:28,
                  from ./__lib/EthernetInterface/lwip/include/lwip/opt.h:45,
                  from 
./__lib/EthernetInterface/lwip/include/lwip/netif.h:35,
                  from 
./__lib/EthernetInterface/lwip/include/netif/slipif.h:37,
                  from __lib/EthernetInterface/lwip/netif/slipif.c:45:
/usr/lib/gcc/arm-none-eabi/4.8.2/include/stdint.h:9:26: fatal error: 
stdint.h: No such file or directory
  # include_next <stdint.h>
                           ^
compilation terminated.





Maggiori informazioni sulla lista montellug