ARM Compiler - Problem

I have received Realview Developer Suite(Evaluation CD), and started to work on it. When I compile file ‘Hello_World’ in Win32 Debug mode(Hello_World_rte), everything is OK, and I can run embedded application on WISMO evaluation board. But, here is a problem: When I compile file ‘Hello_World’ in Win32 Wismo_Target (Hello_World), I get the following message:

SGT_VER = v1.2.11

SGT_DIR = /cygdrive/C/OpenAT/Tools/SGT/v1.2.11

Scripts path for SGT :

/cygdrive/C/OpenAT/Tools/SGT/v1.2.11/script_sgt

Type help_sgt for a list of SGT commands


Check environment settings…

Launch a full library or binary process

---------------------------------------… Dependency graph is being built …

../out/arm_Hello_World_32.dep

… Build sources filtering rules for arm_Hello_World_32

../out/arm_Hello_World_32.flt


Get …/…/src/hello_world.c hello_world.c

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_types.h wm_types.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_apm.h wm_apm.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_stdio.h wm_stdio.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_remote.h wm_remote.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_at.h wm_at.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_bases.h wm_bases.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_io.h wm_io.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_os.h wm_os.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_fcm.h wm_fcm.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_bus.h wm_bus.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_list.h wm_list.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_scmem.h wm_scmem.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_gprs.h wm_gprs.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_snd.h wm_snd.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_ad.h wm_ad.h

Get C:/OpenAT/V303/TgtGen/WmHeader/wm_gps.h wm_gps.h

… Compiling hello_world.c

C:\Program Files\ARM\RDI\Targets\Remote_A\1.3.1\113\eval2-sc\win_32-pentium;C:\Program Files\ARM\RDI\rdimsvr\1.3.1\113\eval2-sc\win_32-pentium;C:\Program Files\ARM\RVARMulator\v6ARMulator\1.4.1\241\eval2-sc\win_32-pentium;C:\Program Files\ARM\RVARMu

lator\ARMulator\1.4.1\211\eval2-sc\win_32-pentium/tcc: not found

make: *** [hello_world.o] Error 127


Find errors occurred when using SGT

Analyze errors in Log files

WARNING : arm_Hello_World_32_status.log is incomplete. Check manually if any errors exist


Analyze errors in tmp files if they exists.


Libraries available in out directory :



End process.

Hello_World - 1 error(s), 1 warning(s)

Compiler doesn’t make output file “arm_Hello_World_32.wpb.dwl”, and get Error 127. Can you help me to solve this problem with ARM compiler? Thank you in advance!

Hi,
From the error message that you are receiving, it seems that the path for ARM compiler is not correct.
Whenever, an Open-AT application is compiled in target mode using ARM compiler, the $COMPILER_DIR environment variable is used to find out the directory where the executable compiler (tcc.exe) resides. The $COMPILER_DIR variable is set equal to $ARMDLL variable in /TgtGen/WmGen/mak/options.mak file. The $ARMDLL variable is set on installation of ARM ADS compiler. Generally, the path for $ARMDLL variable (and hence the directory which contains the tcc.exe) is “C:\Program Files\ARM\ADSv1_2\BIN”. This directory contains the ARM cross compiler.
In your case, it seems that $ARMDLL variable is not set to “C:\Program Files\ARM\ADSv1_2\BIN”. You can verify it by executing “export” command in Cygwin and checking the value of $ARMDLL environment variable.
To solve the problem, you can modify the path value of $ARMDLL environment variable using “Control Panel -> System -> Advanced -> Environment Variables”. However, a better method is to reinstall the ARM compiler again which would set the correct value of these variables.

Best Regards,
Open AT Fan.

Hello OpenAT_Fun,

Firstly, I want to thank you for quickly answers. I have modified the path value of $ARMDLL environment variable, but problem still exist. When I compile file ‘Hello_World’ in Win32 Wismo_Target (Hello_World), I get the following message:

--------------------Configuration: Hello_World - Win32 Wismo_Target--------------------


Software Generation Toolkit

SGT_VER = v1.2.11
SGT_DIR = /cygdrive/C/OpenAT/Tools/SGT/v1.2.11
Scripts path for SGT :
/cygdrive/C/OpenAT/Tools/SGT/v1.2.11/script_sgt

Type help_sgt for a list of SGT commands


Check environment settings…

Launch a full library or binary process


Copy all needed library and object files

Make links /cygdrive/C/OpenAT/V303/TgtGen/Adl/Library/arm_wmadl_303.b03.lib …/out/arm_wmadl_303.b03.lib

… Link step in progress …

… Link arm_Hello_World_32.bin …

Licence found.
Your trial started at: Mon Jan 16 00:00:00 2006
Your trial will end at: Thu Mar 02 23:59:59 2006
make: *** [make_single_bin] Error 1


Find errors occurred when using SGT

Analyze errors in Log files

WARNING : arm_Hello_World_32_status.log is incomplete. Check manually if any errors exist

