Closed Bug 392708 Opened 17 years ago Closed 17 years ago

Can't build with Orcas B2 (Sqlite error)

Categories

(Firefox Build System :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9beta1

People

(Reporter: atzaus, Assigned: atzaus)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007081505 Minefield/3.0a8pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007081505 Minefield/3.0a8pre

While building with VC++ 2008 Orcas Express Beta 2 and Microsoft SDK 6.0A (The one that ships with Orcas Express B2) or Microsoft SDK 6.1 (Windows Server 2008 SDK) I am getting the same error

e:/BuildDir/mozilla/db/sqlite3/src/sqlite3.c(61215) : warning C4244: '=' : conve
rsion from 'u16' to 'unsigned char', possible loss of data
/bin/perl /e/BuildDir/mozilla/config/version_win.pl -QUIET 1 -DEPTH ../../.. -TO
PSRCDIR /e/BuildDir/mozilla -BITS 32 -OBJDIR . -SRCDIR /e/BuildDir/mozilla/db/sq
lite3/src -DISPNAME Firefox -MODNAME sqlite3
Creating Resource file: module.res
rc.exe  -r -DSQLITE_ENABLE_REDEF_IO -DSQLITE_SECURE_DELETE=1 -DTHREADSAFE=1 -DOS
TYPE=\"WINNT5.1\" -DOSARCH=WINNT -I/e/BuildDir/mozilla/db/sqlite3/src  -I../../.
./dist/include   -I../../../dist/include/sqlite3 -I../../../dist/include/nspr  -
DMOZ_PNG_READ -DPNG_NO_MMX_CODE -DMOZ_PNG_WRITE   -I../../../dist/sdk/include -F
omodule.res /e/BuildDir/mozilla/obj-firefox/db/sqlite3/src/module.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation.  All rights reserved.

link -NOLOGO -DLL -OUT:sqlite3.dll -PDB:sqlite3.pdb -SUBSYSTEM:WINDOWS  sqlite3.
obj   ./module.res -NXCOMPAT -SAFESEH  -DEF:e:/BuildDir/mozilla/db/sqlite3/src/s
qlite.def -MAP:sqlite3.map -MAPINFO:LINES   kernel32.lib user32.lib gdi32.lib wi
nmm.lib wsock32.lib advapi32.lib
LINK : fatal error LNK1117: syntax error in option 'MAPINFO:LINES'
make[5]: *** [sqlite3.dll] Error 93
make[5]: Leaving directory `/e/BuildDir/mozilla/obj-firefox/db/sqlite3/src'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/e/BuildDir/mozilla/obj-firefox/storage'
make[3]: *** [libs_tier_gecko] Error 2
make[3]: Leaving directory `/e/BuildDir/mozilla/obj-firefox'
make[2]: *** [tier_gecko] Error 2
make[2]: Leaving directory `/e/BuildDir/mozilla/obj-firefox'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/e/BuildDir/mozilla/obj-firefox'
make: *** [build] Error 2


Reproducible: Always
bug 306907 added a MAPFILE line to db/sqlite3/Makefile.in, not sure why...
Blocks: 306907
Blocks: vc9
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: Firefox → Core
QA Contact: build.config → build-config
Version: unspecified → Trunk
I got it working after removing "MAPFILE = $(LIBRARY_NAME).map" from db\sqlite3\src\Makefile.in but then I got more linker errors in the end

   Creating library xul.lib and object xul.exp
thebes.lib(gfxPDFSurface.obj) : error LNK2001: unresolved external symbol __moz_
cairo_create
thebes.lib(gfxPDFSurface.obj) : error LNK2001: unresolved external symbol __moz_
cairo_destroy
thebes.lib(gfxPDFSurface.obj) : error LNK2001: unresolved external symbol __moz_
cairo_pdf_surface_create_for_stream
thebes.lib(gfxPDFSurface.obj) : error LNK2001: unresolved external symbol __moz_
cairo_show_page
thebes.lib(gfxPDFSurface.obj) : error LNK2001: unresolved external symbol __moz_
cairo_surface_set_fallback_resolution
thebes.lib(gfxPath.obj) : error LNK2001: unresolved external symbol __moz_cairo_
path_destroy
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_line_cap
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_surface_get_device_offset
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_line_width
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_get_source
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_device_to_user
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_identity_matrix
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_get_operator
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_get_current_point
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_in_stroke
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_get_line_join
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_translate
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_mask
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_clip_preserve
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_get_fill_rule
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_get_line_width
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_paint_with_alpha
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_arc_negative
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_get_matrix
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_operator
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_get_miter_limit
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_user_to_device
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_curve_to
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_rel_curve_to
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_new_path
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_line_to
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_new_sub_path
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_scale
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_transform
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_in_fill
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_reset_clip
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_get_rgba
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_move_to
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_clip_extents
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_get_group_target
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_matrix
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_user_to_device_distance
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_restore
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_antialias
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pop_group
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_stroke_preserve
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_save
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_push_group_with_content
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_fill_extents
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_source
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_mask_surface
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_line_join
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_arc
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_source_surface
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_close_path
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_stroke_extents
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_rotate
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pop_group_to_source
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_copy_path_flat
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_fill_rule
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_fill_preserve
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_device_to_user_distance
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_clip
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_fill
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_rectangle
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_get_line_cap
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_dash
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_source_rgba
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_get_antialias
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_set_miter_limit
thebes.lib(gfxContext.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_destroy
thebes.lib(gfxWindowsSurface.obj) : error LNK2001: unresolved external symbol __
moz_cairo_win32_surface_create_with_ddb
thebes.lib(gfxWindowsSurface.obj) : error LNK2001: unresolved external symbol __
moz_cairo_win32_surface_create_with_dib
thebes.lib(gfxWindowsSurface.obj) : error LNK2001: unresolved external symbol __
moz_cairo_win32_surface_get_dc
thebes.lib(gfxWindowsSurface.obj) : error LNK2001: unresolved external symbol __
moz_cairo_win32_surface_create
thebes.lib(gfxWindowsSurface.obj) : error LNK2001: unresolved external symbol __
moz_cairo_win32_surface_get_image
thebes.lib(gfxMatrix.obj) : error LNK2001: unresolved external symbol __moz_cair
o_matrix_multiply
thebes.lib(gfxMatrix.obj) : error LNK2001: unresolved external symbol __moz_cair
o_matrix_scale
thebes.lib(gfxMatrix.obj) : error LNK2001: unresolved external symbol __moz_cair
o_matrix_transform_point
thebes.lib(gfxMatrix.obj) : error LNK2001: unresolved external symbol __moz_cair
o_matrix_invert
thebes.lib(gfxMatrix.obj) : error LNK2001: unresolved external symbol __moz_cair
o_matrix_translate
thebes.lib(gfxMatrix.obj) : error LNK2001: unresolved external symbol __moz_cair
o_matrix_rotate
thebes.lib(gfxMatrix.obj) : error LNK2001: unresolved external symbol __moz_cair
o_matrix_transform_distance
thebes.lib(gfxMatrix.obj) : error LNK2001: unresolved external symbol __moz_cair
o_matrix_init_identity
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_flush
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_get_content
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_destroy
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_finish
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_status
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_get_type
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_set_user_data
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_set_device_offset
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_get_reference_count
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_get_user_data
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_reference
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_mark_dirty_rectangle
thebes.lib(gfxASurface.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_surface_mark_dirty
thebes.lib(gfxImageSurface.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_image_surface_get_format
thebes.lib(gfxImageSurface.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_image_surface_create_for_data
thebes.lib(gfxImageSurface.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_image_surface_get_data
thebes.lib(gfxImageSurface.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_image_surface_get_width
thebes.lib(gfxImageSurface.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_image_surface_get_stride
thebes.lib(gfxImageSurface.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_image_surface_get_height
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_get_filter
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_set_matrix
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_create_rgba
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_add_color_stop_rgba
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_reference
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_create_for_surface
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_get_matrix
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_create_radial
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_create_linear
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_set_filter
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_get_surface
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_set_extend
thebes.lib(gfxPattern.obj) : error LNK2001: unresolved external symbol __moz_cai
ro_pattern_get_extend
thebes.lib(gfxPlatform.obj) : error LNK2001: unresolved external symbol __moz_ca
iro_debug_reset_static_data
thebes.lib(gfxFont.obj) : error LNK2001: unresolved external symbol __moz_cairo_
glyph_path
thebes.lib(gfxFont.obj) : error LNK2001: unresolved external symbol __moz_cairo_
show_glyphs
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_scaled_font_destroy
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_set_font_size
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_set_font_face
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_set_scaled_font
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_scaled_font_create
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_font_options_create
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_win32_scaled_font_done_font
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_font_face_destroy
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_font_options_destroy
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_win32_scaled_font_select_font
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_matrix_init_scale
thebes.lib(gfxWindowsFonts.obj) : error LNK2001: unresolved external symbol __mo
z_cairo_win32_font_face_create_for_logfontw_hfont
xul.dll : fatal error LNK1120: 131 unresolved externals
make[4]: *** [xul.dll] Error 96
make[4]: Leaving directory `/e/BuildDir/mozilla/obj-firefox/toolkit/library'
make[3]: *** [libs_tier_toolkit] Error 2
make[3]: Leaving directory `/e/BuildDir/mozilla/obj-firefox'
make[2]: *** [tier_toolkit] Error 2
make[2]: Leaving directory `/e/BuildDir/mozilla/obj-firefox'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/e/BuildDir/mozilla/obj-firefox'
make: *** [build] Error 2
trying with a fresh source directory landed me at
nsStackWalk.cpp
e:/BuildDir/mozilla/xpcom/base/nsStackWalk.cpp(775) : error C2664: 'BOOL (HANDLE,PENUMLOADED_MODULES_CALLBACK,PVOID)' : cannot convert parameter 2 from 'overloaded-function' to 'PENUMLOADED_MODULES_CALLBACK'
        None of the functions with this name in scope match the target type
e:/BuildDir/mozilla/xpcom/base/nsStackWalk.cpp(842) : error C2664: 'BOOL (HANDLE,PENUMLOADED_MODULES_CALLBACK64,PVOID)' : cannot convert parameter 2 from 'overloaded-function' to 'PENUMLOADED_MODULES_CALLBACK64'
        None of the functions with this name in scope match the target type
e:/BuildDir/mozilla/xpcom/base/nsStackWalk.cpp(958) : warning C4244: '=' : conversion from 'DWORD64' to 'unsigned long', possible loss of data
e:/BuildDir/mozilla/xpcom/base/nsStackWalk.cpp(1010) : warning C4244: '=' : conversion from 'DWORD64' to 'unsigned long', possible loss of data
make[5]: Leaving directory `/e/BuildDir/mozilla/obj-firefox/xpcom/base'
make[4]: Leaving directory `/e/BuildDir/mozilla/obj-firefox/xpcom'
make[3]: Leaving directory `/e/BuildDir/mozilla/obj-firefox'
make[2]: Leaving directory `/e/BuildDir/mozilla/obj-firefox'
make[1]: Leaving directory `/e/BuildDir/mozilla/obj-firefox'
The stackwalk error was fixed by https://bugzilla.mozilla.org/show_bug.cgi?id=391848#c21. The only problem left is the one mentioned in comment #3
The error in comment 3 is bug 394096, totally unrelated to this issue
After removing the line mentioned in comment 3 firefox compiles as usual so if anyone can check that in this bug is resolved
Attached patch Patch to remove the mapfile line (obsolete) — Splinter Review
Attachment #279091 - Attachment is patch: true
Attachment #279091 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 279091 [details] [diff] [review]
Patch to remove the mapfile line

Please generate the diff from the toplevel directory.  It isn't exactly clear which Makefile.in you are patching.
I used this
cvs diff -up8 mozilla/db/sqlite3/src/Makefile.in > sqlite-makefile.patch

Is it better now?
Attachment #279091 - Attachment is obsolete: true
Attachment #279394 - Flags: review?(benjamin)
Comment on attachment 279394 [details] [diff] [review]
Patch with diff against cvs

This patch is correct. However, we're going to need to fix the case that MAPINFO:LINES doesn't work in order to get MOZ_MAPINFO working for codesighs support.
Attachment #279394 - Flags: review?(benjamin)
Attachment #279394 - Flags: review+
Attachment #279394 - Flags: approval1.9+
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=150894&SiteID=1

"Visual Studio .NET 2005. According to the Visual C++: Getting Started, New Linker Features documentation, the "/mapinfo:lines" linker option has been removed."
Keywords: checkin-needed
Assignee: nobody → aliumalik
Checking in db/sqlite3/src/Makefile.in;
/cvsroot/mozilla/db/sqlite3/src/Makefile.in,v  <--  Makefile.in
new revision: 1.28; previous revision: 1.27
done
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M9
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: