Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

I make projectname.mak file using Real View ARM compiler 2.1

When i run nmake -f mcoupons.mak command where "mcoupons" is project name
I get foolowing error.

TARGET C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons.elf
C:\Program Files\ARM\bin\armlink -o C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons.elf -ropi -rwpi -entry 0x8000 -first AEEMod_Load
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\Program' : return code '0x1'
Stop.

If i change TARGET path from
TARGET =C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons
to
TARGET =C:\Program Files\BREW SDK v2.1.0\Examples\mcoupons\mcoupons
or
TARGET =C:\"Program Files""\""BREW SDK v2.1.0""\Examples\mcoupons\mcoupons

I get following error
NMAKE : fatal error U1071: cycle in dependency tree for target 'C:\""Program'
Stop.

Please , give some solution.

"

this is a dos problem..
try using like this..
'C:\Program Files\BREW SDK v2.1.0\Examples\mcoupons\mcoupons'

this is a dos problem..
try using like this..
'C:\Program Files\BREW SDK v2.1.0\Examples\mcoupons\mcoupons'

I try to use
TARGET ='C:\Program Files\BREW SDK v2.1.0\Examples\mcoupons\mcoupons'
also
TARGET ="C:\Program Files\BREW SDK v2.1.0\Examples\mcoupons\mcoupons'"
error occured
NMAKE : fatal error U1071: cycle in dependency tree for target ''C:\Program'

I try to use
TARGET ='C:\Program Files\BREW SDK v2.1.0\Examples\mcoupons\mcoupons'
also
TARGET ="C:\Program Files\BREW SDK v2.1.0\Examples\mcoupons\mcoupons'"
error occured
NMAKE : fatal error U1071: cycle in dependency tree for target ''C:\Program'

if this type of path works fine. you may plz use it as such... its should be an issue.. C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons

if this type of path works fine. you may plz use it as such... its should be an issue.. C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons

shivendra;82431 wrote:if this type of path works fine. you may plz use it as such... its should be an issue.. C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons
gives error
TARGET C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons. elf
C:\Program Files\ARM\bin\armlink -o C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons. elf -ropi -rwpi -entry 0x8000 -first AEEMod_Load
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\Program' : return code '0x1'
Stop.

shivendra;82431 wrote:if this type of path works fine. you may plz use it as such... its should be an issue.. C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons
gives error
TARGET C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons. elf
C:\Program Files\ARM\bin\armlink -o C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons. elf -ropi -rwpi -entry 0x8000 -first AEEMod_Load
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\Program' : return code '0x1'
Stop.

this error comes bcoz of ur ARMLINK Path.. (i.e. C:\Program Files\ARM\bin\armlink)
wherever your ARMLINK variable or anything similar is defined change it to :
C:\Progra~1\ARM\bin\armlink
or
'C:\Program Files\ARM\bin\armlink'
Also TARGET is usually defined as:-
TARGET = myproj //where myproj is the name you want to give to your MOD/ELF file..
POST your mak file, if still does not works..

this error comes bcoz of ur ARMLINK Path.. (i.e. C:\Program Files\ARM\bin\armlink)
wherever your ARMLINK variable or anything similar is defined change it to :
C:\Progra~1\ARM\bin\armlink
or
'C:\Program Files\ARM\bin\armlink'
Also TARGET is usually defined as:-
TARGET = myproj //where myproj is the name you want to give to your MOD/ELF file..
POST your mak file, if still does not works..

LD = $(ARMBIN)\armlink # ARM ADS linker

LD = $(ARMBIN)\armlink # ARM ADS linker

