This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP-EXP432E401Y: Azure IoT default normal Rebuild and rebuild for websockets does not generate .a files for anything

Part Number: MSP-EXP432E401Y

Hello TI Community,

I ensured environment variables in imports.mak in simplelink sdk were correct resulting in a successful build. The package.bld has logic to generate .a files but nothing happens as CCS fails to find them when I build my project.

Gmake Build output:

C:\ti\ccs1031\xdctools_3_61_02_27_core>gmake -C C:\ti\azure_msp432e4_4_10_00_02\source\third_party\azure-iot-pal-simplelink\build_all\ clean
gmake: Entering directory 'C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all'
Fetching installation locations from imports.mak...
cleaning packages ...
making clean: Wed Oct 20 22:19:13 NZST 2021 ...
======== clean [../build_all/pal] ========
======== clean [../build_all/sdk] ========
cleaning complete: Wed Oct 20 22:19:15 NZST 2021.
gmake: Leaving directory 'C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all'

C:\ti\ccs1031\xdctools_3_61_02_27_core>gmake -C C:\ti\azure_msp432e4_4_10_00_02\source\third_party\azure-iot-pal-simplelink\build_all\ all
gmake: Entering directory 'C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all'
Fetching installation locations from imports.mak...
building packages...
making all: Wed Oct 20 22:19:19 NZST 2021 ...
======== .interfaces [../build_all/pal] ========
======== .interfaces [../build_all/sdk] ========
making package.mak (because of package.bld) ...
making package.mak (because of package.bld) ...
Warning: Target specification 'native' does not match any loaded target module.
No target modules were loaded.

Warning: Target specification 'native' does not match any loaded target module.
No target modules were loaded.

generating interfaces for package build_all.pal (because package/package.xdc.inc is older than package.xdc) ...
generating interfaces for package build_all.sdk (because package/package.xdc.inc is older than package.xdc) ...
.interfaces files complete: Wed Oct 20 22:19:25 NZST 2021.
======== .libraries [../build_all/pal] ========
======== .libraries [../build_all/sdk] ========
.libraries files complete: Wed Oct 20 22:19:26 NZST 2021.
======== .dlls [../build_all/pal] ========
======== .dlls [../build_all/sdk] ========
.dlls files complete: Wed Oct 20 22:19:27 NZST 2021.
======== .executables [../build_all/pal] ========
======== .executables [../build_all/sdk] ========
.executables files complete: Wed Oct 20 22:19:27 NZST 2021.
======== all [../build_all/pal] ========
======== all [../build_all/sdk] ========
all files complete.
all files complete.
all files complete: Wed Oct 20 22:19:28 NZST 2021.
gmake: Leaving directory 'C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all'

C:\ti\ccs1031\xdctools_3_61_02_27_core>



CCS Build Output: The lib folder is not generated despite successful build

