Author Topic: GNU ARM cross compile fails  (Read 5280 times)

Offline Joerg

  • Multiple posting newcomer
  • *
  • Posts: 100
GNU ARM cross compile fails
« on: October 24, 2006, 05:09:20 pm »
Hi,

when I try to compile my ARM project I got the followin build message:
Execution of 'make.exe -f makefile all' in 'W:\ReaderARM7' failed.
Nothing to be done.

I'm sure that there is something 'to be done' but I don't know where
this message is coming from, CodeBlocks or make?
I use the WinARM distribution for crosscompiling not GNUARM,
so I don't need to use mingw.
Is there a debug option where I can see the make calls on console?
Regards,
Joerg
It's never too late to fail!

Offline Joerg

  • Multiple posting newcomer
  • *
  • Posts: 100
Re: GNU ARM cross compile fails
« Reply #1 on: October 25, 2006, 09:47:23 am »
Hi,

I had to add the compiler paths to the environment PATH,
so make can find them.
I also found the Code::Blocks debug tab.   :D
So this was an easy one.
By
It's never too late to fail!

Offline Joerg

  • Multiple posting newcomer
  • *
  • Posts: 100
Re: GNU ARM cross compile fails
« Reply #2 on: October 25, 2006, 03:38:25 pm »
Ok need help again,   :(

the environment varaibles are not saved.
I have to add my PATH every time I start CB.
CB crashes when I try to save my project with 'save as...'
I use Version 1.0 revision 3126 (2006-10-22 13:31:25)   gcc 3.4.5 Windows/unicode,
build from oct 22 2006 under WinXP.
Regards,
It's never too late to fail!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: GNU ARM cross compile fails
« Reply #3 on: October 25, 2006, 04:13:41 pm »
the environment varaibles are not saved.
I have to add my PATH every time I start CB.
What do you mean? The environment variables of the envvar plugin? Or do you mean additional path's that you can setup in the compiler options? The envvar plugin works very well for me - all the revisions back... Please explain step-by-step what you do.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Joerg

  • Multiple posting newcomer
  • *
  • Posts: 100
Re: GNU ARM cross compile fails
« Reply #4 on: October 25, 2006, 05:05:34 pm »
Hi,

I open my project .cbp.
Then, under 'Settings/Environment/Environment Variables' I add
PATH=D:\Programs\WinARM\bin;D:\Programs\WinARM\utils\bin

I do a build, everything works fine.
Then I close my project (maybe save before) and close CB.
When I start CB again and open my project, building doesn't work
because my environment variable is gone.

Maybe I misunderstand the concepts of CB here.
Where should these parameters be stored?
Regards,
It's never too late to fail!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: GNU ARM cross compile fails
« Reply #5 on: October 25, 2006, 05:21:06 pm »
Then, under 'Settings/Environment/Environment Variables' I add
PATH=D:\Programs\WinARM\bin;D:\Programs\WinARM\utils\bin
This is correct in principle, but a semi-colon in an envvar is not supported (currently, for internal reasons).

Maybe I misunderstand the concepts of CB here.
Where should these parameters be stored?
I'm afraid, yes. To configure the path to the compiler you have to go to Settings -> Compiler and Debugger -> Tab "Programs" -> Point to the base path of the compiler there (D:\Programs\WinARM in your case, "bin" will be added automatically by C::B). Then goto Tab "Additional Path" (on the same tab) -> there you can enter "D:\Programs\WinARM\utils\bin". Notice that for the second you have to add the "bin", too.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