Thanks for reply
armlink.exe is located at
C:\Program Files\ARM\RVCT\Programs\4.1\462\win_32-pentium
I set
LD = C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium\armlink
Now I am getting another error of Licence file.
Fatal error: L9932E: Cannot obtain license for Linker (feature armlink) with lic
ense version >= 4.1201005
Cannot find license file.
The license files (or license server system network addresses) attempted are
listed below. Use LM_LICENSE_FILE to use a different license file,
or contact your software provider for a license file.
Feature: armlink
Filename: C:\flexlm\license.dat
License path: C:\flexlm\license.dat;
FLEXnet Licensing error:-1,359. System Error: 2 "No such file or directory"
For further information, refer to the FLEXnet Licensing documentation,
available at "www.acresso.com".
Cannot obtain license for Linker (feature bsp_armlink) with license version >= 4
.1201005
Cannot find license file.
The license files (or license server system network addresses) attempted are
listed below. Use LM_LICENSE_FILE to use a different license file,
or contact your software provider for a license file.
Feature: bsp_armlink
Filename: C:\flexlm\license.dat
License path: C:\flexlm\license.dat;
FLEXnet Licensing error:-1,359. System Error: 2 "No such file or directory"
For further information, refer to the FLEXnet Licensing documentation,
available at "www.acresso.com".
Finished: 1 information, 4 warning, 0 error and 1 fatal error messages.
NMAKE : fatal error U1077: 'C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium
\armlink' : return code '0x1'

Thanks for reply
armlink.exe is located at
C:\Program Files\ARM\RVCT\Programs\4.1\462\win_32-pentium
I set
LD = C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium\armlink
Now I am getting another error of Licence file.
Fatal error: L9932E: Cannot obtain license for Linker (feature armlink) with lic
ense version >= 4.1201005
Cannot find license file.
The license files (or license server system network addresses) attempted are
listed below. Use LM_LICENSE_FILE to use a different license file,
or contact your software provider for a license file.
Feature: armlink
Filename: C:\flexlm\license.dat
License path: C:\flexlm\license.dat;
FLEXnet Licensing error:-1,359. System Error: 2 "No such file or directory"
For further information, refer to the FLEXnet Licensing documentation,
available at "www.acresso.com".
Cannot obtain license for Linker (feature bsp_armlink) with license version >= 4
.1201005
Cannot find license file.
The license files (or license server system network addresses) attempted are
listed below. Use LM_LICENSE_FILE to use a different license file,
or contact your software provider for a license file.
Feature: bsp_armlink
Filename: C:\flexlm\license.dat
License path: C:\flexlm\license.dat;
FLEXnet Licensing error:-1,359. System Error: 2 "No such file or directory"
For further information, refer to the FLEXnet Licensing documentation,
available at "www.acresso.com".
Finished: 1 information, 4 warning, 0 error and 1 fatal error messages.
NMAKE : fatal error U1077: 'C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium
\armlink' : return code '0x1'

these are license related errors. check with ARM.
check if u are connected to N/W while building the proj.
other possibilities:
[FLEXnet Licensing error:-1,359]
http://www.artwork.com/support/flexlm/lmtools_file.htm
[L9932E]
http://www.keil.com/support/docs/3420.htm

these are license related errors. check with ARM.
check if u are connected to N/W while building the proj.
other possibilities:
[FLEXnet Licensing error:-1,359]
http://www.artwork.com/support/flexlm/lmtools_file.htm
[L9932E]
http://www.keil.com/support/docs/3420.htm

I used temparary license file which i get while downloading RVP41-BN-00000-r4p1-00rel0.zip
Now when I comipled .mak file i am getting following error.
TARGET C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons.elf
C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium\armlink -o C:\PROGR
A~1\BREWSD~1.0\Examples\mcoupons\mcoupons.elf -ropi -rwpi -entry 0x8000 -first
AEEMod_Load
Warning: L3910W: Old syntax, please use '--ropi'.
Warning: L3910W: Old syntax, please use '--rwpi'.
Warning: L3910W: Old syntax, please use '--entry'.
Warning: L3910W: Old syntax, please use '--first'.
Warning: L9931W: Your license for Linker (feature armlink) will expire in 30 days
Fatal error: L6015U: Could not find any input files to link.
Finished: 0 information, 5 warning, 0 error and 1 fatal error messages.
NMAKE : fatal error U1077: 'C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium\armlink' : return code '0x1'
Plz reply how to solve Fatal error: L6015U: Could not find any input files to link.