"C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -@"ccsLinker.opt" -o "iothub_client_C5K_ccs_peripheral_px_port.out"
<Linking>
error #10008-D: cannot find file "C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all/sdk/lib/ccs/m4f/iotclient_sl_prov_release.a"
error #10008-D: cannot find file "C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all/sdk/lib/ccs/m4f/umqtt_sl_prov_release.a"
error #10008-D: cannot find file "C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all/sdk/lib/ccs/m4f/provisioning_client_sl_release.a"
error #10008-D: cannot find file "C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all/sdk/lib/ccs/m4f/common_sl_prov_release.a"
error #10008-D: cannot find file "C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all/pal/lib/ccs/m4f/pal_sl_release.a"
error #10008-D: cannot find file "C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all/sdk/lib/ccs/m4f/iotclient_sl_debug.a"
error #10008-D: cannot find file "C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all/sdk/lib/ccs/m4f/common_sl_debug.a"
error #10008-D: cannot find file "C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all/pal/lib/ccs/m4f/pal_sl_debug.a"
error #10008-D: cannot find file "C:/ti/azure_msp432e4_4_10_00_02/source/third_party/azure-iot-pal-simplelink/build_all/sdk/lib/ccs/m4f/umqtt_sl_release.a"
 
 undefined                                        first referenced                                
  symbol                                              in file                                     
 ---------                                        ----------------                                
 IOTHUB_CLIENT_CONFIRMATION_RESULTStrings         ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubClient_GetVersionString                    ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 IoTHubDeviceClient_LL_CreateFromConnectionString ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubDeviceClient_LL_CreateFromDeviceAuth       ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubDeviceClient_LL_Destroy                    ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubDeviceClient_LL_DoWork                     ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubDeviceClient_LL_SendEventAsync             ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubDeviceClient_LL_SetMessageCallback         ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubDeviceClient_LL_SetOption                  ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubMessage_CreateFromByteArray                ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubMessage_Destroy                            ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubMessage_GetByteArray                       ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubMessage_GetCorrelationId                   ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubMessage_GetMessageId                       ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubMessage_Properties                         ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubMessage_SetCorrelationId                   ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHubMessage_SetMessageId                       ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 IoTHub_Deinit                                    ./COLTPMessage/Cloud/CloudService.obj           
 IoTHub_Init                                      ./COLTPMessage/Cloud/CloudService.obj           
 MQTT_Protocol                                    ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 Map_GetInternals                                 ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 Prov_Device_LL_Create                            ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 Prov_Device_LL_Destroy                           ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 Prov_Device_LL_DoWork                            ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 Prov_Device_LL_GetVersionString                  ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 Prov_Device_LL_Register_Device                   ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 Prov_Device_LL_SetOption                         ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 Prov_Device_MQTT_Protocol                        ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 ThreadAPI_Sleep                                  ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 mallocAndStrcpy_s                                ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 platform_deinit                                  ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 platform_init                                    ./Network/MQTT/Helpers/iothub_client_mqtt.obj   
 prov_dev_security_deinit                         ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 prov_dev_security_init                           ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 xlogging_set_log_function                        ./COLTPMessage/Cloud/Helpers/prov_dev_client.obj
 
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "iothub_client_C5K_ccs_peripheral_px_port.out" not built
 
>> Compilation failure
makefile:402: recipe for target 'iothub_client_C5K_ccs_peripheral_px_port.out' failed
gmake[1]: *** [iothub_client_C5K_ccs_peripheral_px_port.out] Error 1
makefile:395: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****



According to the related post there is a use_prov_client flag to generate the respective .a file in products.mak. I did not find that in products.mak

#
#  ======== products.mak ========
#

### Automatically use installation locations from plugin and SDK when possible
ifneq (,$(wildcard ../../../../imports.mak))
$(info Fetching installation locations from imports.mak...)
include ../../../../imports.mak
endif
ifneq (,$(SIMPLELINK_MSP432E4_SDK_INSTALL_DIR))
ti.targets.arm.elf.M4F = $(CCS_ARMCOMPILER)
iar.targets.arm.M4F    = $(IAR_ARMCOMPILER)
gnu.targets.arm.M4F    = $(GCC_ARMCOMPILER)
endif

################################################################
# When not part of the plugin, fill these out manually         #
################################################################
######################## All platforms ########################
XDC_INSTALL_DIR    ?= 
SYSCONFIG_TOOL     ?=

######################## Optional ########################
FREERTOS_INSTALL_DIR   ?=

################################################################
# Fill in the variable set corresponding to your platform      #
# Only one set should be used at a time                        #
################################################################

##################### For CC32XX ####################
SIMPLELINK_CC32XX_SDK_INSTALL_DIR   ?=

# Toolchains: Leave assignment empty to disable a toolchain
ti.targets.arm.elf.M4  ?=
iar.targets.arm.M4     ?=
gnu.targets.arm.M4     ?=


#################### For MSP432E4 ###################
SIMPLELINK_MSP432E4_SDK_INSTALL_DIR   ?= C:/ti/simplelink_msp432e4_sdk_4_20_00_12

# Toolchains: Leave assignment empty to disable a toolchain
ti.targets.arm.elf.M4F ?= $(CCS_ARMCOMPILER)
iar.targets.arm.M4F    ?=
gnu.targets.arm.M4F    ?=