How to compile with GNU compiler? | developer.brewmp.com How to compile with GNU compiler? | developer.brewmp.com

Developer

How to compile with GNU compiler?

Can someone please tell me where to find a good GNU compiler for BREW...

And what are the step for making it work.

Thanks

refer to
Tyndal's Post

refer to
Tyndal's Post

I've done all the steps for compiling with nmake and I get the following error :
Microsoft(R) Windows DOS
C:\PROJETS\BREW\ORBITAL>nmake /f orbital.mak
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
c:\gnude\bin\arm-elf-ld.exe -Ttext 0 --emit-relocs -entry AEEMod_Load -o
Orbital.elf -Lc:\gnude/lib/gcc-lib/arm-elf/3.3 AEEModGen.o AEEAppGen.o GCCReso
lver.o Orbital.o -lgcc
/cygdrive/c/gnude/bin/arm-elf-ld: cannot find -lgcc
NMAKE : fatal error U1077: 'c:\gnude\bin\arm-elf-ld.exe' : return code '0x1'
Stop.
What this mean?
Why can't we compile with the makefile generated by visual studio?

I've done all the steps for compiling with nmake and I get the following error :
Microsoft(R) Windows DOS
C:\PROJETS\BREW\ORBITAL>nmake /f orbital.mak
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
c:\gnude\bin\arm-elf-ld.exe -Ttext 0 --emit-relocs -entry AEEMod_Load -o
Orbital.elf -Lc:\gnude/lib/gcc-lib/arm-elf/3.3 AEEModGen.o AEEAppGen.o GCCReso
lver.o Orbital.o -lgcc
/cygdrive/c/gnude/bin/arm-elf-ld: cannot find -lgcc
NMAKE : fatal error U1077: 'c:\gnude\bin\arm-elf-ld.exe' : return code '0x1'
Stop.
What this mean?
Why can't we compile with the makefile generated by visual studio?

check out ur gccmake file
It should be
LIBDIRS = -L$(GCCHOMEPATH)/lib/gcc-lib/arm-elf/3.3.1
instead of
LIBDIRS = -L$(GCCHOMEPATH)/lib/gcc-lib/arm-elf/3.3
..I guess this should solve the error...
Regards

check out ur gccmake file
It should be
LIBDIRS = -L$(GCCHOMEPATH)/lib/gcc-lib/arm-elf/3.3.1
instead of
LIBDIRS = -L$(GCCHOMEPATH)/lib/gcc-lib/arm-elf/3.3
..I guess this should solve the error...
Regards

Thanks for answering...
GCC_LIBPATH is defined at the begining of CppAppTemplate.mak :
GCC_LIBPATH = C:\gnude\lib\gcc-lib\arm-elf\3.3.1
I still get :
OBJECT AEEMOD~1.o
-c -DDYNAMIC_APP -cpu ARM7TDMI -apcs /ropi/interwork/norwpi -littleend
-zo -fa -g -Ospace -O2 -I. -IC:\PROGRA~1\BREW31~1.3\sdk\inc -o AEEMOD~1.o c:\Projets\Brew\Orbital\
'-c' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: '-c' : return code '0x1'
Stop.
Looks like I don't have the good armcpp.exe, because it does not understand the arguments of the makefile...? Can u send me your armcpp.exe maybe it will work better?
Thanks
Germ

Thanks for answering...
GCC_LIBPATH is defined at the begining of CppAppTemplate.mak :
GCC_LIBPATH = C:\gnude\lib\gcc-lib\arm-elf\3.3.1
I still get :
OBJECT AEEMOD~1.o
-c -DDYNAMIC_APP -cpu ARM7TDMI -apcs /ropi/interwork/norwpi -littleend
-zo -fa -g -Ospace -O2 -I. -IC:\PROGRA~1\BREW31~1.3\sdk\inc -o AEEMOD~1.o c:\Projets\Brew\Orbital\
'-c' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: '-c' : return code '0x1'
Stop.
Looks like I don't have the good armcpp.exe, because it does not understand the arguments of the makefile...? Can u send me your armcpp.exe maybe it will work better?
Thanks
Germ

Arm-cpp was not even called...
Now I have a new problem (yepee)... I always get :
armcpp : unrecognized option '-cpu'
Why the gnude armcpp does not recognize this option? I cannot simply comment it out...?
Germ

Arm-cpp was not even called...
Now I have a new problem (yepee)... I always get :
armcpp : unrecognized option '-cpu'
Why the gnude armcpp does not recognize this option? I cannot simply comment it out...?
Germ

Germ wrote:Can someone please tell me where to find a good GNU compiler for BREW...
And what are the step for making it work.
Thanks
I think you will find everything you need at www.gnuarm.com including setup information.
There is also a GNUARM Yahoo Group where you can get help setting it up.
The gnuarm.com site uses a lot of bandwidth. It is paid for by the Google Ads which only provide revenue when you click on them.

Germ wrote:Can someone please tell me where to find a good GNU compiler for BREW...
And what are the step for making it work.
Thanks
I think you will find everything you need at www.gnuarm.com including setup information.
There is also a GNUARM Yahoo Group where you can get help setting it up.
The gnuarm.com site uses a lot of bandwidth. It is paid for by the Google Ads which only provide revenue when you click on them.