I used temparary license file which i get while downloading RVP41-BN-00000-r4p1-00rel0.zip
Now when I comipled .mak file i am getting following error.
TARGET C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons.elf
C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium\armlink -o C:\PROGR
A~1\BREWSD~1.0\Examples\mcoupons\mcoupons.elf -ropi -rwpi -entry 0x8000 -first
AEEMod_Load
Warning: L3910W: Old syntax, please use '--ropi'.
Warning: L3910W: Old syntax, please use '--rwpi'.
Warning: L3910W: Old syntax, please use '--entry'.
Warning: L3910W: Old syntax, please use '--first'.
Warning: L9931W: Your license for Linker (feature armlink) will expire in 30 days
Fatal error: L6015U: Could not find any input files to link.
Finished: 0 information, 5 warning, 0 error and 1 fatal error messages.
NMAKE : fatal error U1077: 'C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium\armlink' : return code '0x1'
Plz reply how to solve Fatal error: L6015U: Could not find any input files to link.

the link command should look like
TARGET mysms.elf
C:\Apps\Ads120\bin\armlink -o mysms.elf -ropi -reloc -entry 0x8000 AEEModGen.o AEEAppGen.o web.o mysms.o -first AEEMod_Load
your's:-
TARGET C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons. elf
C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium\armlink -o C:\PROGR
A~1\BREWSD~1.0\Examples\mcoupons\mcoupons.elf -ropi -rwpi -entry 0x8000 -first
AEEMod_Load
note that .o files are missing in your command. it has a .elf instead.
check the variable OBJS in your MAK.
it should defined containing all direct objects dependencies of your project, that were compiled by ur project:-
OBJS = AEEModGen.o AEEAppGen.o myfile1.o myfile2.o
If does not works:-
a sample MAK is attached. try manipulating required paths, OBJS (to include all your dependent .o files) & TARGET.

the link command should look like
TARGET mysms.elf
C:\Apps\Ads120\bin\armlink -o mysms.elf -ropi -reloc -entry 0x8000 AEEModGen.o AEEAppGen.o web.o mysms.o -first AEEMod_Load
your's:-
TARGET C:\PROGRA~1\BREWSD~1.0\Examples\mcoupons\mcoupons. elf
C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium\armlink -o C:\PROGR
A~1\BREWSD~1.0\Examples\mcoupons\mcoupons.elf -ropi -rwpi -entry 0x8000 -first
AEEMod_Load
note that .o files are missing in your command. it has a .elf instead.
check the variable OBJS in your MAK.
it should defined containing all direct objects dependencies of your project, that were compiled by ur project:-
OBJS = AEEModGen.o AEEAppGen.o myfile1.o myfile2.o
If does not works:-
a sample MAK is attached. try manipulating required paths, OBJS (to include all your dependent .o files) & TARGET.

I add
OBJS = AEEAppGen.o AEEModGen.o mscreen.o decode.o httpCall.o mcoupons.o
Now I get error
OBJECT mscreen.o
C:\Program Files\ARM\bin\armcc -c -DDYNAMIC_APP -cpu ARM7TDMI -apcs /rop
i/interwork/norwpi -littleend -zo -fa -g -Ospace -O2 -I. -IC:\Program Files\BREW
SDK v2.1.0\inc -I "C:\PROGRA~1\BREWSD~1.0\inc" -o mscreen.o mscreen.c
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\Program' : return code '0x1'
If I use
OBJS = AEEAppGen.o AEEModGen.o mcoupons.o mscreen.o decode.o httpCall.o
then error is for mcoupons.o file
If i use
OBJS = AEEAppGen.o AEEModGen.o decode.o httpCall.o
Error: L6218E: Undefined symbol AEEClsCreateInstance (referred from AEEModGen.o) which is defined in mcoupons.c

