Closed nuertey closed 5 years ago
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-368
I use mbed-cli-1.8.2 and GNU GCC 6 2017-q2-update to build this example project, it works fine.
Have you tried adding "-c" to your command option to issue a clean build?
@desmond-blue , I downgraded my mbed-cli and GNU_GCC versions to the same as yours and retried compiling on a new import repository, but the results are the same. What target did you compile for? The error is probably due to my target triggering the new MPU changes. If you have access to a NUCLEO_F767ZI board or any Cortex 7 board for that matter, can you try compiling for that? Thanks Nuertey
P.S. Here are my new logs below:
~/opt/gcc-arm-none-eabi-6-2017-q2-update/bin$ ./arm-none-eabi-g++ --version
arm-none-eabi-g++ (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437]
Copyright (C) 2016 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.
mbed ls
mbed-os-example-tls-socket (#5856ddc1b00d)
`- mbed-os (#6a0a86538c0b, tags: latest, mbed-os-5.11.0)
mbed-cli --version
1.8.2
mbed compile -m nucleo_f767zi -t GCC_ARM -c
Building project mbed-os-example-tls-socket (NUCLEO_F767ZI, GCC_ARM)
Scan: mbed-os-example-tls-socket
Scan: env
Compile [ 0.1%]: except.S
Compile [ 0.3%]: mbed_tz_context.c
Compile [ 0.4%]: MCR20Drv.c
Compile [ 0.5%]: rf_configuration.c
[Warning] rf_configuration.c@104,25: comparison between signed and unsigned integer expressions [-Wsign-compare]
Compile [ 0.6%]: mbed_fault_handler.c
[Warning] mbed_fault_handler.c@149,5: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
Compile [ 0.8%]: at24mac.cpp
Compile [ 0.9%]: AnalogIn.cpp
Compile [ 1.0%]: main.cpp
[Warning] main.cpp@80,16: comparison between signed and unsigned integer expressions [-Wsign-compare]
Compile [ 1.1%]: BusIn.cpp
Compile [ 1.3%]: BusInOut.cpp
Compile [ 1.4%]: ESP8266.cpp
Compile [ 1.5%]: NanostackRfPhyMcr20a.cpp
Compile [ 1.6%]: ESP8266Interface.cpp
Compile [ 1.8%]: NanostackRfPhyAtmel.cpp
Compile [ 1.9%]: BusOut.cpp
Compile [ 2.0%]: Ethernet.cpp
Compile [ 2.2%]: CAN.cpp
Compile [ 2.3%]: NanostackRfPhys2lp.cpp
Compile [ 2.4%]: I2CSlave.cpp
Compile [ 2.5%]: FlashIAP.cpp
Compile [ 2.7%]: MbedCRC.cpp
Compile [ 2.8%]: I2C.cpp
Compile [ 2.9%]: InterruptIn.cpp
Compile [ 3.0%]: InterruptManager.cpp
Compile [ 3.2%]: TableCRC.cpp
Compile [ 3.3%]: QSPI.cpp
Compile [ 3.4%]: RawSerial.cpp
Compile [ 3.5%]: SPISlave.cpp
Compile [ 3.7%]: Serial.cpp
Compile [ 3.8%]: Timeout.cpp
Compile [ 3.9%]: Ticker.cpp
Compile [ 4.1%]: Timer.cpp
Compile [ 4.2%]: SPI.cpp
Compile [ 4.3%]: equeue_posix.c
Compile [ 4.4%]: TimerEvent.cpp
Compile [ 4.6%]: SerialBase.cpp
Compile [ 4.7%]: equeue.c
Compile [ 4.8%]: EventQueue.cpp
Compile [ 4.9%]: mbed_shared_queues.cpp
Compile [ 5.1%]: equeue_mbed.cpp
Compile [ 5.2%]: AT_CellularBase.cpp
Compile [ 5.3%]: UARTSerial.cpp
Compile [ 5.4%]: AT_CellularInformation.cpp
Compile [ 5.6%]: AT_CellularSIM.cpp
Compile [ 5.7%]: AT_CellularPower.cpp
Compile [ 5.8%]: CellularLog.cpp
Compile [ 5.9%]: AT_CellularDevice.cpp
Compile [ 6.1%]: AT_CellularNetwork.cpp
Compile [ 6.2%]: AT_CellularStack.cpp
Compile [ 6.3%]: CellularUtil.cpp
Compile [ 6.5%]: AT_CellularContext.cpp
Compile [ 6.6%]: ATHandler.cpp
[Warning] ATHandler.cpp@474,16: comparison between signed and unsigned integer expressions [-Wsign-compare]
[Warning] ATHandler.cpp@503,21: comparison between signed and unsigned integer expressions [-Wsign-compare]
Compile [ 6.7%]: CellularContext.cpp
Compile [ 6.8%]: AT_CellularSMS.cpp
Compile [ 7.0%]: GEMALTO_CINTERION_CellularContext.cpp
Compile [ 7.1%]: GEMALTO_CINTERION.cpp
Compile [ 7.2%]: GEMALTO_CINTERION_CellularNetwork.cpp
Compile [ 7.3%]: GEMALTO_CINTERION_Module.cpp
Compile [ 7.5%]: SARA4_PPP.cpp
Compile [ 7.6%]: CellularDevice.cpp
Compile [ 7.7%]: SARA4_PPP_CellularNetwork.cpp
Compile [ 7.8%]: SARA4_PPP_CellularContext.cpp
Compile [ 8.0%]: SARA4_PPP_CellularPower.cpp
Compile [ 8.1%]: GEMALTO_CINTERION_CellularStack.cpp
Compile [ 8.2%]: QUECTEL_BC95.cpp
Compile [ 8.4%]: QUECTEL_BC95_CellularContext.cpp
Compile [ 8.5%]: QUECTEL_BC95_CellularNetwork.cpp
Compile [ 8.6%]: QUECTEL_BC95_CellularPower.cpp
Compile [ 8.7%]: CellularStateMachine.cpp
Compile [ 8.9%]: QUECTEL_BC95_CellularSIM.cpp
Compile [ 9.0%]: QUECTEL_BG96.cpp
Compile [ 9.1%]: QUECTEL_BG96_CellularContext.cpp
Compile [ 9.2%]: QUECTEL_BC95_CellularStack.cpp
Compile [ 9.4%]: QUECTEL_BG96_CellularNetwork.cpp
Compile [ 9.5%]: QUECTEL_BG96_CellularPower.cpp
Compile [ 9.6%]: QUECTEL_BG96_CellularSIM.cpp
Compile [ 9.7%]: QUECTEL_UG96.cpp
Compile [ 9.9%]: QUECTEL_UG96_CellularNetwork.cpp
Compile [ 10.0%]: QUECTEL_UG96_CellularContext.cpp
Compile [ 10.1%]: QUECTEL_UG96_CellularPower.cpp
Compile [ 10.3%]: QUECTEL_BG96_CellularStack.cpp
Compile [ 10.4%]: TELIT_HE910_CellularNetwork.cpp
Compile [ 10.5%]: TELIT_HE910_CellularContext.cpp
Compile [ 10.6%]: TELIT_HE910.cpp
Compile [ 10.8%]: TELIT_HE910_CellularPower.cpp
Compile [ 10.9%]: UBLOX_AT.cpp
Compile [ 11.0%]: UBLOX_AT_CellularNetwork.cpp
Compile [ 11.1%]: UBLOX_AT_CellularPower.cpp
Compile [ 11.3%]: DeviceKey.cpp
Compile [ 11.4%]: UBLOX_PPP.cpp
Compile [ 11.5%]: UBLOX_PPP_CellularContext.cpp
Compile [ 11.6%]: UBLOX_PPP_CellularNetwork.cpp
Compile [ 11.8%]: UBLOX_PPP_CellularPower.cpp
Compile [ 11.9%]: randLIB.c
Compile [ 12.0%]: greentea_metrics.cpp
Compile [ 12.2%]: UBLOX_AT_CellularContext.cpp
Compile [ 12.3%]: sn_coap_header_check.c
Compile [ 12.4%]: UBLOX_AT_CellularStack.cpp
Compile [ 12.5%]: greentea_serial.cpp
Compile [ 12.7%]: ip_fsc.c
Compile [ 12.8%]: sn_coap_builder.c
Compile [ 12.9%]: sn_coap_parser.c
Compile [ 13.0%]: mbed_trace.c
Compile [ 13.2%]: sn_coap_protocol.c
Compile [ 13.3%]: greentea_test_env.cpp
Compile [ 13.4%]: ns_list.c
Compile [ 13.5%]: common_functions.c
Compile [ 13.7%]: ip4tos.c
Compile [ 13.8%]: stoip4.c
Compile [ 13.9%]: ip6tos.c
Compile [ 14.1%]: stoip6.c
Compile [ 14.2%]: ns_nvm_helper.c
Compile [ 14.3%]: nsdynmemLIB.c
Compile [ 14.4%]: ns_cmdline.c
Compile [ 14.6%]: mbed-utest-shim.cpp
Compile [ 14.7%]: unity_handler.cpp
Compile [ 14.8%]: utest_stack_trace.cpp
Compile [ 14.9%]: unity.c
Compile [ 15.1%]: utest_case.cpp
Compile [ 15.2%]: utest_default_handlers.cpp
Compile [ 15.3%]: utest_greentea_handlers.cpp
Compile [ 15.4%]: utest_shim.cpp
Compile [ 15.6%]: utest_types.cpp
Compile [ 15.7%]: utest_harness.cpp
Compile [ 15.8%]: LoRaMacCrypto.cpp
Compile [ 15.9%]: LoRaMacChannelPlan.cpp
Compile [ 16.1%]: LoRaWANInterface.cpp
Compile [ 16.2%]: LoRaMacCommand.cpp
Compile [ 16.3%]: LoRaPHYAS923.cpp
Compile [ 16.5%]: LoRaPHYCN779.cpp
Compile [ 16.6%]: LoRaPHYAU915.cpp
Compile [ 16.7%]: LoRaMac.cpp
Compile [ 16.8%]: LoRaPHYCN470.cpp
Compile [ 17.0%]: LoRaPHYEU433.cpp
Compile [ 17.1%]: LoRaWANStack.cpp
Compile [ 17.2%]: LoRaPHY.cpp
Compile [ 17.3%]: LoRaPHYEU868.cpp
Compile [ 17.5%]: LoRaWANTimer.cpp
Compile [ 17.6%]: lwip_checksum.c
Compile [ 17.7%]: LoRaPHYIN865.cpp
Compile [ 17.8%]: lwip_memcpy.c
Compile [ 18.0%]: LoRaPHYKR920.cpp
Compile [ 18.1%]: LoRaPHYUS915.cpp
Compile [ 18.2%]: LWIPInterfaceEMAC.cpp
Compile [ 18.4%]: LWIPMemoryManager.cpp
Compile [ 18.5%]: lwip_random.c
Compile [ 18.6%]: LWIPInterface.cpp
Compile [ 18.7%]: lwip_sys_arch.c
Compile [ 18.9%]: lwip_err.c
Compile [ 19.0%]: lwip_tcp_isn.c
Compile [ 19.1%]: lwip_netbuf.c
Compile [ 19.2%]: lwip_netdb.c
Compile [ 19.4%]: LWIPStack.cpp
Compile [ 19.5%]: lwip_api_lib.c
Compile [ 19.6%]: lwip_netifapi.c
Compile [ 19.7%]: lwip_sockets.c
Compile [ 19.9%]: lwip_autoip.c
Compile [ 20.0%]: lwip_api_msg.c
Compile [ 20.1%]: lwip_tcpip.c
Compile [ 20.3%]: lwip_icmp.c
Compile [ 20.4%]: lwip_igmp.c
Compile [ 20.5%]: lwip_etharp.c
Compile [ 20.6%]: lwip_dhcp6.c
Compile [ 20.8%]: lwip_ip4.c
Compile [ 20.9%]: lwip_ip4_addr.c
Compile [ 21.0%]: lwip_ethip6.c
Compile [ 21.1%]: lwip_icmp6.c
Compile [ 21.3%]: lwip_ip4_frag.c
Compile [ 21.4%]: lwip_dhcp.c
Compile [ 21.5%]: lwip_inet6.c
Compile [ 21.6%]: lwip_ip6.c
Compile [ 21.8%]: lwip_ip6_addr.c
Compile [ 21.9%]: lwip_mld6.c
Compile [ 22.0%]: lwip_ip6_frag.c
Compile [ 22.2%]: lwip_nd6.c
Compile [ 22.3%]: lwip_dns.c
Compile [ 22.4%]: lwip_def.c
Compile [ 22.5%]: lwip_inet_chksum.c
Compile [ 22.7%]: lwip_init.c
Compile [ 22.8%]: lwip_ip.c
Compile [ 22.9%]: lwip_memp.c
Compile [ 23.0%]: lwip_mem.c
Compile [ 23.2%]: lwip_raw.c
Compile [ 23.3%]: lwip_stats.c
Compile [ 23.4%]: lwip_netif.c
Compile [ 23.5%]: lwip_sys.c
Compile [ 23.7%]: lwip_pbuf.c
Compile [ 23.8%]: lwip_ethernetif.c
Compile [ 23.9%]: lwip_timeouts.c
Compile [ 24.1%]: lwip_ethernet.c
Compile [ 24.2%]: lwip_udp.c
Compile [ 24.3%]: lwip_tcp_out.c
Compile [ 24.4%]: lwip_lowpan6.c
Compile [ 24.6%]: lwip_tcp.c
Compile [ 24.7%]: lwip_auth.c
Compile [ 24.8%]: lwip_ccp.c
Compile [ 24.9%]: lwip_chap-md5.c
Compile [ 25.1%]: lwip_chap-new.c
Compile [ 25.2%]: lwip_tcp_in.c
Compile [ 25.3%]: lwip_chap_ms.c
Compile [ 25.4%]: lwip_demand.c
Compile [ 25.6%]: lwip_eap.c
Compile [ 25.7%]: lwip_ecp.c
Compile [ 25.8%]: lwip_eui64.c
Compile [ 25.9%]: lwip_fsm.c
Compile [ 26.1%]: lwip_ipcp.c
Compile [ 26.2%]: lwip_ipv6cp.c
Compile [ 26.3%]: lwip_lcp.c
Compile [ 26.5%]: lwip_magic.c
Compile [ 26.6%]: lwip_mppe.c
Compile [ 26.7%]: lwip_multilink.c
Compile [ 26.8%]: lwip_ppp.c
Compile [ 27.0%]: lwip_pppapi.c
Compile [ 27.1%]: lwip_pppcrypt.c
Compile [ 27.2%]: lwip_pppoe.c
Compile [ 27.3%]: lwip_pppol2tp.c
Compile [ 27.5%]: lwip_pppos.c
Compile [ 27.6%]: lwip_upap.c
Compile [ 27.7%]: lwip_utils.c
Compile [ 27.8%]: lwip_vj.c
Compile [ 28.0%]: lwip_arc4.c
Compile [ 28.1%]: lwip_des.c
Compile [ 28.2%]: lwip_md5.c
Compile [ 28.4%]: lwip_md4.c
Compile [ 28.5%]: platform_alt.c
Compile [ 28.6%]: lwip_sha1.c
Compile [ 28.7%]: aesni.c
Compile [ 28.9%]: arc4.c
Compile [ 29.0%]: aria.c
Compile [ 29.1%]: mbed_trng.c
Compile [ 29.2%]: blowfish.c
Compile [ 29.4%]: base64.c
Compile [ 29.5%]: asn1parse.c
Compile [ 29.6%]: camellia.c
Compile [ 29.7%]: asn1write.c
Compile [ 29.9%]: certs.c
Compile [ 30.0%]: lwip_tools.cpp
Compile [ 30.1%]: aes.c
Compile [ 30.3%]: ppp_lwip.cpp
Compile [ 30.4%]: ccm.c
Compile [ 30.5%]: chacha20.c
Compile [ 30.6%]: chachapoly.c
Compile [ 30.8%]: cipher_wrap.c
Compile [ 30.9%]: des.c
Compile [ 31.0%]: dhm.c
Compile [ 31.1%]: ecjpake.c
Compile [ 31.3%]: cmac.c
Compile [ 31.4%]: cipher.c
Compile [ 31.5%]: ecdh.c
Compile [ 31.6%]: ctr_drbg.c
Compile [ 31.8%]: debug.c
Compile [ 31.9%]: entropy_poll.c
Compile [ 32.0%]: ecdsa.c
Compile [ 32.2%]: havege.c
Compile [ 32.3%]: entropy.c
Compile [ 32.4%]: hkdf.c
Compile [ 32.5%]: bignum.c
Compile [ 32.7%]: hmac_drbg.c
Compile [ 32.8%]: md2.c
Compile [ 32.9%]: error.c
Compile [ 33.0%]: md.c
Compile [ 33.2%]: ecp_curves.c
Compile [ 33.3%]: gcm.c
Compile [ 33.4%]: net_sockets.c
Compile [ 33.5%]: ecp.c
Compile [ 33.7%]: md4.c
Compile [ 33.8%]: md_wrap.c
Compile [ 33.9%]: md5.c
Compile [ 34.1%]: nist_kw.c
Compile [ 34.2%]: padlock.c
Compile [ 34.3%]: memory_buffer_alloc.c
Compile [ 34.4%]: pkcs11.c
Compile [ 34.6%]: pkcs12.c
Compile [ 34.7%]: pkcs5.c
Compile [ 34.8%]: pem.c
Compile [ 34.9%]: platform_util.c
Compile [ 35.1%]: platform.c
Compile [ 35.2%]: pk.c
Compile [ 35.3%]: oid.c
Compile [ 35.4%]: ripemd160.c
Compile [ 35.6%]: pk_wrap.c
Compile [ 35.7%]: pkwrite.c
Compile [ 35.8%]: pkparse.c
Compile [ 35.9%]: poly1305.c
Compile [ 36.1%]: rsa_internal.c
Compile [ 36.2%]: ssl_cache.c
Compile [ 36.3%]: ssl_ciphersuites.c
Compile [ 36.5%]: sha256.c
Compile [ 36.6%]: ssl_cookie.c
Compile [ 36.7%]: sha1.c
Compile [ 36.8%]: sha512.c
Compile [ 37.0%]: ssl_ticket.c
Compile [ 37.1%]: threading.c
Compile [ 37.2%]: timing.c
Compile [ 37.3%]: version.c
Compile [ 37.5%]: x509_create.c
Compile [ 37.6%]: version_features.c
Compile [ 37.7%]: rsa.c
Compile [ 37.8%]: x509_csr.c
Compile [ 38.0%]: x509write_crt.c
Compile [ 38.1%]: x509write_csr.c
Compile [ 38.2%]: xtea.c
Compile [ 38.4%]: x509_crl.c
Compile [ 38.5%]: aes_alt.c
Compile [ 38.6%]: md5_alt.c
Compile [ 38.7%]: x509.c
Compile [ 38.9%]: sha1_alt.c
Compile [ 39.0%]: sha256_alt.c
Compile [ 39.1%]: hash_wrappers.c
Compile [ 39.2%]: ssl_cli.c
Compile [ 39.4%]: coap_security_handler.c
Compile [ 39.5%]: coap_message_handler.c
Compile [ 39.6%]: coap_service_api.c
Compile [ 39.7%]: x509_crt.c
Compile [ 39.9%]: coap_connection_handler.c
Compile [ 40.0%]: ssl_srv.c
Compile [ 40.1%]: NanostackMemoryManager.cpp
Compile [ 40.3%]: CallbackHandler.cpp
Compile [ 40.4%]: LoWPANNDInterface.cpp
Compile [ 40.5%]: ethernet_tasklet.c
Compile [ 40.6%]: MeshInterfaceNanostack.cpp
Compile [ 40.8%]: NanostackEthernetInterface.cpp
Compile [ 40.9%]: NanostackEMACInterface.cpp
Compile [ 41.0%]: mesh_system.c
Compile [ 41.1%]: nd_tasklet.c
Compile [ 41.3%]: wisun_tasklet.c
[Warning] wisun_tasklet.c@204,5: implicit declaration of function 'ws_management_node_init' [-Wimplicit-function-declaration]
Compile [ 41.4%]: arm_hal_interrupt.c
Compile [ 41.5%]: thread_tasklet.c
Compile [ 41.6%]: arm_hal_random.c
Compile [ 41.8%]: cs_nvm.c
Compile [ 41.9%]: ThreadInterface.cpp
Compile [ 42.0%]: ssl_tls.c
Compile [ 42.2%]: ns_hal_init.c
Compile [ 42.3%]: ns_event_loop_mutex.c
Compile [ 42.4%]: ns_event_loop.c
Compile [ 42.5%]: minar_hal_timer.cpp
Compile [ 42.7%]: nvm_ram.c
Compile [ 42.8%]: WisunInterface.cpp
Compile [ 42.9%]: ns_timeout.c
Compile [ 43.0%]: event.c
Compile [ 43.2%]: ns_timer.c
Compile [ 43.3%]: system_timer.c
Compile [ 43.4%]: ns_event_loop_mbed.cpp
Compile [ 43.5%]: arm_hal_timer.cpp
Compile [ 43.7%]: network_lib.c
Compile [ 43.8%]: protocol_6lowpan_interface.c
Compile [ 43.9%]: 6lowpan_iphc.c
Compile [ 44.1%]: arm_hal_fhss_timer.cpp
Compile [ 44.2%]: protocol_6lowpan.c
Compile [ 44.3%]: cipv6_fragmenter.c
Compile [ 44.4%]: lowpan_context.c
Compile [ 44.6%]: iphc_compress.c
Compile [ 44.7%]: iphc_decompress.c
Compile [ 44.8%]: Nanostack.cpp
Compile [ 44.9%]: beacon_handler.c
Compile [ 45.1%]: mac_ie_lib.c
Compile [ 45.2%]: mac_pairwise_key.c
Compile [ 45.3%]: mac_data_poll.c
Compile [ 45.4%]: nwk_nvm.c
Compile [ 45.6%]: thread_beacon.c
Compile [ 45.7%]: mac_response_handler.c
Compile [ 45.8%]: mac_helper.c
Compile [ 45.9%]: mesh.c
Compile [ 46.1%]: thread_commissioning_if.c
Compile [ 46.2%]: protocol_6lowpan_bootstrap.c
Compile [ 46.3%]: thread_dhcpv6_server.c
Compile [ 46.5%]: thread_bbr_api.c
Compile [ 46.6%]: thread_border_router_api.c
Compile [ 46.7%]: nd_router_object.c
Compile [ 46.8%]: thread_diagnostic.c
Compile [ 47.0%]: thread_commissioning_api.c
Compile [ 47.1%]: thread_lowpower_private_api.c
Compile [ 47.2%]: thread_management_api.c
Compile [ 47.3%]: thread_discovery.c
Compile [ 47.5%]: thread_host_bootstrap.c
Compile [ 47.6%]: thread_management_client.c
Compile [ 47.7%]: thread_common.c
Compile [ 47.8%]: thread_mdns.c
Compile [ 48.0%]: thread_meshcop_lib.c
Compile [ 48.1%]: thread_bootstrap.c
[Warning] thread_extension.h@88,44: statement with no effect [-Wunused-value]
Compile [ 48.2%]: thread_leader_service.c
Compile [ 48.4%]: thread_net_config_api.c
Compile [ 48.5%]: thread_neighbor_class.c
Compile [ 48.6%]: thread_management_if.c
Compile [ 48.7%]: thread_joiner_application.c
Compile [ 48.9%]: thread_nd.c
Compile [ 49.0%]: thread_network_data_lib.c
Compile [ 49.1%]: thread_network_synch.c
Compile [ 49.2%]: thread_mle_message_handler.c
Compile [ 49.4%]: thread_management_server.c
Compile [ 49.5%]: thread_resolution_server.c
Compile [ 49.6%]: thread_resolution_client.c
Compile [ 49.7%]: thread_nvm_store.c
Compile [ 49.9%]: ws_empty_functions.c
Compile [ 50.0%]: icmpv6_prefix.c
Compile [ 50.1%]: thread_routing.c
Compile [ 50.3%]: border_router.c
Compile [ 50.4%]: thread_test_api.c
Compile [ 50.5%]: icmpv6_radv.c
Compile [ 50.6%]: adaptation_interface.c
Compile [ 50.8%]: ipv6_flow.c
Compile [ 50.9%]: ipv6_resolution.c
Compile [ 51.0%]: mld.c
Compile [ 51.1%]: icmpv6.c
Compile [ 51.3%]: ipv6_fragmentation.c
Compile [ 51.4%]: thread_network_data_storage.c
Compile [ 51.5%]: udp.c
Compile [ 51.6%]: ipv6.c
Compile [ 51.8%]: sockbuf.c
Compile [ 51.9%]: buffer_dyn.c
Compile [ 52.0%]: DHCPv6_Server_service.c
Compile [ 52.2%]: mac_fhss_callbacks.c
Compile [ 52.3%]: thread_router_bootstrap.c
[Warning] thread_router_bootstrap.c@1408,21: unused variable 'retVal' [-Wunused-variable]
[Warning] thread_router_bootstrap.c@1428,21: unused variable 'retVal' [-Wunused-variable]
Compile [ 52.4%]: dhcpv6_client_service.c
Compile [ 52.5%]: mac_filter.c
Compile [ 52.7%]: mac_indirect_data.c
Compile [ 52.8%]: tcp.c
Compile [ 52.9%]: mac_timer.c
Compile [ 53.0%]: ns_socket.c
Compile [ 53.2%]: address.c
Compile [ 53.3%]: mac_header_helper_functions.c
Compile [ 53.4%]: mac_security_mib.c
Compile [ 53.5%]: rf_driver_storage.c
Compile [ 53.7%]: mac_pd_sap.c
Compile [ 53.8%]: ethernet_mac_api.c
Compile [ 53.9%]: serial_mac_api.c
Compile [ 54.1%]: virtual_rf_client.c
Compile [ 54.2%]: sw_mac.c
Compile [ 54.3%]: virtual_rf_driver.c
Compile [ 54.4%]: mac_mlme.c
Compile [ 54.6%]: protocol_stats.c
Compile [ 54.7%]: mle_tlv.c
Compile [ 54.8%]: mle.c
Compile [ 54.9%]: protocol_core_sleep.c
Compile [ 55.1%]: protocol_timer.c
Compile [ 55.2%]: rpl_objective.c
Compile [ 55.3%]: mac_mcps_sap.c
Compile [ 55.4%]: rpl_mrhof.c
Compile [ 55.6%]: rpl_policy.c
Compile [ 55.7%]: mpl.c
Compile [ 55.8%]: protocol_core.c
Compile [ 55.9%]: rpl_of0.c
Compile [ 56.1%]: rpl_data.c
Compile [ 56.2%]: pana_avp.c
Compile [ 56.3%]: rpl_control.c
Compile [ 56.5%]: security_lib.c
Compile [ 56.6%]: pana_eap_header.c
Compile [ 56.7%]: eap_protocol.c
Compile [ 56.8%]: rpl_downward.c
Compile [ 57.0%]: pana_relay_table.c
Compile [ 57.1%]: pana_header.c
Compile [ 57.2%]: tls_ccm_crypt.c
Compile [ 57.3%]: pana.c
Compile [ 57.5%]: neighbor_cache.c
Compile [ 57.6%]: aes_mbedtls_adapter.c
Compile [ 57.7%]: pana_client.c
Compile [ 57.8%]: ns_sha256.c
Compile [ 58.0%]: ccm_security.c
Compile [ 58.1%]: trickle.c
Compile [ 58.2%]: shalib.c
Compile [ 58.4%]: rpl_upward.c
Compile [ 58.5%]: channel_list.c
Compile [ 58.6%]: blacklist.c
Compile [ 58.7%]: etx.c
Compile [ 58.9%]: fhss_channel.c
Compile [ 59.0%]: fhss_configuration_interface.c
Compile [ 59.1%]: fhss_statistics.c
Compile [ 59.2%]: fhss_ws_empty_functions.c
Compile [ 59.4%]: fnv_hash.c
Compile [ 59.5%]: fhss_common.c
Compile [ 59.6%]: tls_lib.c
Compile [ 59.7%]: pana_server.c
Compile [ 59.9%]: fnet_poll.c
Compile [ 60.0%]: mac_neighbor_table.c
Compile [ 60.1%]: load_balance.c
Compile [ 60.3%]: ns_fnet_events.c
Compile [ 60.4%]: fhss.c
Compile [ 60.5%]: ns_mdns_api.c
Compile [ 60.6%]: fnet_stdlib.c
Compile [ 60.8%]: ns_fnet_port.c
Compile [ 60.9%]: mle_service_frame_counter_table.c
Compile [ 61.0%]: mle_service_interface.c
Compile [ 61.1%]: mle_service_buffer.c
Compile [ 61.3%]: pan_blacklist.c
Compile [ 61.4%]: isqrt.c
Compile [ 61.5%]: mle_service_security.c
Compile [ 61.6%]: ns_crc.c
Compile [ 61.8%]: ns_file_system.c
Compile [ 61.9%]: nd_proxy.c
Compile [ 62.0%]: fnet_mdns.c
Compile [ 62.2%]: whiteboard.c
Compile [ 62.3%]: libDHCPv6_server.c
Compile [ 62.4%]: net_6lowpan_parameter_api.c
Compile [ 62.5%]: mle_service.c
Compile [ 62.7%]: multicast_api.c
Compile [ 62.8%]: net_ipv6.c
Compile [ 62.9%]: dhcp_service_api.c
Compile [ 63.0%]: libDHCPv6.c
Compile [ 63.2%]: net_mle.c
Compile [ 63.3%]: net_short_address_extension.c
Compile [ 63.4%]: net_load_balance.c
Compile [ 63.5%]: protocol_ipv6.c
Compile [ 63.7%]: net_test.c
Compile [ 63.8%]: net_rpl.c
Compile [ 63.9%]: ipv6_routing_table.c
Compile [ 64.1%]: socket_api.c
Compile [ 64.2%]: ns_net.c
Compile [ 64.3%]: DTLSSocket.cpp
Compile [ 64.4%]: EMACMemoryManager.cpp
Compile [ 64.6%]: NetworkInterface.cpp
Compile [ 64.7%]: EthernetInterface.cpp
Compile [ 64.8%]: NetworkInterfaceDefaults.cpp
Compile [ 64.9%]: DTLSSocketWrapper.cpp
Compile [ 65.1%]: EMACInterface.cpp
Compile [ 65.2%]: InternetSocket.cpp
Compile [ 65.3%]: SocketAddress.cpp
Compile [ 65.4%]: WiFiAccessPoint.cpp
Compile [ 65.6%]: SocketStats.cpp
Compile [ 65.7%]: TCPServer.cpp
Compile [ 65.8%]: TLSSocket.cpp
Compile [ 65.9%]: OnboardCellularInterface.cpp
Compile [ 66.1%]: TCPSocket.cpp
Compile [ 66.2%]: UDPSocket.cpp
Compile [ 66.3%]: stm32f7_eth_init.c
Compile [ 66.5%]: stm32f7_eth_conf.c
Compile [ 66.6%]: ac_buffer.c
Compile [ 66.7%]: ac_buffer_builder.c
Compile [ 66.8%]: ac_stream.c
Compile [ 67.0%]: TLSSocketWrapper.cpp
Compile [ 67.1%]: NetworkStack.cpp
Compile [ 67.2%]: ac_buffer_reader.c
Compile [ 67.3%]: PN512TransportDriver.cpp
Compile [ 67.5%]: PPPCellularInterface.cpp
Compile [ 67.6%]: PN512Driver.cpp
Compile [ 67.7%]: UARTCellularInterface.cpp
Compile [ 67.8%]: NFCControllerDriver.cpp
Compile [ 68.0%]: PN512SPITransportDriver.cpp
Compile [ 68.1%]: NFCEEPROMDriver.cpp
Compile [ 68.2%]: NFCNDEFCapable.cpp
Compile [ 68.4%]: NFCRemoteInitiator.cpp
Compile [ 68.5%]: stm32xx_emac.cpp
Compile [ 68.6%]: NFCEEPROM.cpp
Compile [ 68.7%]: NFCTarget.cpp
Compile [ 68.9%]: NFCController.cpp
Compile [ 69.0%]: nsapi_dns.cpp
Compile [ 69.1%]: RecordParser.cpp
Compile [ 69.2%]: MessageBuilder.cpp
Compile [ 69.4%]: NFCRemoteEndpoint.cpp
Compile [ 69.5%]: MessageParser.cpp
Compile [ 69.6%]: Mime.cpp
Compile [ 69.7%]: SimpleMessageParser.cpp
Compile [ 69.9%]: ndef.c
Compile [ 70.0%]: Text.cpp
Compile [ 70.1%]: nfc_transport.c
Compile [ 70.3%]: nfc_scheduler.c
Compile [ 70.4%]: iso7816_app.c
Compile [ 70.5%]: URI.cpp
Compile [ 70.6%]: Type4RemoteInitiator.cpp
Compile [ 70.8%]: util.cpp
Compile [ 70.9%]: iso7816.c
Compile [ 71.0%]: pn512_hw.c
Compile [ 71.1%]: pn512_irq.c
Compile [ 71.3%]: pn512_cmd.c
Compile [ 71.4%]: type4_target.c
Compile [ 71.5%]: isodep_target.c
Compile [ 71.6%]: pn512.c
Compile [ 71.8%]: pn512_registers.c
Compile [ 71.9%]: pn512_timer.c
Compile [ 72.0%]: transceiver.c
Compile [ 72.2%]: pn512_rf.c
Compile [ 72.3%]: pn512_transceive.c
Compile [ 72.4%]: ExhaustibleBlockDevice.cpp
Compile [ 72.5%]: ChainingBlockDevice.cpp
Compile [ 72.7%]: pn512_poll.c
Compile [ 72.8%]: ProfilingBlockDevice.cpp
Compile [ 72.9%]: HeapBlockDevice.cpp
Compile [ 73.0%]: BufferedBlockDevice.cpp
Compile [ 73.2%]: FlashSimBlockDevice.cpp
Compile [ 73.3%]: ObservingBlockDevice.cpp
Compile [ 73.4%]: ReadOnlyBlockDevice.cpp
Compile [ 73.5%]: SlicingBlockDevice.cpp
Compile [ 73.7%]: ffunicode.cpp
Compile [ 73.8%]: MBRBlockDevice.cpp
Compile [ 73.9%]: lfs_util.c
Compile [ 74.1%]: Dir.cpp
Compile [ 74.2%]: File.cpp
Compile [ 74.3%]: FileSystem.cpp
Compile [ 74.4%]: LittleFileSystem.cpp
Compile [ 74.6%]: FATFileSystem.cpp
Compile [ 74.7%]: SecureStore.cpp
Compile [ 74.8%]: kv_config.cpp
Compile [ 74.9%]: kvstore_global_api.cpp
Compile [ 75.1%]: KVMap.cpp
Compile [ 75.2%]: FileSystemStore.cpp
Compile [ 75.3%]: ff.cpp
Compile [ 75.4%]: lfs.c
Compile [ 75.6%]: mbed_itm_api.c
Compile [ 75.7%]: mbed_critical_section_api.c
Compile [ 75.8%]: mbed_flash_api.c
Compile [ 75.9%]: SystemStorage.cpp
Compile [ 76.1%]: mbed_gpio.c
Compile [ 76.2%]: LowPowerTickerWrapper.cpp
Compile [ 76.3%]: mbed_lp_ticker_api.c
Compile [ 76.5%]: mbed_pinmap_common.c
Compile [ 76.6%]: mbed_sleep_manager.c
Compile [ 76.7%]: TDBStore.cpp
Compile [ 76.8%]: nvstore.cpp
Compile [ 77.0%]: mbed_lp_ticker_wrapper.cpp
Compile [ 77.1%]: mbed_us_ticker_api.c
Compile [ 77.2%]: mbed_ticker_api.c
Compile [ 77.3%]: mbed_mpu_v7m.c
[Error] mbed_mpu_v7m.c@26,2: #error "Device has v7m MPU but it is not enabled. Add 'MPU' to device_has in targets.json"
[Error] mbed_mpu_v7m.c@46,1: expected identifier or '(' before '{' token
[Error] mbed_mpu_v7m.c@186,1: expected identifier or '(' before '{' token
[Error] mpu_api.h@108,41: expected identifier or '(' before 'void'
[Error] mpu_api.h@110,41: expected identifier or '(' before 'void'
[ERROR] ./mbed-os/hal/mpu/mbed_mpu_v7m.c:26:2: error: #error "Device has v7m MPU but it is not enabled. Add 'MPU' to device_has in targets.json"
#error "Device has v7m MPU but it is not enabled. Add 'MPU' to device_has in targets.json"
^~~~~
./mbed-os/hal/mpu/mbed_mpu_v7m.c:46:1: error: expected identifier or '(' before '{' token
{
^
./mbed-os/hal/mpu/mbed_mpu_v7m.c:186:1: error: expected identifier or '(' before '{' token
{
^
In file included from ./mbed-os/hal/mpu/mbed_mpu_v7m.c:16:0:
./mbed-os/hal/mpu_api.h:108:41: error: expected identifier or '(' before 'void'
#define mbed_mpu_enable_rom_wn(enable) (void)enable
^
./mbed-os/hal/mpu/mbed_mpu_v7m.c:198:6: note: in expansion of macro 'mbed_mpu_enable_rom_wn'
void mbed_mpu_enable_rom_wn(bool enable)
^~~~~~~~~~~~~~~~~~~~~~
./mbed-os/hal/mpu_api.h:110:41: error: expected identifier or '(' before 'void'
#define mbed_mpu_enable_ram_xn(enable) (void)enable
^
./mbed-os/hal/mpu/mbed_mpu_v7m.c:211:6: note: in expansion of macro 'mbed_mpu_enable_ram_xn'
void mbed_mpu_enable_ram_xn(bool enable)
^~~~~~~~~~~~~~~~~~~~~~
[mbed] ERROR: "/usr/bin/python" returned error.
Code: 1
Path: "/Workspace/mbed-os-example-tls-socket"
Command: "/usr/bin/python -u /Workspace/my-mbed-projects/mbed-os/tools/make.py -t GCC_ARM -m nucleo_f767zi --source . --build ./BUILD/NUCLEO_F767ZI/GCC_ARM -c"
Tip: You could retry the last command with "-v" flag for verbose output
@desmond-blue , Okay compilation succeeds now so we can close this issue. It turns out that I had the global variable for MBED_OS_DIR set and that was pointing to a very old version of mbed-os. Once I unset that variable, compilation succeeds now as it picks up the appropriate local version of mbed-os:
/Workspace/mbed-os-example-tls-socket$ mbed config -L
[mbed] Global config:
GCC_ARM_PATH=/opt/gcc-arm-none-eabi-6-2017-q2-update/bin
MBED_OS_DIR=/Workspace/my-mbed-projects/mbed-os
PROTOCOL=ssh
[mbed] Local config (/Workspace/mbed-os-example-tls-socket):
No local configuration is set
/Workspace/mbed-os-example-tls-socket$ mbed config -G -U MBED_OS_DIR
[mbed] Unset global MBED_OS_DIR
/Workspace/mbed-os-example-tls-socket$ mbed config -L
[mbed] Global config:
GCC_ARM_PATH=/opt/gcc-arm-none-eabi-6-2017-q2-update/bin
PROTOCOL=ssh
[mbed] Local config (/Workspace/mbed-os-example-tls-socket):
No local configuration is set
/Workspace/mbed-os-example-tls-socket$ mbed ls [mbed] Working path "/Workspace/mbed-os-example-tls-socket" (library) [mbed] Program path "/Workspace/mbed-os-example-tls-socket" mbed-os-example-tls-socket (#5856ddc1b00d) mbed-os (#6a0a86538c0b, tags: latest, mbed-os-5.11.0)
` mbed compile -m nucleo_f767zi -t GCC_ARM [mbed] Working path "/Workspace/mbed-os-example-tls-socket" (library) [mbed] Program path "/Workspace/mbed-os-example-tls-socket" [Warning] @,: Compiler version mismatch: Have 7.3.1; expected version >= 6.0.0 and < 7.0.0 Building project mbed-os-example-tls-socket (NUCLEO_F767ZI, GCC_ARM) Scan: mbed-os-example-tls-socket Scan: env Compile [ 79.9%]: mbed_mktime.c Compile [ 80.0%]: mbed_mem_trace.cpp Compile [ 80.1%]: mbed_sdk_boot.c Compile [ 80.3%]: mbed_mpu_v7m.c [Error] mbed_mpu_v7m.c@26,2: #error "Device has v7m MPU but it is not enabled. Add 'MPU' to device_has in targets.json" [Error] mbed_mpu_v7m.c@46,1: expected identifier or '(' before '{' token [Error] mbed_mpu_v7m.c@186,1: expected identifier or '(' before '{' token [Error] mpu_api.h@108,41: expected identifier or '(' before 'void' [Error] mpu_api.h@110,41: expected identifier or '(' before 'void' [ERROR] ./mbed-os/hal/mpu/mbed_mpu_v7m.c:26:2: error: #error "Device has v7m MPU but it is not enabled. Add 'MPU' to device_has in targets.json"
error "Device has v7m MPU but it is not enabled. Add 'MPU' to device_has in targets.json"
^~~~~ ./mbed-os/hal/mpu/mbed_mpu_v7m.c:46:1: error: expected identifier or '(' before '{' token { ^ ./mbed-os/hal/mpu/mbed_mpu_v7m.c:186:1: error: expected identifier or '(' before '{' token { ^ In file included from ./mbed-os/hal/mpu/mbed_mpu_v7m.c:16:0: ./mbed-os/hal/mpu_api.h:108:41: error: expected identifier or '(' before 'void'
define mbed_mpu_enable_rom_wn(enable) (void)enable
./mbed-os/hal/mpu/mbed_mpu_v7m.c:198:6: note: in expansion of macro 'mbed_mpu_enable_rom_wn' void mbed_mpu_enable_rom_wn(bool enable) ^
~~~~~ ./mbed-os/hal/mpu_api.h:110:41: error: expected identifier or '(' before 'void'define mbed_mpu_enable_ram_xn(enable) (void)enable
./mbed-os/hal/mpu/mbed_mpu_v7m.c:211:6: note: in expansion of macro 'mbed_mpu_enable_ram_xn' void mbed_mpu_enable_ram_xn(bool enable) ^
~~~~~[mbed] ERROR: "/usr/bin/python" returned error. Code: 1 Path: "/Workspace/mbed-os-example-tls-socket" Command: "/usr/bin/python -u /Workspace/my-mbed-projects/mbed-os/tools/make.py -t GCC_ARM -m nucleo_f767zi --source . --build ./BUILD/NUCLEO_F767ZI/GCC_ARM" Tip: You could retry the last command with "-v" flag for verbose output `
Note that playing around with the defines in targets.json for my board does not seem to make a difference for the compile error. As the MPU development effort seems to still be ongoing, what is the recommended approach to get this example compiling and working out of the box with the linked to version of mbed-os for the nucleo_f767zi. Thanks.