I have search this error with Google, only found there
was no one else got the same error as mine.
The error is very simple:
make[5]: *** No rule to make target `xpcomglue.lib', needed by `libs'.
Stop.
Additionally, I have also tried the benjamin Windows build evironment
without any difference.
Help me, please!
Without having to dig through previous threads, it would be great if
you could give the following information:
* What app are you trying to compile ?
* What version of code are you using ?
** If it's a release tarball, from which url ?
** If it's from CVS, then which branch ? Eg Trunk (for Firefox 3),
Mozilla1.8 (for Firefox 2.0.0.x), Mozilla1.8.0 (for Firefox 1.5.0.y)
* Which compiler are you using ?
* What is your mozconfig ?
* Please post the last 10 lines of build output rather than just the
last one
I want to compile xulrunner, and I get the source by cvs commands:
cvs -f client.mk -r MOZILLA_1_8_0_BRANCH checkout MOZ_CO_PROJECT=xulrunner
I use MSVC6 for my compiler.
My mozconfig is as following:
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
mk_add_options MOZ_CO_PROJECT=xulrunner
ac_add_options --enable-application=xulrunner
I also try to MSCV6 to compiler the version 1.8, but the same error
stop me too.
The error as below:
make[5]: Entering directory
`/cygdrive/d/packages/mozilla/m/mozilla/obj-i686-pc-
cygwin/xpcom/string/public'
make[5]: Leaving directory
`/cygdrive/d/packages/mozilla/m/mozilla/obj-i686-pc-c
ygwin/xpcom/string/public'
make[5]: Entering directory
`/cygdrive/d/packages/mozilla/m/mozilla/obj-i686-pc-
cygwin/xpcom/string/src'
/cygdrive/d/packages/mozilla/m/mozilla/build/cygwin-wrapper
/cygdrive/d/packages
/mozilla/moztools/bin/nsinstall -m 644 string_s.lib ../../../dist/lib
make[5]: Leaving directory
`/cygdrive/d/packages/mozilla/m/mozilla/obj-i686-pc-c
ygwin/xpcom/string/src'
make[4]: Leaving directory
`/cygdrive/d/packages/mozilla/m/mozilla/obj-i686-pc-c
ygwin/xpcom/string'
make[4]: Entering directory
`/cygdrive/d/packages/mozilla/m/mozilla/obj-i686-pc-
cygwin/xpcom/glue'
/cygdrive/d/packages/mozilla/m/mozilla/build/cygwin-wrapper
/cygdrive/d/packages
/mozilla/moztools/bin/nsinstall -m 644 xpcomglue_s.lib ../../dist/lib
make[5]: Entering directory
`/cygdrive/d/packages/mozilla/m/mozilla/obj-i686-pc-
cygwin/xpcom/glue/standalone'/cygdrive/d/packages/mozilla/m/mozilla/build/cygwin-wrapper
/cygdrive/d/packages/mozilla/moztools/bin/nsinstall -m 644
xpcomglue_s.lib ../../../dist/lib
make[5]: *** No rule to make target `xpcomglue.lib', needed by `libs'.
Stop. ++++++++++++++++++++++++++++++++++++++++++++++ERROR HERE
make[5]: Leaving directory
`/cygdrive/d/packages/mozilla/m/mozilla/obj-i686-pc-cygwin/xpcom/glue/standalone'
make[4]: *** [libs] Error 2
make[4]: Leaving
directory`/cygdrive/d/packages/mozilla/m/mozilla/obj-i686-pc-cygwin/xpcom/glue
And if I miss something important, please point it out, I will post
anything you need, help please, I think I will be mad if I can't
get it work through as soon as possible!
Thanks in advance!
That's much more useful, thanks. Given that you've tried many
combinations of compiler, branch etc, have you started with a clean
slate? I mean removing the objdir, and if that doesn't work then also
removing the source code and pulling a fresh copy.
---------------------------------------------------------------------
Build with my own builded cygwin env
---------------------------------------------------------------------
The bootstroop script of mine:
#####################Begin code#######################################
rem --- Set HOME so that cvs and ssh work correctly
rem --- cvs uses HOME to locate your .cvspass file, and ssh to locate
your .ssh file
rem --- if you are using ssh, your HOME should match the home directory
specified in /etc/passwd. See http://www.cygwin.com/faq/faq0.html.
set HOME=d:\pakcages\mozilla\mozilla
rem --- Set VCVARS to wherever the MSVC vcvars.bat file is found
set VCVARS=D:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat
rem --- Set MSSDK to wherever the MS SDK is installed
rem --- Only required for MSVC7 or the Free MSVC editions that don't
come with an SDK
rem --- set MSSDK=C:\Program Files\Microsoft Platform SDK
rem --- Set MOZ_TOOLS to wherever you have the moztools packaged installed
set MOZ_TOOLS=d:\packages\mozilla\moztools
rem --- Set CYGWINBASE to wherever cygwin is installed
rem --- Do not use CYGWIN or else cygserver, cygrunsrv, and Cygwin
services will not function properly
rem --- Variable CYGWIN is also used to modify Cygwin's behaviour a
little bit.
set CYGWINBASE=D:\DEVTOOLS\cygwin
rem --- Make sure Cygwin does not print out a DOS style path warning
set CYGWIN=nodosfilewarning
rem --- Prepend Cygwin path
rem --- This is necessary so that cygwin find is ahead of windows
find.exe in the PATH, but cgywin link is after MSVC link.exe.
set PATH=%CYGWINBASE%\bin;%PATH%
rem --- Set MSVC environment vars
call "%VCVARS%"
rem --- Prepend SDK paths
rem --- Only required for MSVC7 or the Free MSVC editions that don't
come with an SDK
rem --- set PATH=%MSSDK%\bin;%PATH%
rem --- set INCLUDE=%MSSDK%\include;%MSSDK%\include\atl;%INCLUDE%
rem --- set LIB=%MSSDK%\lib;%LIB%
rem --- moztools comes last
set PATH=%PATH%;%MOZ_TOOLS%\bin
rem --- Now the PATH variable contains:
rem MS-SDK; MSVC; Cygwin; Windows; glib/libIDL; Moztools
rem --- Typically the last thing the script does is launch a cygwin shell
rem --- watch for your ~/.profile and /etc/profile which may overwrite
your carefully setup PATH!
bash --login -i
####################End of code#######################################
I run the above file to go into the cygwin shell. And then I run the
following commands:
###########################Begin of commands############################
cvs -d :pserver:anon...@cvs-mirror.mozilla.org:/cvsroot co -r
MOZILLA_1_8_BRANCH mozilla/client.mk
cd mozilla
make -f client.mk
############################End of commands#############################
And this is my .mozconfig file:
#######################Begin file#######################################
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
mk_add_options MOZ_CO_PROJECT=xulrunner
ac_add_options --enable-application=xulrunner
ac_add_options --disable-installer
#########################End of file####################################
And then I got the error:
########################Begin Error#####################################
rm -f xpcomglue_s.lib
lib -NOLOGO -OUT:"xpcomglue_s.lib" pldhash.obj nsCOMPtr.obj
nsComponentManagerUtils.obj nsDebug.obj nsID.obj
nsIInterfaceRequestorUtils.obj nsINIParser.obj nsMemory.obj
nsTraceRefcnt.obj nsWeakReference.obj nsGREGlue.obj
nsVersionComparator.obj nsTHashtable.obj nsTArray.obj nsXPCOMGlue.obj
nsGREDirServiceProvider.obj nsGlueLinkingWin.obj
echo not_ranlib xpcomglue_s.lib
not_ranlib xpcomglue_s.lib
/cygdrive/d/packages/mozilla/build/mozilla/build/cygwin-wrapper
/cygdrive/d/packages/mozilla/moztools/bin/nsinstall -m 644
xpcomglue_s.lib ../../../dist/lib
make[5]: *** No rule to make target `xpcomglue.lib', needed by `libs'.
Stop.
make[5]: Leaving directory
`/cygdrive/d/packages/mozilla/build/mozilla/obj-i686-pc-cygwin/xpcom/glue/standalone'
make[4]: *** [libs] Error 2
make[4]: Leaving
directory`/cygdrive/d/packages/mozilla/build/mozilla/obj-i686-pc-cygwin/xpcom/glue'
make[3]: *** [libs] Error 2
make[3]: Leaving
directory`/cygdrive/d/packages/mozilla/build/mozilla/obj-i686-pc-cygwin/xpcom'
########################End of Error###################################
-----------------------------------------------------------------------
Build with the downloaded benjamin windows building env
-----------------------------------------------------------------------
I download the files from the benjamin blog, and unpack it, then run
start-mscv6.bat. And the following steps are the same with the steps
what I did with cygwin build and so are the errors.
Help please!
Thank you!
The only problem I can see with this script is the mis-spelling of
packages in the definition of HOME.
I don't have any ideas for the build error. XULRunner should still be
buildable from the 1.8 branch, tinderbox is doing that continually for
Linux at least (argo at http://tinderbox.mozilla.org/Mozilla1.8/).
I'll try a build with VC6 and my cygwin setup.