I add
OBJS = AEEAppGen.o AEEModGen.o mscreen.o decode.o httpCall.o mcoupons.o
Now I get error
OBJECT mscreen.o
C:\Program Files\ARM\bin\armcc -c -DDYNAMIC_APP -cpu ARM7TDMI -apcs /rop
i/interwork/norwpi -littleend -zo -fa -g -Ospace -O2 -I. -IC:\Program Files\BREW
SDK v2.1.0\inc -I "C:\PROGRA~1\BREWSD~1.0\inc" -o mscreen.o mscreen.c
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\Program' : return code '0x1'
If I use
OBJS = AEEAppGen.o AEEModGen.o mcoupons.o mscreen.o decode.o httpCall.o
then error is for mcoupons.o file
If i use
OBJS = AEEAppGen.o AEEModGen.o decode.o httpCall.o
Error: L6218E: Undefined symbol AEEClsCreateInstance (referred from AEEModGen.o) which is defined in mcoupons.c

see the error returned:-
NMAKE : fatal error U1077: 'C:\Program' : return code '0x1'
its again not able to find armcc coz of DOS issue with spaces:-
C:\Program Files\ARM\bin\armcc
either use:
C:\Progra~1\ARM\bin\armcc or 'C:\Program Files\ARM\bin\armcc' as your ARMCC.

see the error returned:-
NMAKE : fatal error U1077: 'C:\Program' : return code '0x1'
its again not able to find armcc coz of DOS issue with spaces:-
C:\Program Files\ARM\bin\armcc
either use:
C:\Progra~1\ARM\bin\armcc or 'C:\Program Files\ARM\bin\armcc' as your ARMCC.

I change
ARMCC = C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium\armcc
i get
Error: L6242E: Cannot link object mscreen.o as its attributes are incompatible w
ith the image attributes.
... require 4-byte alignment of 8-byte datatypes clashes with require 8-byte
alignment of 8-byte datatypes.
Error: L6242E: Cannot link object mcoupons.o as its attributes are incompatible
with the image attributes.
... require 4-byte alignment of 8-byte datatypes clashes with require 8-byte
alignment of 8-byte datatypes.
Finished: 2 information, 5 warning and 2 error messages.
NMAKE : fatal error U1077: 'C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium
\armlink' : return code '0x1'
I am using
Brew sdk 2.1
ARM compiler - 4.0
In one of the post it is written to use lower version ARM compiler 3.0 . what need to be done.

I change
ARMCC = C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium\armcc
i get
Error: L6242E: Cannot link object mscreen.o as its attributes are incompatible w
ith the image attributes.
... require 4-byte alignment of 8-byte datatypes clashes with require 8-byte
alignment of 8-byte datatypes.
Error: L6242E: Cannot link object mcoupons.o as its attributes are incompatible
with the image attributes.
... require 4-byte alignment of 8-byte datatypes clashes with require 8-byte
alignment of 8-byte datatypes.
Finished: 2 information, 5 warning and 2 error messages.
NMAKE : fatal error U1077: 'C:\PROGRA~1\ARM\RVCT\Programs\4.1\462\win_32-pentium
\armlink' : return code '0x1'
I am using
Brew sdk 2.1
ARM compiler - 4.0
In one of the post it is written to use lower version ARM compiler 3.0 . what need to be done.

hmm.
check this. http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka4223....
try adding --apcs /adsabi compilation flags .. CFLAGS or APCS.
but i don't think this would solve the issue as these flags seem to be removed in RVCT4.0..
try contacting ARM or else switch back to lower version of ARM tools.

hmm.
check this. http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka4223....
try adding --apcs /adsabi compilation flags .. CFLAGS or APCS.
but i don't think this would solve the issue as these flags seem to be removed in RVCT4.0..
try contacting ARM or else switch back to lower version of ARM tools.

Please send link to download AMR RVCT version 3.0
It not available on https://silver.arm.com/ site it's patch is available.

Please send link to download AMR RVCT version 3.0
It not available on https://silver.arm.com/ site it's patch is available.