News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

GNU ARM cross compile fails

Started by Joerg, October 24, 2006, 05:09:20 PM

Previous topic - Next topic

Joerg

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!

Joerg

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!

Joerg

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!

MortenMacFly

Quote from: rekisum on October 25, 2006, 03:38:25 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Joerg

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!

MortenMacFly

Quote from: rekisum on October 25, 2006, 05:05:34 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).

Quote from: rekisum on October 25, 2006, 05:05:34 PM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]