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

OP (Company: MT) #1196667
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
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

A question of your own? This thread is over 17 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

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.