Cannot make hello_world: Error 2

support for the ARM toolchain
WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Cannot make hello_world: Error 2

Post by WinterMute » Wed Jan 20, 2010 3:53 pm

Just to clarify after some discussion on IRC.

gnu tools tend to get annoyed when there are peculiar characters in the path and do peculiar things. In this case it was caused by a ' character but spaces and brackets will cause similar problems. The devkitPro installer/updater should prevent installing to paths with spaces but may allow other problematic characters, it's probably best to stick with letters numbers and underscores.
Help keep devkitPro toolchains free, Donate today

Personal Blog

User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Re: Cannot make hello_world: Error 2

Post by vuurrobin » Fri Jan 22, 2010 9:55 pm

out of curiosity, does the problem lie within the gnu tools, or is it something we can fix by surrounding the path with quotes or something (that usally worked with using programs in batch files).

or can you tell me which program has this problem, so I can try it out for myself?

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Cannot make hello_world: Error 2

Post by WinterMute » Fri Jan 22, 2010 11:22 pm

it's something you should just avoid at all costs, there's no way to "fix" the "problem" other than just not doing silly things with paths. There are several characters which have special meaning in a bash shell which would need to be escaped, much like certain characters in C strings. Even if you escape these characters in the Makefile there's no guarantee that any given shellscript or executable will escape them before passing them on to another application. PEBKAC.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest