This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MinGW toolchain build failure for M16CM32C


2009/5/29 Mahesh Basavaraj Shavari <Mahesh.Shavari@kpitcummins.com>:
> Hi,
> I am trying to build a MinGW toolchain for M16CM32C target using the following sources:
>
> GCC-4.4.0
> Binutils-2.19
> Newlib-1.17
>
> The linux toolchain was built successfully, however MinGW toolchain build failed.
> During make, I get the following error.
>
> ----------------------------------------------------------------------------------------------------------------------
> i386-pc-mingw32msvc-gcc -c -g -O2 -D__USE_MINGW_ACCESS -Wall -Wconversion ?-I"/home/RX_FINAL_V0901/KPIT/src-cross/tcl/win/../generic" -I"/home/RX_FINAL_V0901/KPIT/src-cross/tcl/win" -mwin32 ?-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 ?-DBUILD_tcl /home/RX_FINAL_V0901/KPIT/src-cross/tcl/win/../compat/strtoll.c -o strtoll.o i386-pc-mingw32msvc-gcc -c -g -O2 -D__USE_MINGW_ACCESS -Wall -Wconversion ?-I"/home/RX_FINAL_V0901/KPIT/src-cross/tcl/win/../generic" -I"/home/RX_FINAL_V0901/KPIT/src-cross/tcl/win" -mwin32 ?-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 ?-DBUILD_tcl /home/RX_FINAL_V0901/KPIT/src-cross/tcl/win/../compat/strtoull.c -o strtoull.o
> o tcl.res.o ? --include "/home/RX_FINAL_V0901/KPIT/src-cross/tcl/win/../generic" --include "/home/RX_FINAL_V0901/KPIT/src-cross/tcl/win" /home/RX_FINAL_V0901/KPIT/src-cross/tcl/win/tcl.rc
> /bin/sh: o: command not found
> make[3]: [tcl.res.o] Error 127 (ignored)
> i386-pc-mingw32msvc-gcc -shared -g -O2 -D__USE_MINGW_ACCESS -Wl,--stack,8388608 -o tcl84.dll -mwin32 ? ? ? ? ? ?-Wl,--out-implib,libtcl84.a regcomp.o regexec.o regfree.o regerror.o tclAlloc.o tclAsync.o tclBasic.o tclBinary.o tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o tclCompExpr.o tclCompile.o tclDate.o tclEncoding.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o tclLiteral.o tclListObj.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o tclResolve.o tclResult.o tclScan.o tclStringObj.o tclStubInit.o tclStubLib.o tclThread.o tclThreadAlloc.o tclThreadJoin.o tclTimer.o tclUtf.o tclUtil.o tclVar.o tclWin32Dll.o tclWinChan.o tclWinConsole.o tclWinSerial.o tclWinError.o tclWinFCmd.o tclWinFile.o tclWinInit.o tclWinLoad.o tclWinMtherr.o tclWinNotify.o tclWinPipe.o tclWinSock.o tclWinThrd.o tclWinTime.o ?strftime.o strtoll.o strtoull.o tcl.res.o
> i386-pc-mingw32msvc-gcc: tcl.res.o: No such file or directory
> make[3]: *** [tcl84.dll] Error 1
> --------------------------------------------------------------------------------------------------------------
>
> The native MinGW toolchain (i386-pc-mingw32msvc-gcc) for i386 was built using the following source.
> GCC-3.4.5
>
> Any help would be highly appreciated.
> Thanking you in anticipation.
>
> Regards,
> Mahesh Shavari
>
>

Hello,

it seems so that you makefile tries to compile resource file (.rc) via
gcc frontend. This fails AFAIK. Instead the windres tool (part of
binutils) have to be invoked here. This should fix your problem.

Cheers,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]