I tried to built Firefox debug version from the latest source code.
Environment: Windows 7 + "Microsoft Visual C++ 2008"
Build failed in the follow stage:
c:/foss/mozilla-central/objdir-ff-debug/dist/bin/xpt_link.exe
_xpidlgen/xpcom_components.xpt _xpidlgen/nsIModuleLoader.xpt
_xpidlgen/nsIComponentManagerObsolete.xpt _xpidlgen/nsIClassInfo.xpt
_xpidlgen/nsIComponentRegistrar.xpt _xpidlgen/nsIFactory.xpt
_xpidlgen/nsIModule.xpt _xpidlgen/nsIServiceManager.xpt
_xpidlgen/nsIComponentManager.xpt _xpidlgen/nsICategoryManager.xpt
ERROR: file _xpidlgen/nsIComponentManagerObsolete.xpt is zero length
make[5]: *** [_xpidlgen/xpcom_components.xpt] Error 1
make[5]: Leaving directory
`/c/foss/mozilla-central/objdir-ff-debug/xpcom/compon
ents'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/c/foss/mozilla-central/objdir-ff-debug/xpcom'
make[3]: *** [libs_tier_xpcom] Error 2
make[3]: Leaving directory `/c/foss/mozilla-central/objdir-ff-debug'
make[2]: *** [tier_xpcom] Error 2
make[2]: Leaving directory `/c/foss/mozilla-central/objdir-ff-debug'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/c/foss/mozilla-central/objdir-ff-debug'
make: *** [build] Error 2
The file
C:\foss\mozilla-central\objdir-ff-debug\xpcom\components\_xpidlgen\nsIComponentManagerObsolete.xpt
has zero size as per Windows 7,
but I can open file in Notepad++ and there is content less or more similar
its counterpart in objdir-ff-debug.
Ideas?
Your help will be appreciated,
Thank you!
Valentine.
> I ran the source code update:
$hg pull -r default
$hg update
then tried again to make the debug build:
...
checking whether the C compiler (cl ) works... yes
checking whether the C compiler (cl ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether cl accepts -g... (cached) no
checking for c++... (cached) cl
checking whether the C++ compiler (cl ) works... rm: cannot lstat
'conftest.exe': Permission denied
no
configure: error: installation or configuration problem: C++ compiler cannot
create executables.
*** Fix above errors and then restart with "make -f
client.mkbuild"
make[1]: *** [configure] Error 1
make[1]: Leaving directory `/c/foss/mozilla-central'
make: *** [/c/foss/mozilla-central/objdir-ff-debug/Makefile] Error 2
Ideas?
Thank you!
I also get this from time to time on windows 7. It is some sort of
strange intermittent error, but it goes away if you remove the object
directory completely and restart the build. At least, that's been my
experience.
Clint
> I tried to remove the object directory, but it didn't help.
The release version is built without any problems.
Thank you,
Valentine.
> _______________________________________________
> dev-platform mailing list
> dev-pl...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
Cheers,
Shawn
> On 2/4/2010 2:12 PM, Clint Talbert wrote:
>
>> I also get this from time to time on windows 7. It is some sort of
>> strange intermittent error, but it goes away if you remove the object
>> directory completely and restart the build. At least, that's been my
>> experience.
>>
> I've actually found that simply restarting my terminal was sufficient.
>
> Cheers,
>
> Shawn
>
>
The object directory removing and terminal restart have made it work.
I made the debug build!
Thank you Shawn and Clint!