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.
Team,
Am working on Microsoft azure example project.
..\azure-iot-sdks\c\serializer\samples\simplesample_http
When I build the above path example file, I'm getting following error:
"../../simplesample_http.c", line 72: warning: function "sendMessage" was declar
ed but never referenced
building simplesample_http.out ..
<Linking>
warning: automatic library build: using library
"C:\ti\ti-cgt-arm_5.2.5\lib\rtsv7M4_T_le_eabi.lib" for the first time, so it
must be built. This may take a few minutes.
>> ERROR: mklib: could not find program "gmake", required for building libraries
. Modify the PATH environment variable to contain a directory containing this p
rogram.
warning: automatic RTS selection: resolving index library "libc.a" to
"rtsv7M4_T_le_eabi.lib", but "rtsv7M4_T_le_eabi.lib" was not found
undefined first referenced
symbol in file
--------- ----------------
__TI_decompress_none
__TI_decompress_rle24
__TI_zero_init
__aeabi_lmul D:\Users\Rajesh\POC_thermo\test\azure-iot-sdks\c\serializ
er\samples\simplesample_http\tirtos\cc3200\main\package\cfg\main_pem4.src\sysbio
s\sysbios.aem4<BIOS.obj>
__aeabi_uidivmod C:\ti\tirtos_simplelink_2_14_01_20\products\bios_6_42_02_
29\packages\ti\targets\arm\rtsarm\lib\ti.targets.arm.rtsarm.aem4<System.oem4>
__aeabi_uldivmod C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/li
b/drivers_ccware.aem4<PowerCC3200.oem4>
_args_main C:\ti\tirtos_simplelink_2_14_01_20\products\bios_6_42_02_
29\packages\ti\targets\arm\rtsarm\lib\boot.aem4<boot.oem4>
_nop D:\Users\Rajesh\POC_thermo\test\azure-iot-sdks\c\serializ
er\samples\simplesample_http\tirtos\cc3200\main\package\cfg\main_pem4.oem4
_register_lock D:\Users\Rajesh\POC_thermo\test\azure-iot-sdks\c\serializ
er\samples\simplesample_http\tirtos\cc3200\main\package\cfg\main_pem4.oem4
_register_unlock D:\Users\Rajesh\POC_thermo\test\azure-iot-sdks\c\serializ
er\samples\simplesample_http\tirtos\cc3200\main\package\cfg\main_pem4.oem4
abort C:\ti\tirtos_simplelink_2_14_01_20\products\bios_6_42_02_
29\packages\ti\targets\arm\rtsarm\lib\ti.targets.arm.rtsarm.aem4<System.oem4>
copy_in C:\ti\tirtos_simplelink_2_14_01_20\products\bios_6_42_02_
29\packages\ti\targets\arm\rtsarm\lib\auto_init.aem4<auto_init.oem4>
exit C:\ti\tirtos_simplelink_2_14_01_20\products\bios_6_42_02_
29\packages\ti\targets\arm\rtsarm\lib\ti.targets.arm.rtsarm.aem4<System.oem4>
main_func_sp C:\ti\tirtos_simplelink_2_14_01_20\products\bios_6_42_02_
29\packages\ti\targets\arm\rtsarm\lib\boot.aem4<boot.oem4>
memcpy simplesample_http.o
memset D:\Users\Rajesh\POC_thermo\test\azure-iot-sdks\c\serializ
er\samples\simplesample_http\tirtos\cc3200\main\package\cfg\main_pem4.oem4
strlen netwifi.o
error: unresolved symbols remain
error: errors encountered during linking; "simplesample_http.out" not built
>> Compilation failure
gmake: *** [simplesample_http.out] Error 1
I opened the folder C:\ti\ti-cgt-arm_5.2.5\lib\.. but not able to find the file "rtsv7M4_T_le_eabi.lib".
Can any one help me in resolving this error.
The key error in all that output is this one ...
J rajesh said:>> ERROR: mklib: could not find program "gmake", required for building libraries
. Modify the PATH environment variable to contain a directory containing this p
rogram.
I'm not sure how that occurred. While modifying your PATH to a directory that has gmake would work, that is not the best choice in this situation. Since you build from within CCS, it is better to use the environment variable CCS_UTILS_DIR. This variable must be set to a directory similar to ...
C:\ti\ccsv6\utils
This presumes you installed CCS in the default directory of C:\ti. If you use CCS versions earlier than CCS v6.x, then the ccsv6 part could be ccsv5 instead. Be sure CCS_UTILS_DIR is set to the appropriate directory.
Thanks and regards,
-George
Hi George,
Thanks for reply.
I'm not using the ccsv6 environment.
I have done the steps specified by Microsoft azure link.
https://azure.microsoft.com/en-us/develop/iot/get-started/
1.Select Device -> ti cc3200
2.select a platform -> ti rtos
3. select a language -> c
5. Connect your device: Build the Azure IoT SDK
Build the sample simplesample_http-> In this index I'm getting the above mentioned error
In the above steps mentioned from 1 to 5, there is no environment variable or path c:\ti\ccsv6\utils
when the command C:\ti\xdctools_3_31_01_33_core\gmake.exe all is executed the above error visible.
gmake path which you mentioned is different from the above path. Please specify the environment variable for the path which I used( C:\ti\xdctools_3_31_01_33_core\gmake.exe).
I have attached the documents, there I'm not able to see the library rtsv7M4_T_le_eabi.lib
Please provide further support on it.
Thanks
Unfortunately, the Microsoft site is down. But I have another suggestion for you to try.
When you try to link your application, the linker discovers that the compiler runtime support (RTS) library you need is not present. So, it attempts to build it for you. This library build fails because it cannot find gmake.
The helper utility the linker invokes to build the RTS library is called mklib, and it is documented in this wiki article. My suggestion is to directly use mklib to build the missing library. Please see this part of the article for the details. The key step is to go to the \lib directory of the compiler installation and issue the command ...
mklib --pattern=rtsv7M4_T_le_eabi.lib
Thanks and regards,
-George
Hi George,
Thanks for the support, I'm able to build example code simplesample_http.
Following are the steps:
step 1. Included the environment variables, variable: PATH, value: C:\ti\xdctools_3_31_01_33_core\;C:\ti\ccsv6\utils\bin\, both in user variables and system variables
After doing the step 1, I was able to generate .out file and rtsv7M4_T_le_eabi.lib file
step 2: elf2cc32.exe file is missing in the project path which will convert .out file to .bin file, For more information, pls follow link(https://github.com/Azure/azure-iot-sdks/pull/70/files?diff=unified#diff-a56c11f411ba870d2a261dc7aa78c99b)
Now I'm able to connect, But getting a new error in httpapiex.c, Following is the picture.
Please help in resolving below error. Func:HTTPAPIEX_ExecuteRequest Line:476 unable to recover sending to a working state
Format of Connection string as follows "HostName=TherIoTHub.azuredevices.net;DeviceId=100;SharedAccessKeyName=iothubowner;SharedAccessKey=3UKDazzzzzzzY71s=";
(Note: In the above connection string, I have removed some characters and changed some characters)
Thanks
Rajesh
I lack the expertise to help with this problem. I recommend you start a new thread in the CC3200 forum.
Thanks and regards,
-George