public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* MinGW toolchain build failure for M16CM32C
@ 2009-05-29 14:23 Mahesh Basavaraj Shavari
  2009-05-29 14:54 ` Kai Tietz
  0 siblings, 1 reply; 4+ messages in thread
From: Mahesh Basavaraj Shavari @ 2009-05-29 14:23 UTC (permalink / raw)
  To: gcc

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MinGW toolchain build failure for M16CM32C
  2009-05-29 14:23 MinGW toolchain build failure for M16CM32C Mahesh Basavaraj Shavari
@ 2009-05-29 14:54 ` Kai Tietz
  2009-05-29 16:02   ` Kai Tietz
  0 siblings, 1 reply; 4+ messages in thread
From: Kai Tietz @ 2009-05-29 14:54 UTC (permalink / raw)
  To: Mahesh Basavaraj Shavari; +Cc: gcc

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MinGW toolchain build failure for M16CM32C
  2009-05-29 14:54 ` Kai Tietz
@ 2009-05-29 16:02   ` Kai Tietz
  2009-05-29 16:08     ` [OT] " Dave Korn
  0 siblings, 1 reply; 4+ messages in thread
From: Kai Tietz @ 2009-05-29 16:02 UTC (permalink / raw)
  To: Mahesh Basavaraj Shavari; +Cc: gcc

2009/5/29 Kai Tietz <ktietz70@googlemail.com>:
> 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
>

Second remark. In you build line there is a typo. Not sure if this a
paste issue, but

... "win/../compat/strtoull.c -o strtoull.o o tcl.res.o" ...

is wrong. There is a '-' missing before 'o'. It should be something like

... "win/../compat/strtoull.c -o strtoull.o -o tcl.res.o" ...

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [OT] Re: MinGW toolchain build failure for M16CM32C
  2009-05-29 16:02   ` Kai Tietz
@ 2009-05-29 16:08     ` Dave Korn
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Korn @ 2009-05-29 16:08 UTC (permalink / raw)
  To: Kai Tietz; +Cc: Mahesh Basavaraj Shavari, gcc

Kai Tietz wrote:

> Second remark. In you build line there is a typo. Not sure if this a
> paste issue, but
> 
> ... "win/../compat/strtoull.c -o strtoull.o o tcl.res.o" ...
> 
> is wrong. There is a '-' missing before 'o'. It should be something like
> 
> ... "win/../compat/strtoull.c -o strtoull.o -o tcl.res.o" ...

  Don't miss also this error, buried among the rest:

/bin/sh: o: command not found
> make[3]: [tcl.res.o] Error 127 (ignored)

  Looks to me like $(WINDRES) is empty, and that was actually a separate line
from the compiler command-line that got wrapped together in transmission.
(Not that teaching gcc how to handle .rc files wouldn't be a nice idea!)

  As this is not remotely a GCC problem, but a makefile or autoconf problem in
the distribution, you should follow it up on a more related mailing list.
(Looks from the path names like this is one of KPIT's bundles, do they have a
support forum?)

    cheers,
      DaveK

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-29 14:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-29 14:23 MinGW toolchain build failure for M16CM32C Mahesh Basavaraj Shavari
2009-05-29 14:54 ` Kai Tietz
2009-05-29 16:02   ` Kai Tietz
2009-05-29 16:08     ` [OT] " Dave Korn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).