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.

CCS 6.1.1 rebuild failed....

Hi All,


Today I upgraded from 6.1.0 to 6.1.1 by uninstalling 6.1.0 and installing 6.1.1.  Rebuild of my main project wasn't successful : I got the following errors while involing the linker:

'Building target: BPg.out'
'Invoking: ARM Linker'
'Flags: -mv7A8 --code_state=32 --abi=eabi -me -O0 -g --rtti --cpp_default --gen_acp_raw --gen_acp_xref --define=am3359 --define=DEBUG --diag_wrap=off --diag_warning=225 --display_error_number -z -m"BPg.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include" --reread_libs --display_error_number --diag_wrap=off --warn_sections --xml_link_info="BPg_linkInfo.xml" --ram_model'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -@"ccsLinker.opt" -o "BPg.out"
<Linking>
warning #10366-D: automatic library build: using library "C:\ti\ccsv6\tools\compiler\ti-cgt-arm_5.2.5\lib\rtsv7A8_A_le_eabi_eh.lib" for the first time, so it must be built.  This may take a few minutes.
      0 [main] sh 1432 sync_with_child: child 7812(0x1E4) died before initialization with status code 0xC0000142
      9 [main] sh 1432 sync_with_child: *** child state waiting for longjmp
C:/Users/Paul/AppData/Local/Temp/make4404-1.sh: fork: Resource temporarily unavailable
gmake.exe[1]: *** [library] Error 128
>> ERROR: mklib: gmake error during rtsv7A8_A_le_eabi_eh.lib build
warning #10207-D: automatic RTS selection:  resolving index library "libc.a" to "rtsv7A8_A_le_eabi_eh.lib", but "rtsv7A8_A_le_eabi_eh.lib" was not found
warning #10247-D: creating output section ".ARM.extab" without a SECTIONS specification
warning #10247-D: creating output section ".init_array" without a SECTIONS specification
warning #10247-D: creating output section ".ARM.exidx" without a SECTIONS specification

 undefined                                                   first referenced                                                                                          
  symbol                                                         in file                                                                                               
 ---------                                                   ----------------                                                                                          
 std::_String_base::_Xlen() const                            ./System/Event.obj                                                                                        
 std::_String_base::_Xran() const                            ./System/Event.obj                                                                                        
 Typeinfo for const char *                                   ./System/Storage.obj                                                                                      
 Virtual function table for __cxxabiv1::__class_type_info    ./main.obj                                                                                                
 Virtual function table for __cxxabiv1::__pointer_type_info  ./Peripherals/I2C.obj                                                                                     
 Virtual function table for __cxxabiv1::__si_class_type_info ./System/BoardID.obj                                                                                      
 operator delete[] (void *)                                  ./System/Exception.obj                                                                                    
 operator delete (void *)                                    ./main.obj                                                                                                
 operator delete (void *, void *)                            ./Peripherals/PRCMClockDomain.obj                                                                         
 operator new[] (unsigned int)                               ./System/Exception.obj                                                                                    
 operator new (unsigned int)                                 ./main.obj                                                                                                
 operator new (unsigned int, void *)                         ./System/Storage.obj                                                                                      
 __STACK_END                                                 C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\system_config\Debug\system.lib<init.obj>
 __TI_auto_init                                              C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\system_config\Debug\system.lib<init.obj>
 __aeabi_atexit                                              ./System/Event.obj                                                                                        
 __aeabi_uidivmod                                            ./System/Event.obj                                                                                        
 __aeabi_unwind_cpp_pr0                                      ./System/BoardID.obj                                                                                      
 __aeabi_unwind_cpp_pr1                                      ./main.obj                                                                                                
 __cxa_allocate_exception                                    ./System/Event.obj                                                                                        
 __cxa_begin_catch                                           ./main.obj                                                                                                
 __cxa_end_catch                                             ./main.obj                                                                                                
 __cxa_end_cleanup                                           ./main.obj                                                                                                
 __cxa_pure_virtual                                          ./System/Display.obj                                                                                      
 __cxa_rethrow                                               ./System/Event.obj                                                                                        
 __cxa_throw                                                 ./System/Event.obj                                                                                        
 __dso_handle                                                ./System/Event.obj                                                                                        
 memcpy                                                      ./System/BoardID.obj                                                                                      
 memmove                                                     ./System/Event.obj                                                                                        
 memset                                                      ./System/BoardID.obj                                                                                      
 snprintf                                                    ./main.obj                                                                                                
 strcpy                                                      ./System/Exception.obj                                                                                    
 strlen                                                      ./System/Event.obj                                                                                        

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "BPg.out" not built

>> Compilation failure
gmake: *** [BPg.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

How can I solve this problem?  I suppose it has somthing to do with the C/C++ runtime environment, but don't know where to look for.

Thanks in advance,

Paul

  • You are building with an upgraded compiler.  The first time you link with a new version, the compiler needs to build the RTS library you use.  (A few of the most commonly used libraries are supplied with the compiler.  If you use one of those libraries, this step is omitted.)  This library build failed for you.  I've never seen the error messages you got ...

    Paul Van den Bergh said:
    0 [main] sh 1432 sync_with_child: child 7812(0x1E4) died before initialization with status code 0xC0000142 9 [main] sh 1432 sync_with_child: *** child state waiting for longjmp

    Those come from the OS, and not TI tools.  My guess is your system is low on available memory, or something like that.  

    I suggest you try building that library manually.  The details are on this page.  Once you have a command shell configured with the correct executable paths, the key command is ...

    $ mklib --pattern=rtsv7A8_A_le_eabi_eh.lib

    Thanks and regards,

    -George

  • Hi George,

    Thanks for your reply.

    I refer to my previous post re memory settings (e2e.ti.com/.../456967). My workstation is a Intel coreI7 with 16GB RAM memory, so I don't think there isn't enough physical memory, but there must exist a setting that sets te maximum amout of available memory to CCS. But I don't know these settings... Any ideas ?

    Thanks again.
    Paul
  • Are you using MSYS? I found a thread on the web for a problem which has the same error message, but I don't know if they came to a proper solution:
    www.avrfreaks.net/.../failed-build-why
  • Archaeologist, I don't know if I'm using MSYS, but AFAIK that's a kind of cygwin surroundings, and why should I use that with a cross-compiler for Windows?

    By the way, I noticed that the TI compiler ver 5.2.5 wasn't installed with 6.1.1. I copied it from another computer, registered it in Windows (.reg file). After refactoring ALL the projects in the solution to that compiler version I was able to rebuild my projects under CCS 6.1.0.

    This, of course, is only a workaround.

    Am I the only one with this problem?
  • It's the first time I've seen this particular error message, which seems to come from MSYS. Yes, it is a unix-like set of tools for Windows, like Cygwin; however, I'm not very familiar with it. We do have people who've had trouble using mklib and Cygwin at the same time, but this does not look like any of those problems.