/cygdrive/c/Cygnus/arm-tools/bin/arm-uclibc-as:unrecognized option '-c'

OP (Company: MT) #1196667
Rate this post
• ▲ useful
▼ not useful
Hello,

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:

/ DIRECTORIES
rootBuild = ${GxOSrootDir}/${productBuild}
generationPrjDir=${rootBuild}
toolsProductDir=${GxOSrootDir}/tools
ToolsDir = ${toolsProductDir}/generation/s3s91j
CompilerPath = C:/Cygnus/arm-tools
CygwinPath = ${CompilerPath}/../cygwin/bin
ObjOutputDir = bin/obj
binDir = bin
PathConfig=${GxOSrootDir}/configuration/s3fs91j
PathBootLoader=${GxOSrootDir}/product/btld_s3fs91j
pluginOutPrjDir=${rootBuild}/bin/plugin

// TOOLS
FrameGenerator = 
${toolsProductDir}/frame_generator/bin/frame_generator.exe
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
CompilerDefineOption = -DS3FS91j -DNO_PUTMEM -DNANDFLASH_ERASE_TEST 
-DFTL_SAMSUNG_Y -DNAND_CURRENT_CONTROLLER=3 -DNFL_GENERIC

// 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 
debugging.

I waite for your help please.
thanks in advance
Moderator #1197143
Rate this post
• ▲ 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.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.