Closed Bug 367742 Opened 17 years ago Closed 17 years ago

Mingw build error in gfxWindowsFonts.cpp

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 371659

People

(Reporter: bengt.erik.soderstrom, Unassigned)

References

Details

Attachments

(2 obsolete files)

Again a Mingw build error: gfxWindowsFonts.cpp

A couple of days ago it was OK but now I get this:

Building deps for /cygdrive/d/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp

/cygdrive/d/mozilla/mozilla/build/cygwin-wrapper g++ -mno-cygwin -o gfxWindowsFo
nts.o -c  -DIMPL_THEBES -DMOZILLA_INTERNAL_API -DOSTYPE=\"WINNT5.1\" -DOSARCH=\"
WINNT\" -DBUILD_ID=2007012213  -I../../../dist/include/cairo -I../../../dist/inc
lude/libpixman -I../../../dist/include/string -I../../../dist/include/pref -I../
../../dist/include/xpcom -I../../../dist/include/unicharutil -I../../../dist/inc
lude/gfx -I../../../dist/include   -I../../../dist/include/thebes -I../../../dis
t/include/nspr  -DMOZ_PNG_READ -DPNG_NO_MMX_CODE -DMOZ_PNG_WRITE  -I../../../dis
t/sdk/include       -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
 -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtu
al-dtor -Wno-long-long -pedantic -mms-bitfields -pipe  -DNDEBUG -DTRIMMED -O -I.
./../../dist/include/cairo    -DWINVER=0x501 -D_WIN32_WINNT=0x501 -D_WIN32_IE=0x
0400 -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_HEADERS=1 -DWIN32_LEAN_AND_MEAN=1 -DNO_X11=1 -D_X86_=1
-DD_INO=d_ino -DSTDC_HEADERS=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.9a1\" -DMOZILLA_REGION_VERSION=\"1.9a1\" -DMOZILLA_SKIN_VERSIO
N=\"1.8\"  -UWIN32_LEAN_AND_MEAN -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT /cygdrive
/d/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp: In member function `HFONT
__* gfxWindowsFont::MakeHFONT()':
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp:226: warning: comparison b
etween signed and unsigned integer expressions
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp: In member function `virtu
al nsString gfxWindowsFont::GetUniqueName()':
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp:443: error: call of overlo
aded `AppendInt(LONG&)' is ambiguous
../../../dist/include/string/nsTString.h:392: note: candidates are: void nsStrin
g::AppendInt(PRInt32, PRInt32)
../../../dist/include/string/nsTString.h:398: note:                 void nsStrin
g::AppendInt(PRUint32, PRInt32)
../../../dist/include/string/nsTString.h:407: note:                 void nsStrin
g::AppendInt(PRInt64, PRInt32)
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp: In member function `doubl
e gfxWindowsTextRun::MeasureOrDrawFast(gfxContext*, PRBool, gfxPoint)':
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp:848: warning: comparison b
etween signed and unsigned integer expressions
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp: In constructor `Uniscribe
Item::UniscribeItem(gfxContext*, HDC__*, const PRUnichar*, PRUint32, SCRIPT_ITEM
*, gfxWindowsFontGroup*)':
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp:1498: warning: `UniscribeI
tem::mAlternativeString' will be initialized after
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp:1492: warning:   `SCRIPT_I
TEM*UniscribeItem::mScriptItem'
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp:1021: warning:   when init
ialized here
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp:1507: warning: `UniscribeI
tem::mNumGlyphs' will be initialized after
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp:1506: warning:   `int Unis
cribeItem::mMaxGlyphs'
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp:1021: warning:   when init
ialized here
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp: In member function `cairo
_glyph_t* UniscribeItem::GetCairoGlyphs(const gfxPoint&, gfxFloat&, PRUint32*)':

d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp:1267: warning: comparison
between signed and unsigned integer expressions
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp: In member function `doubl
e gfxWindowsTextRun::MeasureOrDrawUniscribe(gfxContext*, PRBool, gfxPoint)':
d:/mozilla/mozilla/gfx/thebes/src/gfxWindowsFonts.cpp:1632: warning: unused vari
able 'fontIndex'
../../../dist/include/thebes/gfxWindowsFonts.h: At global scope:
../../../dist/include/thebes/gfxWindowsFonts.h:232: warning: 'PRUint8 CharRangeB
it(PRUint32)' defined but not used
make[6]: *** [gfxWindowsFonts.o] Error 1
make[6]: Leaving directory `/cygdrive/d/mozilla/mozilla/object-mingw/gfx/thebes/
src'
make[5]: *** [libs] Error 2
make[5]: Leaving directory `/cygdrive/d/mozilla/mozilla/object-mingw/gfx/thebes'

make[4]: *** [libs] Error 2
make[4]: Leaving directory `/cygdrive/d/mozilla/mozilla/object-mingw/gfx'
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
Component: Build Config → GFX: Thebes
Product: Firefox → Core
QA Contact: build.config → thebes
I was able to build the trunk using mingw without issue using a cvs pull after this bug was filed. What are you building, trunk? What is your .mozconfig? Are you using VC8 Express?
I'm getting this build error too. I build using gcc.
This is a regression from bug 366870.
Blocks: 366870
Attached patch patch (obsolete) — Splinter Review
This fixes it for me.
Attachment #252405 - Flags: review?(vladimir)
Can't you just cast to PRInt32() ?
(In reply to comment #3)
> Created an attachment (id=252405) [details]
> patch
> 
> This fixes it for me.
> 

Thanks, Martijn. Your patch seems to work fine.
Unfortunately there are more Mingw build errors, I filed bug 367860 today

(In reply to comment #1)
> I was able to build the trunk using mingw without issue using a cvs pull after
> this bug was filed. What are you building, trunk? What is your .mozconfig? Are
> you using VC8 Express?
> 

For your information, and others, this is my mingw .mozconfig which has been working just fine for the past months.


. $topsrcdir/browser/config/mozconfig
#mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/object
# Alternatives for MinGW
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/object-mingw
CC=gcc
CXX=g++
CPP=cpp
AS=as
LD=ld
ac_add_options --enable-optimize
ac_add_options --enable-crypto
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-accessibility
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --disable-xpconnect-idispatch
ac_add_options --disable-libxul
ac_add_options --disable-installer
ac_add_options --enable-svg
ac_add_options --enable-canvas
ac_add_options --enable-default-toolkit=cairo-windows
Attached patch patch (obsolete) — Splinter Review
You mean like this?
Attachment #252455 - Flags: review?(vladimir)
(In reply to comment #7)
> Created an attachment (id=252455) [details]
> patch
> 
> You mean like this?
> 

Maybe cast is a bit more elegant. Anyhow it works for me.
Blocks: mingw
Attachment #252405 - Attachment is obsolete: true
Attachment #252405 - Flags: review?(vladimir)
Vlad, could you review the tiny little patch?
Comment on attachment 252455 [details] [diff] [review]
patch

Fixed on 2007-02-27 in rev 1.86 of gfxWindowsFonts.cpp by mats.palmgren - not sure if there ended up being a separate bug, no bug # was referenced in the checkin
Attachment #252455 - Attachment is obsolete: true
Attachment #252455 - Flags: review?(vladimir)
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Thanks, it was bug 371659.
Resolution: FIXED → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: