Forum: ARM programming with GCC/GNU tools /cygdrive/c/Cygnus/arm-tools/bin/arm-uclibc-as:unrecognized option '-c'

Author: Kalou Lalou (Company: MT) (arm-kw1)
Posted on:

Rate this post
0 useful
not useful

I am getting this above error, when I compile with Cygnus.
In fact, I compile many C files Simultaneously using XML file and a 
'native properties' file.
The 'native properties' file contains:

rootBuild = ${GxOSrootDir}/${productBuild}
ToolsDir = ${toolsProductDir}/generation/s3s91j
CompilerPath = C:/Cygnus/arm-tools
CygwinPath = ${CompilerPath}/../cygwin/bin
ObjOutputDir = bin/obj
binDir = bin

FrameGenerator = 
GetTheFilterDate = ${FrameGenerator}
GenerateAtf = ${GetTheFilterDate}
Doxygen = ${toolsProductDir}/doxygen.exe
Compiler16bits = ${CompilerPath}/bin/arm-uclibc-gcc.exe
Compiler32bits = ${CompilerPath}/bin/arm-uclibc-gcc.exe
Assembly = ${CompilerPath}/bin/arm-uclibc-as.exe
Linker = ${CompilerPath}/bin/arm-uclibc-ld.exe
binaryGen = ${CompilerPath}/bin/arm-uclibc-readelf.exe
ObjDump = ${CompilerPath}/bin/arm-uclibc-objdump.exe
ObjDumpFlag = --disassemble --all-headers --source
ObjSize = ${CompilerPath}/bin/arm-uclibc-size.exe

// CompilerOption =

CompilerOption = -mbig-endian -c -mcpu=arm7tdmi -E -g -Wall

Thumb_code_16 =
ARM_code_32 =
CompilerIncludeOption = -I
CompilerOutOption = -o

// AssemblyOption =

AssemblyOption = -mbig-endian -c -mcpu=armv7tdmi -E -g -Wall

AssemblyDefineOption =
AssemblyOutOption = -o

Perhaps, I have errors in this file for example in Compilation option .

I am using this toolchain for compiling,assembling,linking and 

I waite for your help please.
thanks in advance

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
IRC -c is not a valid option for the assembler. I expect you are calling 
the assembler (...-as) directly with options for the frontend (...-gcc) 
but it's difficult to guess without further information. I suggest that 
you let the frontend call the assembler indirectly (positive 
"side-effect": the C-preprocessor can be used in assembler source-code) 
or re-read the GNU-as manual for the supported options.


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.