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.

Compiler/CCSTUDIO: Compilation Error, #1965 Cannot open Source file

Part Number: CCSTUDIO
Other Parts Discussed in Thread: CC3100, SYSBIOS, TM4C1294NCPDT

Tool/software: TI C/C++ Compiler

Hi,

I am using ccs v7,  tm4c1294ncpdt. Trying to send MQTT request to the local server using cc3100 wifi. The httpget example given by the tirtos is working fine. For the same I added mqtt sources files getting from github, make correct almost errors and stopped all http functions trying only for mqtt. I think it should work fine. But compilation errors are found like,

1. #1965 cannot open source file "bits/sockaddr.h"

2. #1965 cannot open source file "sys/socket.h"

and the complication console prints:


**** Build of configuration Debug for project mqttgetCC3100_EK_TM4C1294XL_TI ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
making ../src/sysbios/sysbios.aem4f ...
gmake[1]: Nothing to be done for 'all'.
'Building file: ../transport.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00/oslib" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00/simplelink/include" --include_path="E:/raghu/CCS-WorkSpace/mqttgetCC3100_EK_TM4C1294XL_TI" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/posix" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=NET_SL --define=ccs --define=TIVAWARE -g --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="transport.d" --cmd_file="configPkg/compiler.opt" "../transport.c"

>> Compilation failure
subdir_rules.mk:107: recipe for target 'transport.obj' failed
"C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/ndk_2_25_00_09/packages/ti/ndk/inc/bsd/socketndk.h", line 42: fatal error #1965: cannot open source file "bits/sockaddr.h"
1 catastrophic error detected in the compilation of "../transport.c".
Compilation terminated.
gmake: *** [transport.obj] Error 1
'Building file: ../httpgetCC3100.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00/oslib" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00/simplelink/include" --include_path="E:/raghu/CCS-WorkSpace/mqttgetCC3100_EK_TM4C1294XL_TI" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/posix" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=NET_SL --define=ccs --define=TIVAWARE -g --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="httpgetCC3100.d" --cmd_file="configPkg/compiler.opt" "../httpgetCC3100.c"

>> Compilation failure
subdir_rules.mk:86: recipe for target 'httpgetCC3100.obj' failed
"../httpgetCC3100.c", line 56: fatal error #1965: cannot open source file "sys/socket.h"
1 catastrophic error detected in the compilation of "../httpgetCC3100.c".
Compilation terminated.
gmake: *** [httpgetCC3100.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Can you please help me to over come from this errors, so can run my code.

Thanks,

Regards,

Raghu DS

  • I'm not familiar with the tirtos software you are using.  But I can give you some general hints.

    Raghunandana DS said:

    1. #1965 cannot open source file "bits/sockaddr.h"

    2. #1965 cannot open source file "sys/socket.h"

    This usually happens because you are missing a --include_path option, or one of them is wrong.  The option --include_path=directory_path tells the compiler to add that directory to the list of places to search for (among other things) include files.  So search your system for those files, then make sure an --include_path option has the corresponding directory.

    Thanks and regards,

    -George

  • Hi G Mock,
    Thanks for reply, I search in my system for these files, they are found in the exact path directory and included in the project include folder also.

    Regards,
    Raghu DS
  • So you are saying that if you take one of the --include_path directories, and append "bits/sockaddr.h" to it, that forms the correct full path to that file.  Is that correct?  Please check very carefully.  This part of the compiler has worked the same way for a long time, with no problems.  It is highly unlikely to have failed in this case.

    Thanks and regards,

    -George