Analyze errors in tmp files if they exists.

 arm_Hello_World_32_err_lnk.tmp : 13 : Error: L6242E: Cannot link object opec_os.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 13 : Error: L6242E: Cannot link object opec_os.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 55 : Error: L6242E: Cannot link object adl_RspHandler.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 55 : Error: L6242E: Cannot link object adl_RspHandler.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 108 : Error: L6242E: Cannot link object adl_TimerHandler.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 108 : Error: L6242E: Cannot link object adl_TimerHandler.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 167 : Error: L6242E: Cannot link object opec_at.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 167 : Error: L6242E: Cannot link object opec_at.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 184 : Error: L6242E: Cannot link object opec_std.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 184 : Error: L6242E: Cannot link object opec_std.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 205 : Error: L6242E: Cannot link object opec_lst.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 205 : Error: L6242E: Cannot link object opec_lst.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 228 : Error: L6242E: Cannot link object adl_memory.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 228 : Error: L6242E: Cannot link object adl_memory.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 241 : Error: L6242E: Cannot link object adl_AppliInit.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 241 : Error: L6242E: Cannot link object adl_AppliInit.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 311 : Error: L6242E: Cannot link object adl_EventMachine.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 311 : Error: L6242E: Cannot link object adl_EventMachine.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 333 : Error: L6242E: Cannot link object adl_CmdHandler.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 333 : Error: L6242E: Cannot link object adl_CmdHandler.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 381 : Error: L6242E: Cannot link object adl_CmdStackHandler.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 381 : Error: L6242E: Cannot link object adl_CmdStackHandler.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 411 : Error: L6242E: Cannot link object adl_call.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 411 : Error: L6242E: Cannot link object adl_call.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 469 : Error: L6242E: Cannot link object adl_str.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 469 : Error: L6242E: Cannot link object adl_str.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 491 : Error: L6242E: Cannot link object adl_CmdProcessor.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 491 : Error: L6242E: Cannot link object adl_CmdProcessor.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 531 : Error: L6242E: Cannot link object opec_asm.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 531 : Error: L6242E: Cannot link object opec_asm.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 573 : Error: L6242E: Cannot link object opec_cus.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 573 : Error: L6242E: Cannot link object opec_cus.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 597 : Error: L6242E: Cannot link object adl_traces.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 597 : Error: L6242E: Cannot link object adl_traces.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 620 : Error: L6242E: Cannot link object adl_error.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 620 : Error: L6242E: Cannot link object adl_error.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 636 : Error: L6242E: Cannot link object adl_flash.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 636 : Error: L6242E: Cannot link object adl_flash.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 669 : Error: L6242E: Cannot link object adl_gpio.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 669 : Error: L6242E: Cannot link object adl_gpio.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 705 : Error: L6242E: Cannot link object adl_bus.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 705 : Error: L6242E: Cannot link object adl_bus.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 732 : Error: L6242E: Cannot link object adl_fcm.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 732 : Error: L6242E: Cannot link object adl_fcm.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 802 : Error: L6242E: Cannot link object adl_UnSoHandler.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 802 : Error: L6242E: Cannot link object adl_UnSoHandler.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 824 : Error: L6242E: Cannot link object adl_sim.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 824 : Error: L6242E: Cannot link object adl_sim.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 862 : Error: L6242E: Cannot link object adl_sms.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 862 : Error: L6242E: Cannot link object adl_sms.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 907 : Error: L6242E: Cannot link object adl_gprs.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 907 : Error: L6242E: Cannot link object adl_gprs.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 972 : Error: L6242E: Cannot link object adl_ad.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 972 : Error: L6242E: Cannot link object adl_ad.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1052 : Error: L6242E: Cannot link object opec_fcm.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1052 : Error: L6242E: Cannot link object opec_fcm.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1070 : Error: L6242E: Cannot link object opec_fcmtable.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1070 : Error: L6242E: Cannot link object opec_fcmtable.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1075 : Error: L6242E: Cannot link object opec_io.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1075 : Error: L6242E: Cannot link object opec_io.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1091 : Error: L6242E: Cannot link object opec_bus.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1091 : Error: L6242E: Cannot link object opec_bus.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1101 : Error: L6242E: Cannot link object opec_gpr.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1101 : Error: L6242E: Cannot link object opec_gpr.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1112 : Error: L6242E: Cannot link object opec_ad.o as its attributes are incompatible with the image attributes.
 arm_Hello_World_32_err_lnk.tmp : 1112 : Error: L6242E: Cannot link object opec_ad.o as its attributes are incompatible with the image attributes.

Libraries available in out directory :
arm_wmadl_303.b03.lib,


End process.

Hello_World - 67 error(s), 1 warning(s)

Can you help me to solve this problem? Thank you in advance!

Best Regards,
belikg

Hi,
Sorry for the delayed answer. I think there is some compatibility problem between Realview Developer Suite and ADL libraries which is causing this problem. I have never experienced such problem (I have ARM developer suite installed on my PC).
You should contact Wavecom Technical Support to find out if some problem like this exists.

Best Regards,
Open AT Fan.