ARMmbed / mbed-os-example-tls

mbed TLS Sample application
Apache License 2.0
30 stars 52 forks source link

export to uvision5 does not build for benchmark example #160

Open chuanga opened 6 years ago

chuanga commented 6 years ago

Steps:

  1. export to uvision5 $ cd benchmark $ mbed export -i uvision5 -m NUCLEO_F429ZI Scan: . Warning: Multiple linker scripts detected: ..link_script.sct -> .\mbed-os\targets\TARGET_STM\TARGET_STM32F4\TARGET_STM32F429xI\device\TOOLCHAIN_ARM_STD\stm32f429xx.sct Scan: FEATURE_LWIP

  2. switch to uvision5 and open the project. Click to build for target Here is the output from uvision ==>

*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'benchmark' compiling aes_alt.c... compiling aes.c... compiling aesni.c... compiling AnalogIn.cpp... compiling analogin_api.c... compiling main.cpp... compiling analogout_api.c... compiling analogout_device.c... compiling analogin_device.c... compiling arc4.c... compiling asn1parse.c... compiling asn1write.c... compiling AT_CellularBase.cpp... compiling AT_CellularDevice.cpp... compiling AT_CellularInformation.cpp... compiling AT_CellularPower.cpp... compiling AT_CellularSIM.cpp... compiling AT_CellularNetwork.cpp... compiling AT_CellularStack.cpp... compiling ATCmdParser.cpp... compiling AT_CellularSMS.cpp... compiling base64.c... compiling blowfish.c... compiling bignum.c... compiling ATHandler.cpp... compiling BusIn.cpp... compiling BusInOut.cpp... compiling BusOut.cpp... compiling CallChain.cpp... compiling camellia.c... compiling ccm.c... compiling CellularConnectionFSM.cpp... compiling CellularUtil.cpp... compiling CAN.cpp... compiling certs.c... compiling can_api.c... compiling cipher_wrap.c... compiling cipher.c... compiling cmac.c... compiling cmsis_os1.c... compiling ctr_drbg.c... compiling debug.c... compiling des.c... compiling dhm.c... compiling ChainingBlockDevice.cpp... compiling ConditionVariable.cpp... compiling EasyCellularConnection.cpp... compiling ecdh.c... compiling ecdsa.c... compiling ecjpake.c... compiling ecp_curves.c... compiling emac_lwip.c... compiling ecp.c... compiling emac_stack_lwip.cpp... compiling entropy.c... compiling entropy_poll.c... compiling Dir.cpp... compiling equeue_posix.c... compiling equeue.c... compiling error.c... compiling equeue_mbed.cpp... compiling Ethernet.cpp... compiling EventFlags.cpp... assembling except.S... except.S: Error: #5: cannot open source input file "UVISION_VERSION SETA 524": No such file or directory except.S: __UVISION_VERSION SETA 524: 0 warnings, 1 error except.S: Error: A1067E: Output file specified as 'mbed-os\rtos\TARGET_CORTEX\TARGET_CORTEX_M\TOOLCHAIN_ARM\except.S', but it has already been specified as '.\build\except.o' except.S: error: A1905U: Pre-processor step failed for 'UVISION_VERSION SETA 524' compiling EthernetInterface.cpp... compiling EventQueue.cpp... compiling ff.cpp... mbed-os\features\filesystem\fat\ChaN\ff.cpp(1660): warning: #1293-D: assignment in condition mbed-os\features\filesystem\fat\ChaN\ff.cpp(5585): warning: #1293-D: assignment in condition mbed-os\features\filesystem\fat\ChaN\ff.cpp: 2 warnings, 0 errors compiling ExhaustibleBlockDevice.cpp... compiling ffunicode.cpp... compiling FATFileSystem.cpp... compiling FileBase.cpp... compiling File.cpp... compiling FileHandle.cpp... compiling FilePath.cpp... compiling FileSystem.cpp... compiling FileSystemHandle.cpp... compiling flash_api.c... compiling gcm.c... compiling FlashIAP.cpp... compiling gpio_api.c... compiling gpio_irq_api.c... compiling gpio_irq_device.c... compiling greentea_serial.cpp... compiling hal_init_pre.c... compiling greentea_metrics.cpp... compiling greentea_test_env.cpp... compiling hash_wrappers.c... compiling havege.c... compiling hal_tick_16b.c... compiling hal_tick_32b.c... compiling hmac_drbg.c... compiling I2C.cpp... compiling HeapBlockDevice.cpp... compiling i2c_api.c... compiling I2CSlave.cpp... assembling irq_cm4f.S... irq_cm4f.S: Error: #5: cannot open source input file "UVISION_VERSION SETA 524": No such file or directory irq_cm4f.S: UVISION_VERSION SETA 524: 0 warnings, 1 error irq_cm4f.S: Error: A1067E: Output file specified as 'mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\TOOLCHAIN_ARM\TARGET_RTOS_M4_M7\irq_cm4f.S', but it has already been specified as '.\build\irq_cm4f.o' irq_cm4f.S: error: A1905U: Pre-processor step failed for '__UVISION_VERSION SETA 524' compiling InterruptManager.cpp... compiling InterruptIn.cpp... compiling lfs_util.c... compiling lfs.c... compiling Kernel.cpp... compiling LocalFileSystem.cpp... compiling LittleFileSystem.cpp... compiling LoRaMacChannelPlan.cpp... compiling LoRaMacCommand.cpp... compiling LoRaMacCrypto.cpp... compiling LoRaMac.cpp... compiling LoRaMacMcps.cpp... compiling LoRaMacMlme.cpp... compiling LoRaMacMib.cpp... compiling LoRaPHYAS923.cpp... compiling LoRaPHYAU915.cpp... compiling LoRaPHY.cpp... compiling LoRaPHYCN779.cpp... compiling LoRaPHYCN470.cpp... compiling LoRaPHYEU433.cpp... compiling LoRaPHYEU868.cpp... compiling LoRaPHYIN865.cpp... compiling LoRaPHYKR920.cpp... compiling LoRaPHYUS915.cpp... compiling LoRaPHYUS915Hybrid.cpp... compiling LoRaWANInterface.cpp... compiling LoRaWANTimer.cpp... compiling lp_ticker.c... compiling LoRaWANStack.cpp... compiling lwip_api_lib.c... compiling lwip_api_msg.c... compiling lwip_arc4.c... compiling lwip_auth.c... compiling lwip_ccp.c... compiling lwip_autoip.c... compiling lwip_chap-md5.c... compiling lwip_checksum.c... compiling lwip_chap-new.c... compiling lwip_chap_ms.c... compiling lwip_demand.c... compiling lwip_des.c... compiling lwip_def.c... compiling lwip_dhcp6.c... compiling lwip_dns.c... compiling lwip_dhcp.c... compiling lwip_eap.c... compiling lwip_ecp.c... compiling lwip_err.c... compiling lwip_ethernetif.c... compiling lwip_etharp.c... compiling lwip_ethernet.c... compiling lwip_eui64.c... compiling lwip_ethip6.c... compiling lwip_fsm.c... compiling lwip_icmp6.c... compiling lwip_igmp.c... compiling lwip_icmp.c... compiling lwip_inet6.c... compiling lwip_inet_chksum.c... compiling lwip_init.c... compiling lwip_ip.c... compiling lwip_ip4.c... compiling lwip_ip4_addr.c... compiling lwip_ip6.c... compiling lwip_ip4_frag.c... compiling lwip_ip6_addr.c... compiling lwip_ipcp.c... compiling lwip_ip6_frag.c... compiling lwip_ipv6cp.c... compiling lwip_lcp.c... compiling lwip_lowpan6.c... compiling lwip_magic.c... compiling lwip_md4.c... compiling lwip_md5.c... compiling lwip_memcpy.c... compiling lwip_mem.c... compiling lwip_mld6.c... compiling lwip_mppe.c... compiling lwip_memp.c... compiling lwip_multilink.c... compiling lwip_nd6.c... compiling lwip_netbuf.c... compiling lwip_netdb.c... compiling lwip_netifapi.c... compiling lwip_netif.c... compiling lwip_pbuf.c... compiling lwip_ppp.c... compiling lwip_pppapi.c... compiling lwip_pppcrypt.c... compiling lwip_pppoe.c... compiling lwip_pppol2tp.c... compiling lwip_pppos.c... compiling lwip_random.c... compiling lwip_raw.c... compiling lwip_sha1.c... compiling lwip_sockets.c... compiling lwip_stack.c... mbed-os\features\FEATURE_LWIP\lwip-interface\lwip_stack.c(858): warning: #174-D: expression has no effect mbed-os\features\FEATURE_LWIP\lwip-interface\lwip_stack.c(875): warning: #174-D: expression has no effect mbed-os\features\FEATURE_LWIP\lwip-interface\lwip_stack.c(442): warning: #550-D: variable "lwip_ppp" was set but never used mbed-os\features\FEATURE_LWIP\lwip-interface\lwip_stack.c: 3 warnings, 0 errors compiling lwip_stats.c... compiling lwip_sys.c... compiling lwip_sys_arch.c... compiling lwip_tcp.c... compiling lwip_tcp_in.c... compiling lwip_tcp_isn.c... compiling lwip_tcp_out.c... compiling lwip_tcpip.c... compiling lwip_timeouts.c... compiling lwip_upap.c... compiling lwip_udp.c... compiling lwip_utils.c... compiling lwip_vj.c... compiling mbed_alloc_wrappers.cpp... compiling mbed-utest-shim.cpp... compiling mbed_application.c... compiling mbed_assert.c... compiling mbed_board.c... compiling mbed_critical.c... compiling mbed_boot.c... compiling mbed_error.c... compiling mbed_critical_section_api.c... compiling mbed_flash_api.c... compiling mbed_itm_api.c... compiling mbed_interface.c... compiling mbed_gpio.c... compiling mbed_mktime.c... compiling mbed_lp_ticker_api.c... compiling mbed_mem_trace.cpp... compiling mbed_pinmap_common.c... compiling mbed_overrides.c... compiling mbed_poll.cpp... compiling mbed_rtc_time.cpp... compiling mbed_retarget.cpp... "no source": Warning: #541-D: allowing all exceptions is incompatible with previous function "operator new(std::size_t)" (declared at line 78 of "C:\Keil_v5\ARM\ARMCC\Bin..\include\new") "no source": Warning: #541-D: allowing all exceptions is incompatible with previous function "operator new" (declared at line 97 of "C:\Keil_v5\ARM\ARMCC\Bin..\include\new") "no source": Warning: #541-D: allowing all exceptions is incompatible with previous function "operator new(std::size_t, const std::nothrow_t &)" (declared at line 84 of "C:\Keil_v5\ARM\ARMCC\Bin..\include\new") "no source": Warning: #541-D: allowing all exceptions is incompatible with previous function "operator new[](std::size_t, const std::nothrow_t &)" (declared at line 109 of "C:\Keil_v5\ARM\ARMCC\Bin..\include\new") "no source": Warning: #541-D: allowing all exceptions is incompatible with previous function "operator delete(void )" (declared at line 81 of "C:\Keil_v5\ARM\ARMCC\Bin..\include\new") "no source": Warning: #541-D: allowing all exceptions is incompatible with previous function "operator delete[](void )" (declared at line 100 of "C:\Keil_v5\ARM\ARMCC\Bin..\include\new") mbed-os\platform\mbed_retarget.cpp: 6 warnings, 0 errors compiling mbed_rtx_handlers.c... compiling mbed_rtx_fault_handler.c... compiling mbed_sdk_boot.c... compiling mbed_rtx_idle.cpp... compiling mbed_semihost_api.c... compiling mbed_stats.c... compiling mbed_sleep_manager.c... compiling mbed_shared_queues.cpp... compiling mbed_trng.c... compiling mbed_ticker_api.c... compiling mbed_wait_api_no_rtos.c... compiling MbedCRC.cpp... compiling mbed_us_ticker_api.c... compiling md.c... compiling md2.c... compiling mbed_wait_api_rtos.cpp... compiling md5.c... compiling md4.c... compiling md5_alt.c... compiling md_wrap.c... compiling memory_buffer_alloc.c... compiling net_sockets.c... compiling MBRBlockDevice.cpp... compiling NetworkInterface.cpp... compiling Mutex.cpp... compiling nsapi_dns.cpp... compiling nvstore.cpp... compiling NetworkStack.cpp... compiling OnboardCellularInterface.cpp... compiling oid.c... compiling os_tick_ptim.c... compiling padlock.c... compiling os_systick.c... compiling pem.c... compiling ObservingBlockDevice.cpp... compiling pk.c... compiling PeripheralPins.c... compiling pinmap.c... compiling pk_wrap.c... compiling pkcs11.c... compiling pkcs12.c... compiling pkcs5.c... compiling pkwrite.c... compiling pkparse.c... compiling platform.c... compiling port_api.c... compiling ppp_lwip.cpp... compiling PPPCellularInterface.cpp... compiling pwmout_api.c... compiling pwmout_device.c... compiling ProfilingBlockDevice.cpp... compiling QUECTEL_BC95.cpp... compiling QUECTEL_BC95_CellularPower.cpp... compiling QUECTEL_BC95_CellularNetwork.cpp... compiling QUECTEL_BC95_CellularStack.cpp... compiling QUECTEL_BG96.cpp... compiling QUECTEL_BG96_CellularNetwork.cpp... compiling QUECTEL_BG96_CellularStack.cpp... compiling ReadOnlyBlockDevice.cpp... compiling RawSerial.cpp... compiling ripemd160.c... compiling rsa_internal.c... compiling rt_OsEventObserver.c... compiling rsa.c... compiling RTX_Config.c... compiling rtc_api.c... compiling RtosTimer.cpp... compiling rtx_delay.c... compiling rtx_evflags.c... compiling rtx_lib.c... compiling rtx_evr.c... compiling rtx_kernel.c... compiling rtx_memory.c... compiling rtx_mempool.c... compiling rtx_msgqueue.c... compiling rtx_mutex.c... compiling rtx_semaphore.c... compiling rtx_system.c... compiling rtx_thread.c... compiling rtx_timer.c... compiling Semaphore.cpp... compiling Serial.cpp... compiling serial_api.c... compiling sha1.c... compiling sha1_alt.c... compiling serial_device.c... compiling sha256_alt.c... compiling sha256.c... compiling SerialBase.cpp... compiling sha512.c... compiling sleep.c... compiling SlicingBlockDevice.cpp... compiling Socket.cpp... compiling SocketAddress.cpp... compiling SPI.cpp... compiling spi_api.c... compiling ssl_ciphersuites.c... compiling ssl_cache.c... compiling SPISlave.cpp... compiling ssl_cookie.c... compiling ssl_cli.c... compiling ssl_ticket.c... compiling ssl_srv.c... assembling startup_stm32f429xx.S... startup_stm32f429xx.S: Error: #5: cannot open source input file "UVISION_VERSION SETA 524": No such file or directory startup_stm32f429xx.S: UVISION_VERSION SETA 524: 0 warnings, 1 error startup_stm32f429xx.S: Error: A1067E: Output file specified as 'mbed-os\targets\TARGET_STM\TARGET_STM32F4\TARGET_STM32F429xI\device\TOOLCHAIN_ARM_STD\startup_stm32f429xx.S', but it has already been specified as '.\build\startup_stm32f429xx.o' startup_stm32f429xx.S: error: A1905U: Pre-processor step failed for '__UVISION_VERSION SETA 524' compiling stm32f4_eth_conf.c... compiling stm32f4_eth_init.c... mbed-os\features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_STM\TARGET_STM32F4\TARGET_NUCLEO_F429ZI\stm32f4_eth_init.c(87): warning: #1-D: last line of file ends without a newline mbed-os\features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_STM\TARGET_STM32F4\TARGET_NUCLEO_F429ZI\stm32f4_eth_init.c: 1 warning, 0 errors compiling ssl_tls.c... compiling stm32f4xx_hal.c... compiling stm32f4xx_hal_adc.c... compiling stm32f4xx_hal_adc_ex.c... compiling stm32f4xx_hal_can.c... compiling stm32f4xx_hal_can_legacy.c... mbed-os\targets\TARGET_STM\TARGET_STM32F4\device\stm32f4xx_hal_can_legacy.c(139): warning: #1215-D: #warning directive: 'Legacy HAL CAN driver is enabled! It can be used with known limitations, refer to the release notes. However it is recommended to use rather the new HAL CAN driver' mbed-os\targets\TARGET_STM\TARGET_STM32F4\device\stm32f4xx_hal_can_legacy.c: 1 warning, 0 errors compiling stm32f4xx_hal_cec.c... compiling stm32f4xx_hal_cortex.c... compiling stm32f4xx_hal_crc.c... compiling stm32f4xx_hal_cryp_ex.c... compiling stm32f4xx_hal_cryp.c... compiling stm32f4xx_hal_dac.c... compiling stm32f4xx_hal_dac_ex.c... compiling stm32f4xx_hal_dcmi.c... compiling stm32f4xx_hal_dcmi_ex.c... compiling stm32f4xx_hal_dfsdm.c... compiling stm32f4xx_hal_dma.c... compiling stm32f4xx_hal_dma2d.c... compiling stm32f4xx_hal_dsi.c... compiling stm32f4xx_hal_dma_ex.c... compiling stm32f4xx_hal_eth.c... compiling stm32f4xx_hal_flash_ex.c... compiling stm32f4xx_hal_flash.c... compiling stm32f4xx_hal_flash_ramfunc.c... compiling stm32f4xx_hal_fmpi2c_ex.c... compiling stm32f4xx_hal_fmpi2c.c... compiling stm32f4xx_hal_gpio.c... compiling stm32f4xx_hal_hash.c... compiling stm32f4xx_hal_hash_ex.c... compiling stm32f4xx_hal_i2c_ex.c... compiling stm32f4xx_hal_hcd.c... compiling stm32f4xx_hal_i2c.c... compiling stm32f4xx_hal_i2s.c... compiling stm32f4xx_hal_i2s_ex.c... compiling stm32f4xx_hal_irda.c... compiling stm32f4xx_hal_iwdg.c... compiling stm32f4xx_hal_lptim.c... compiling stm32f4xx_hal_ltdc_ex.c... compiling stm32f4xx_hal_ltdc.c... compiling stm32f4xx_hal_mmc.c... compiling stm32f4xx_hal_nand.c... compiling stm32f4xx_hal_nor.c... compiling stm32f4xx_hal_pccard.c... compiling stm32f4xx_hal_pcd_ex.c... compiling stm32f4xx_hal_pcd.c... compiling stm32f4xx_hal_pwr.c... compiling stm32f4xx_hal_pwr_ex.c... compiling stm32f4xx_hal_qspi.c... compiling stm32f4xx_hal_rcc.c... compiling stm32f4xx_hal_rcc_ex.c... compiling stm32f4xx_hal_rng.c... compiling stm32f4xx_hal_rtc.c... compiling stm32f4xx_hal_rtc_ex.c... compiling stm32f4xx_hal_sai.c... compiling stm32f4xx_hal_sai_ex.c... compiling stm32f4xx_hal_sd.c... compiling stm32f4xx_hal_sdram.c... compiling stm32f4xx_hal_smartcard.c... compiling stm32f4xx_hal_spdifrx.c... compiling stm32f4xx_hal_spi.c... compiling stm32f4xx_hal_sram.c... compiling stm32f4xx_hal_tim.c... compiling stm32f4xx_hal_tim_ex.c... compiling stm32f4xx_hal_uart.c... compiling stm32f4xx_ll_adc.c... compiling stm32f4xx_hal_wwdg.c... compiling stm32f4xx_ll_crc.c... compiling stm32f4xx_hal_usart.c... compiling stm32f4xx_ll_dac.c... compiling stm32f4xx_ll_dma.c... compiling stm32f4xx_ll_dma2d.c... compiling stm32f4xx_ll_exti.c... compiling stm32f4xx_ll_gpio.c... compiling stm32f4xx_ll_i2c.c... compiling stm32f4xx_ll_lptim.c... compiling stm32f4xx_ll_fmc.c... compiling stm32f4xx_ll_fsmc.c... compiling stm32f4xx_ll_rcc.c... compiling stm32f4xx_ll_pwr.c... compiling stm32f4xx_ll_rng.c... compiling stm32f4xx_ll_rtc.c... compiling stm32f4xx_ll_spi.c... compiling stm32f4xx_ll_tim.c... compiling stm32f4xx_ll_usart.c... compiling stm32f4xx_ll_sdmmc.c... compiling stm32f4xx_ll_utils.c... compiling stm32f4xx_ll_usb.c... compiling stm32xx_emac.c... compiling stm_spi_api.c... compiling Stream.cpp... compiling system_clock.c... compiling system_init_pre.c... compiling system_stm32f4xx.c... compiling TableCRC.cpp... compiling SysTimer.cpp... compiling TCPSocket.cpp... compiling TCPServer.cpp... compiling TELIT_HE910.cpp... compiling TELIT_HE910_CellularNetwork.cpp... compiling threading.c... compiling TELIT_HE910_CellularPower.cpp... compiling Ticker.cpp... compiling Timeout.cpp... compiling Thread.cpp... compiling timing.c... compiling TimerEvent.cpp... compiling Timer.cpp... compiling trng_api.c... compiling UARTSerial.cpp... compiling UBLOX_LISA_U.cpp... compiling UARTCellularInterface.cpp... compiling UBLOX_LISA_U_CellularNetwork.cpp... compiling UBLOX_LISA_U_CellularPower.cpp... compiling UDPSocket.cpp... compiling unity.c... compiling us_ticker_16b.c... compiling us_ticker_32b.c... compiling unity_handler.cpp... compiling utest_case.cpp... compiling utest_default_handlers.cpp... compiling utest_greentea_handlers.cpp... compiling utest_stack_trace.cpp... compiling utest_shim.cpp... compiling utest_harness.cpp... compiling version.c... compiling utest_types.cpp... compiling version_features.c... compiling WiFiAccessPoint.cpp... compiling x509_create.c... compiling x509.c... compiling x509_crl.c... compiling x509_csr.c... compiling x509write_crt.c... compiling xtea.c... compiling x509write_csr.c... compiling x509_crt.c... ".\BUILD\benchmark.axf" - 9 Error(s), 7 Warning(s). Target not created. Build Time Elapsed: 00:02:23

ciarmcom commented 6 years ago

ARM Internal Ref: IOTSSL-2422

RonEld commented 6 years ago

@theotherjimmy could you please have a look? This is basically same issue as #161