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: not able to run armcl compiler in Cygwin environment

Tool/software: TI C/C++ Compiler

Hi,

I am trying to compile few source files with armcl compiler in windows environment with cygwin. I have copied the compiler in the base location c:\ti\ and trying to run make to use the same.But i am getting the following error. "can not execute the binary file " which shows compiler is not running at all.

E:\ngi\DRAGON2_M4_EU_VIDEO>set CYGPATH=C:/cygwin/bin/cygpath.exe

E:\ngi\DRAGON2_M4_EU_VIDEO>make mib_m4
Makefile:193: ***** VAG MIB-VIP Build started *****
Makefile:195: TI_PLATFORM: benelli_M4
Makefile:396: Predefines: BUILD_DATE:none | BUILD_ID:none | UBN:none | Dirana3=R
3.1 | AMP:none | BRAND:none | NAV:none | MISRA:none | DWARF_V:default
cygwin warning:
MS-DOS style path detected: tools\mpi_gen\mpi_gen_exclude.mk
Preferred POSIX equivalent is: tools/mpi_gen/mpi_gen_exclude.mk
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
cygwin.com/.../using.html
Compiling ps_data.c for mib_m4
C:/ti/arm_5.0.5/bin/armcl: C:/ti/arm_5.0.5/bin/armcl: cannot execute binary file

/bin/cat: out/mib_m4/obj/ps_data.tmp: No such file or directory
/bin/rm: cannot remove `out/mib_m4/obj/ps_data.tmp': No such file or directory
make: *** [out/mib_m4/obj/ps_data.o] Error 1

Can someone tell me how to run the armcl compiler using cygwin make in windows.

And when i tried to run the compiler in the windows command prompt.It shows the below error

C:\ti\arm_5.0.5\bin>armcl -c hello.c
'armcl' is not recognized as an internal or external command,
operable program or batch file.

C:\ti\arm_5.0.5\bin>

It will be great if i get some help on this.

With regards,

Jeyaseelan

  • Please run the Cygwin command file on armcl.  You should see this ...

    $ file armcl
    armcl: PE32 executable (console) Intel 80386, for MS Windows

    What do you see?

    Thanks and regards,

    -George

  • Hi George,

    When tried to run file command,it says it is not present.Then ran objdump with -f ,which shows it is of elf format.Is this format acceptable.

    C:\ti\arm_5.0.5\bin>file armcl
    'file' is not recognized as an internal or external command,
    operable program or batch file.

    C:\ti\arm_5.0.5\bin>objdump -f armcl

    armcl: file format elf32-i386
    architecture: i386, flags 0x00000112:
    EXEC_P, HAS_SYMS, D_PAGED
    start address 0x08048130

    With regards,

    Jeyaseelan

  • The same compiler works well when running with ccsv5 on Windows which uses gmake.

    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all

    'Building file: ../main.c'

    'Invoking: ARM Compiler'

    "C:/ti/ccsv5/tools/compiler/arm_5.0.4/bin/armcl" -mv7M4 --code_state=16 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.4/include" --define=CORE_NUM=0 --define=IPU_NUM=1 --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp" "../main.c"

    "../main.c", line 13: warning #552-D: variable "c" was set but never used

    'Finished building: ../main.c'

    ' '

    'Building file: ../pin_mux.c'

    'Invoking: ARM Compiler'

    "C:/ti/ccsv5/tools/compiler/arm_5.0.4/bin/armcl" -mv7M4 --code_state=16 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.4/include" --define=CORE_NUM=0 --define=IPU_NUM=1 --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="pin_mux.pp" "../pin_mux.c"

    'Finished building: ../pin_mux.c'

    ' '

    'Building target: testnew12345.out'

    'Invoking: ARM Linker'

    "C:/ti/ccsv5/tools/compiler/arm_5.0.4/bin/armcl" -mv7M4 --code_state=16 --abi=eabi -me -g --define=CORE_NUM=0 --define=IPU_NUM=1 --diag_warning=225 --display_error_number --diag_wrap=off -z --stack_size=0x800 -m"testnew12345.map" --heap_size=0x800 -i"C:/ti/ccsv5/tools/compiler/arm_5.0.4/lib" -i"C:/ti/ccsv5/tools/compiler/arm_5.0.4/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="testnew12345_linkInfo.xml" --rom_model -o "testnew12345.out" "./pin_mux.obj" "./main.obj" -l"libc.a"

    <Linking>

    'Finished building target: testnew12345.out'

    ' '

    **** Build Finished ****
  • jeyaseelan kirubaharan said:

    C:\ti\arm_5.0.5\bin>objdump -f armcl

    armcl: file format elf32-i386
    architecture: i386, flags 0x00000112:
    EXEC_P, HAS_SYMS, D_PAGED
    start address 0x08048130

    That's a Linux executable.  Not a Windows executable.  A Windows executable looks like this ...

    armcl:     file format pei-i386
    architecture: i386, flags 0x0000010a:
    EXEC_P, HAS_DEBUG, D_PAGED
    start address 0x0048b4f0

    Thanks and regards,

    -George

  • This ...

    jeyaseelan kirubaharan said:
    C:/ti/ccsv5/tools/compiler/arm_5.0.4/bin/armcl

    ... is a different compiler version in a different location.  It is probably a Windows executable.

    Thanks and regards,

    -George

  • Hi George,

    After installing windows compiler,it started compiling.Thanks.

    With regards,

    Jeyaseelan