Closed Bug 367860 Opened 18 years ago Closed 18 years ago

mkdepend failure at layout/build/nsLayoutModule.cpp

Categories

(Firefox Build System :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bengt.erik.soderstrom, Unassigned)

Details

Attachments

(1 file)

Mingw build error in nsLayoutModule.cpp:
Possibly this happened while we were busy resolving Bug 367742. 


Building deps for /cygdrive/d/mozilla/mozilla/layout/inspector/src/inLayoutUtils
.cpp
/cygdrive/d/mozilla/mozilla/build/cygwin-wrapper g++ -mno-cygwin -o inLayoutUtil
s.o -c  -DMOZILLA_INTERNAL_API -DOSTYPE=\"WINNT5.1\" -DOSARCH=\"WINNT\" -DBUILD_
ID=2007012311  -I../../../dist/include/xpcom -I../../../dist/include/string -I..
/../../dist/include/dom -I../../../dist/include/gfx -I../../../dist/include/layo
ut -I../../../dist/include/content -I../../../dist/include/xul -I../../../dist/i
nclude/widget -I../../../dist/include/locale -I../../../dist/include/necko -I../
../../dist/include/docshell -I../../../dist/include/view -I../../../dist/include
/webshell -I../../../dist/include   -I../../../dist/include/inspector -I../../..
/dist/include/nspr  -DMOZ_PNG_READ -DPNG_NO_MMX_CODE -DMOZ_PNG_WRITE  -I../../..
/dist/sdk/include       -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-a
rith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-v
irtual-dtor -Wno-long-long -pedantic -mms-bitfields -pipe  -DNDEBUG -DTRIMMED -O
   -DWINVER=0x501 -D_WIN32_WINNT=0x501 -D_WIN32_IE=0x0400 -DX_DISPLAY_MISSING=1
-DMOZILLA_VERSION=\"1.9a2pre\" -DMOZILLA_VERSION_U=1.9a2pre -DHAVE_SNPRINTF=1 -D
_WINDOWS=1 -D_WIN32=1 -DWIN32=1 -DXP_WIN=1 -DXP_WIN32=1 -DHW_THREADS=1 -DSTDC_HE
ADERS=1 -DWIN32_LEAN_AND_MEAN=1 -DNO_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-DJS_THREADSAFE=1 -DMOZILLA_LOCALE_VERSION=\"1.9a1\" -DM
OZILLA_REGION_VERSION=\"1.9a1\" -DMOZILLA_SKIN_VERSION=\"1.8\"  -D_MOZILLA_CONFI
G_H_ -DMOZILLA_CLIENT /cygdrive/d/mozilla/mozilla/layout/inspector/src/inLayoutU
tils.cpp
rm -f libinspector_s.a
ar cr libinspector_s.a inDOMView.o inDeepTreeWalker.o inFlasher.o inSearchLoop.o
 inCSSValueSearch.o inFileSearch.o inDOMUtils.o inLayoutUtils.o
ranlib libinspector_s.a
/cygdrive/d/mozilla/mozilla/build/cygwin-wrapper /cygdrive/d/mozilla/moztools/bi
n/nsinstall -m 644 libinspector_s.a ../../../dist/lib
make[6]: Leaving directory `/cygdrive/d/mozilla/mozilla/object-mingw/layout/insp
ector/src'
make[5]: Leaving directory `/cygdrive/d/mozilla/mozilla/object-mingw/layout/insp
ector'
make[5]: Entering directory `/cygdrive/d/mozilla/mozilla/object-mingw/layout/bui
ld'
nsLayoutModule.cpp
Building deps for /cygdrive/d/mozilla/mozilla/layout/build/nsLayoutModule.cpp
make[5]: *** [nsLayoutModule.o] Error 1
make[5]: Leaving directory `/cygdrive/d/mozilla/mozilla/object-mingw/layout/buil
d'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/cygdrive/d/mozilla/mozilla/object-mingw/layout'
make[3]: *** [libs_tier_gecko] Error 2
make[3]: Leaving directory `/cygdrive/d/mozilla/mozilla/object-mingw'
make[2]: *** [tier_gecko] Error 2
make[2]: Leaving directory `/cygdrive/d/mozilla/mozilla/object-mingw'
make[1]: *** [alldep] Error 2
make[1]: Leaving directory `/cygdrive/d/mozilla/mozilla/object-mingw'
make: *** [alldep] Error 2
I haven't had this build error (yet).
Did you try clobbering your build?
Nope, to make sure I nuked the object directory and started over again. The build was ready just a few minutes ago. Exactly the same bad result.
I'm now getting the same error. I wasn't earlier as my build was failing earlier in the process (different bug).
The problem appears to be in dependency generation.  If I do:
  make -C ../obj-mingw-all/ff/layout/build libs MOZ_AUTO_DEPS=
Then that portion of the build completes.  Use --disable-auto-deps to get around this.
Ok, there you go.  Remove the |>/dev/null| from line 1149 of config/rules.mk and you see:
c:\root\obj-mingw-all\ff\config\mkdepend\mkdepend.exe: error:  Too many -I flags.

That doesn't sound like a mingw only bug.  Surely other builds that use the in-tree mkdepend will see this as well.  MAXDIRS in config/mkdepend/def.h needs to be bumped to something higher than 64.
Product: Firefox → Core
QA Contact: build.config → build-config
(In reply to comment #5)
> Ok, there you go.  Remove the |>/dev/null| from line 1149 of config/rules.mk
> and you see:
> c:\root\obj-mingw-all\ff\config\mkdepend\mkdepend.exe: error:  Too many -I
> flags.
> 
> That doesn't sound like a mingw only bug.  Surely other builds that use the
> in-tree mkdepend will see this as well.  MAXDIRS in config/mkdepend/def.h needs
> to be bumped to something higher than 64.
> 

Well, I tried to change config/mkdepend/def.h like this:

#define MAXDIRS	128

But that did not help.

On the other hand it works having --disable-auto-deps in the
.mozconfig as suggested in comment #4. Then Mingw is quite happy.

You have to clobber mkdepend & rebuild for the change to take affect.
Summary: Mingw build error in nsLayoutModule.cpp → mkdepend failure at layout/build/nsLayoutModule.cpp
Attachment #252803 - Flags: review?(benjamin)
(In reply to comment #8)
> Created an attachment (id=252803) [details]
> bump MAXDIRS to 1024
> 

I did that and it works. Mingw is happy.

Now it is up to decide which is best: 

- Change def.h:  #define MAXDIRS    1024

- Or recommend ac_add_optons --disable-auto-deps in the .mozconfig for Mingw.

Attachment #252803 - Flags: review?(benjamin) → review+
(In reply to comment #5)
>Remove the |>/dev/null| from line 1149 of config/rules.mk and you see:
>mkdepend.exe: error:  Too many -I flags.
Then should we remove the >/dev/null in case of future errors?
(In reply to comment #11)
> (In reply to comment #5)
> >Remove the |>/dev/null| from line 1149 of config/rules.mk and you see:
> >mkdepend.exe: error:  Too many -I flags.
> Then should we remove the >/dev/null in case of future errors?

I tried that.  mkdepend is seriously verbose.  Without changing its current output, I don't think this is viable.

Comment on attachment 252803 [details] [diff] [review]
bump MAXDIRS to 1024

We need this for our branch build. I tested the patch and it works fine on 1.8.
Attachment #252803 - Flags: approval1.8.0.13?
Attachment #252803 - Flags: approval1.8.0.12?
Comment on attachment 252803 [details] [diff] [review]
bump MAXDIRS to 1024

We're already tagged and into release candidates, too late for 1.8.0.12
Attachment #252803 - Flags: approval1.8.0.12?
Attachment #252803 - Flags: approval1.8.0.13? → approval1.8.0.14?
Attachment #252803 - Flags: approval1.8.0.14?
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: