EmbDev.net

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


von Kalou L. (Company: MT) (arm-kw1)


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

von Martin T. (mthomas) (Moderator)


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.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.