Technical Support

GCC: SELECTING DIFFERENT GNU VERSIONS


Information in this article applies to:

  • GNU C Compiler for ARM All Versions
  • µVision V3.21 and Later

QUESTION

Is there a way to select a different version of a GNU ARM toolchain? What are the steps required? When I try to translate with the GNU ARM toolchain I get the following error messages:

--- Error: can't execute 'as'
--- Error: can't execute 'gcc'

What causes this error?

ANSWER

To use GNU toolchain variants, µVision V3.21 allows you to specify a GNU-Tool-Prefix. If this parameter is not configured properly, you may get the error message shown above.

To select the GNU toolchain open the dialog Project - Components, Environment, Books - Folders/Extensions.

Use GNU Tools selects the GNU development tools for a project. The setting Cygnus Folder specifies the path to the GNU installation folder. The GNU-Tool-Prefix allows you to use GNU toolchain variants.

Examples for the various GNU versions:

GNU V3.22 with uclib:

  • GNU-Tool-Prefix: arm-uclibc-
  • Cygnus Folder: C:\Cygnus

CodeSourcery G++ with new-lib:

  • GNU-Tool-Prefix: arm-none-eabi-
  • Cygnus Folder: C:\Program Files\CodeSourcery\Sourcery G++\

GNUARM V4 with standard library:

  • GNU-Tool-Prefix: arm-elf-
  • Cygnus Folder: C:\Program Files\GNUARM\

MORE INFORMATION

  • Getting Started User's Guide for ARM, Development Tools, Select the Toolset

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Thursday, August 17, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure