[M3devel] C compilation on Windows fails
Jay K
jay.krell at cornell.edu
Thu Jul 30 09:32:51 CEST 2009
Peel the onion.
cl
Should print a banner and very short usage.
If that works:
echo.> foo.c
cl -c foo.c
echo %errorlevel%
If that works:
echo int main(){return 0;}> foo.c
cl foo.c
echo %errorlevel%
.\foo.exe
If that works, take a big step:
cd wherever\m3-libs\m3core\NT386
cl -nologo -c ..\src\Csupport\Common\hand.c
If that fails for lack of -I switches, add them as necessary.
Add back the other switches. They are all reliable.
- Jay
----------------------------------------
> Date: Thu, 30 Jul 2009 08:40:13 +0200
> From: wagner at elegosoft.com
> To: m3devel at elegosoft.com
> Subject: [M3devel] C compilation on Windows fails
>
> Trying the first builds on our new Windows VM (still without Hudson),
> the first stop is:
>
> new source -> compiling hand.c
> cl -nologo -Z7 -DWIN32 -I../src/unix/Common -I../src/Csupport/Common
> -I../src/Csupport/little-endian -I../src/Csupport/libgcc
> -I../src/runtime/common -I../src/runtime/WIN32
> -I../src/runtime/ex_frame -I../src/thread/WIN32 -I../src/win32
> -I../src/C/Common -MD -Oi -c ..\\src\\Csupport\\Common\\hand.c
> compile_c => 1073742133
> C compiler failed compiling: ..\src\Csupport\Common\hand.c
> new source -> compiling dtoa.c
> cl -nologo -Z7 -DWIN32 -I../src/unix/Common -I../src/Csupport/Common
> -I../src/Csupport/little-endian -I../src/Csupport/libgcc
> -I../src/runtime/common -I../src/runtime/WIN32
> -I../src/runtime/ex_frame -I../src/thread/WIN32 -I../src/win32
> -I../src/C/Common -MD -Oi -c ..\\src\\Csupport\\little-endian\\dtoa.c
> compile_c => 1073742133
> C compiler failed compiling: ..\src\Csupport\little-endian\dtoa.c
> new source -> compiling libgcc.c
> cl -nologo -Z7 -DWIN32 -I../src/unix/Common -I../src/Csupport/Common
> -I../src/Csupport/little-endian -I../src/Csupport/libgcc
> -I../src/runtime/common -I../src/runtime/WIN32
> -I../src/runtime/ex_frame -I../src/thread/WIN32 -I../src/win32
> -I../src/C/Common -MD -Oi -c ..\\src\\Csupport\\libgcc\\libgcc.c
> compile_c => 1073742133
> C compiler failed compiling: ..\src\Csupport\libgcc\libgcc.c
> new source -> compiling RTLinkerC.c
> cl -nologo -Z7 -DWIN32 -I../src/unix/Common -I../src/Csupport/Common
> -I../src/Csupport/little-endian -I../src/Csupport/libgcc
> -I../src/runtime/common -I../src/runtime/WIN32
> -I../src/runtime/ex_frame -I../src/thread/WIN32 -I../src/win32
> -I../src/C/Common -MD -Oi -c ..\\src\\runtime\\common\\RTLinkerC.c
> compile_c => 1073742133
> C compiler failed compiling: ..\src\runtime\common\RTLinkerC.c
> new source -> compiling RTOSc.c
> cl -nologo -Z7 -DWIN32 -I../src/unix/Common -I../src/Csupport/Common
> -I../src/Csupport/little-endian -I../src/Csupport/libgcc
> -I../src/runtime/common -I../src/runtime/WIN32
> -I../src/runtime/ex_frame -I../src/thread/WIN32 -I../src/win32
> -I../src/C/Common -MD -Oi -c ..\\src\\runtime\\WIN32\\RTOSc.c
> compile_c => 1073742133
> C compiler failed compiling: ..\src\runtime\WIN32\RTOSc.c
> new source -> compiling RTStackC.c
> cl -nologo -Z7 -DWIN32 -I../src/unix/Common -I../src/Csupport/Common
> -I../src/Csupport/little-endian -I../src/Csupport/libgcc
> -I../src/runtime/common -I../src/runtime/WIN32
> -I../src/runtime/ex_frame -I../src/thread/WIN32 -I../src/win32
> -I../src/C/Common -MD -Oi -c ..\\src\\runtime\\ex_frame\\RTStackC.c
> compile_c => 1073742133
> C compiler failed compiling: ..\src\runtime\ex_frame\RTStackC.c
> new source -> compiling ThreadWin32C.c
> cl -nologo -Z7 -DWIN32 -I../src/unix/Common -I../src/Csupport/Common
> -I../src/Csupport/little-endian -I../src/Csupport/libgcc
> -I../src/runtime/common -I../src/runtime/WIN32
> -I../src/runtime/ex_frame -I../src/thread/WIN32 -I../src/win32
> -I../src/C/Common -MD -Oi -c ..\\src\\thread\\WIN32\\ThreadWin32C.c
> compile_c => 1073742133
> C compiler failed compiling: ..\src\thread\WIN32\ThreadWin32C.c
> new source -> compiling WinNTc.c
> cl -nologo -Z7 -DWIN32 -I../src/unix/Common -I../src/Csupport/Common
> -I../src/Csupport/little-endian -I../src/Csupport/libgcc
> -I../src/runtime/common -I../src/runtime/WIN32
> -I../src/runtime/ex_frame -I../src/thread/WIN32 -I../src/win32
> -I../src/C/Common -MD -Oi -c ..\\src\\win32\\WinNTc.c
> compile_c => 1073742133
> C compiler failed compiling: ..\src\win32\WinNTc.c
> new source -> compiling WinUserC.c
> cl -nologo -Z7 -DWIN32 -I../src/unix/Common -I../src/Csupport/Common
> -I../src/Csupport/little-endian -I../src/Csupport/libgcc
> -I../src/runtime/common -I../src/runtime/WIN32
> -I../src/runtime/ex_frame -I../src/thread/WIN32 -I../src/win32
> -I../src/C/Common -MD -Oi -c ..\\src\\win32\\WinUserC.c
> compile_c => 1073742133
> C compiler failed compiling: ..\src\win32\WinUserC.c
> new source -> compiling CerrnoC.c
> cl -nologo -Z7 -DWIN32 -I../src/unix/Common -I../src/Csupport/Common
> -I../src/Csupport/little-endian -I../src/Csupport/libgcc
> -I../src/runtime/common -I../src/runtime/WIN32
> -I../src/runtime/ex_frame -I../src/thread/WIN32 -I../src/win32
> -I../src/C/Common -MD -Oi -c ..\\src\\C\\Common\\CerrnoC.c
> compile_c => 1073742133
> C compiler failed compiling: ..\src\C\Common\CerrnoC.c
> new source -> compiling CstdioC.c
> cl -nologo -Z7 -DWIN32 -I../src/unix/Common -I../src/Csupport/Common
> -I../src/Csupport/little-endian -I../src/Csupport/libgcc
> -I../src/runtime/common -I../src/runtime/WIN32
> -I../src/runtime/ex_frame -I../src/thread/WIN32 -I../src/win32
> -I../src/C/Common -MD -Oi -c ..\\src\\C\\Common\\CstdioC.c
> compile_c => 1073742133
> C compiler failed compiling: ..\src\C\Common\CstdioC.c
> new exporters -> recompiling RTHooks.i3
> new exporters -> recompiling RTAllocCnts.i3
> new exporters -> recompiling RTHeapRep.i3
> new exporters -> recompiling RTCollectorSRC.i3
> new exporters -> recompiling RTWeakRef.i3
> new exporters -> recompiling RTException.i3
> new exporters -> recompiling RTModule.i3
> new exporters -> recompiling RTProcedureSRC.i3
> new exporters -> recompiling RTTypeSRC.i3
> new exporters -> recompiling RTOS.i3
> new exporters -> recompiling Thread.i3
> new exporters -> recompiling Scheduler.i3
> new exporters -> recompiling ThreadF.i3
> new exporters -> recompiling ThreadInternal.i3
> new exporters -> recompiling Tick.i3
> new exporters -> recompiling Date.i3
> new exporters -> recompiling Text.i3
> compilation failed => not building library "m3core.lib"
> Fatal Error: package build failed
> *** execution of cm3 -build -override $RARGS
> -DROOT='C:\\cygwin\\home\\elego\\work\\cm3'
> -DCM3_VERSION_TEXT='d5.8.2' -DCM3_VERSION_NUMBER='050802'
> -DCM3_LAST_CHANGED='2009-07-15' failed ***
>
> Why does the compiler always return 1073742133?
>
> Olaf
> --
> Olaf Wagner -- elego Software Solutions GmbH
> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95
> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
>
More information about the M3devel
mailing list