1
edit
Changes
→Project News
= Project News =
==Jan 4, 2007==
The post made to the build newgroup seems to have gathered dust. If mozilla is limited to only 4 jobs, than distcc is somewhat limited. But that's not our problem.
Tom has found one problem with using cygwin. Using absolute pathnames. For example :
<code><pre>
$ cl hello.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
hello.c
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
/out:hello.exe
hello.obj
</pre></code>
Works. But this doesn't :
<code><pre>
$ cl /cygdrive/c/home/temp/hello.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9002 : ignoring unknown option '/cygdrive/c/home/temp
/hello.c'
cl : Command line error D8003 : missing source filename
</pre></code>
There are a few things we can do about this :
* replace /cygdrive/c/ with C:\
* user must replace the enviroment variable TMPDIR which defaults to /tmp
Cesar found another problem. Both C/C++ preprocessed file ends in .i. cl has no way of knowning if it's a C/C++ preprocessed file. So it refuses to compile it (it treats it as an object file). So when we preprocess, we have to redirect to the same extension as the source file.
<code><pre>
$ cl hello.i
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9024 : unrecognized source file type 'hello.i', objec
t file assumed
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
/out:hello.exe
hello.i
hello.i : fatal error LNK1107: invalid or corrupt file: cannot read at 0xEE7F
</pre></code>
==Dec 17, 2006==
Tom has made a [http://groups.google.ca/group/mozilla.dev.builds/browse_thread/thread/60e141c996fa5eaa/02a86b97a4b9b2a7?hl=en#02a86b97a4b9b2a7 post] to the build newsgroup. The bug (Dec 6) still hasn't been fixed.