Last Comment Bug 773551 - Build failure at creating library gkmedias.lib and object gkmedias.exp
: Build failure at creating library gkmedias.lib and object gkmedias.exp
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: Build Config (show other bugs)
: Trunk
: x86_64 Windows 7
: -- blocker (vote)
: ---
Assigned To: Ben Turner (not reading bugmail, use the needinfo flag!)
:
Mentors:
Depends on:
Blocks: 763651
  Show dependency treegraph
 
Reported: 2012-07-13 00:20 PDT by Masayuki Nakano [:masayuki] (Mozilla Japan)
Modified: 2012-07-13 08:39 PDT (History)
3 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
dumpbin -exports mozglue.lib (3.06 KB, text/plain)
2012-07-13 05:55 PDT, Ben Turner (not reading bugmail, use the needinfo flag!)
no flags Details
dumpbin -exports mozglue.dll (2.91 KB, text/plain)
2012-07-13 06:57 PDT, Ben Turner (not reading bugmail, use the needinfo flag!)
no flags Details
Patch, v1 (694 bytes, patch)
2012-07-13 08:35 PDT, Ben Turner (not reading bugmail, use the needinfo flag!)
benjamin: review+
Details | Diff | Splinter Review

Description Masayuki Nakano [:masayuki] (Mozilla Japan) 2012-07-13 00:20:30 PDT
When I build a debug build with today's m-c (using VS2010, pymake on Win7 x64), build fails with following error:

>    Creating library gkmedias.lib and object gkmedias.exp
> ots.obj : error LNK2019: unresolved external symbol __imp__MOZ_Z_uncompress referenced in function "bool __cdecl `anonymous namespace'::ProcessGeneric(struct ots::OpenTypeFile *,unsigned int,class ots::OTSStream *,unsigned char const *,unsigned int,class std::vector<struct `anonymous namespace'::OpenTypeTable,class std::allocator<struct `anonymous namespace'::OpenTypeTable> > const &,class ots::Buffer &)" (?ProcessGeneric@?A0x45a82312@@YA_NPAUOpenTypeFile@ots@@IPAVOTSStream@3@PBEIABV?$vector@UOpenTypeTable@?A0x45a82312@@V?$allocator@UOpenTypeTable@?A0x45a82312@@@std@@@std@@AAVBuffer@3@@Z)
> cairo-deflate-stream.obj : error LNK2019: unresolved external symbol __imp__MOZ_Z_deflate referenced in function _cairo_deflate_stream_deflate
> pngwrite.obj : error LNK2001: unresolved external symbol __imp__MOZ_Z_deflate
> pngwutil.obj : error LNK2001: unresolved external symbol __imp__MOZ_Z_deflate
> cairo-deflate-stream.obj : error LNK2019: unresolved external symbol __imp__MOZ_Z_deflateEnd referenced in function __cairo_deflate_stream_close
> pngwrite.obj : error LNK2001: unresolved external symbol __imp__MOZ_Z_deflateEnd
> pngwutil.obj : error LNK2001: unresolved external symbol __imp__MOZ_Z_deflateEnd
> cairo-deflate-stream.obj : error LNK2019: unresolved external symbol __imp__MOZ_Z_deflateInit_ referenced in function __cairo_deflate_stream_create
> png.obj : error LNK2019: unresolved external symbol __imp__MOZ_Z_crc32 referenced in function _MOZ_PNG_reset_crc
> png.obj : error LNK2019: unresolved external symbol __imp__MOZ_Z_inflateReset referenced in function _MOZ_PNG_reset_zs
> pngrutil.obj : error LNK2001: unresolved external symbol __imp__MOZ_Z_inflateReset
> pngpread.obj : error LNK2019: unresolved external symbol __imp__MOZ_Z_inflate referenced in function _MOZ_PNG_proc_IDAT_data
> pngrutil.obj : error LNK2001: unresolved external symbol __imp__MOZ_Z_inflate
> pngread.obj : error LNK2019: unresolved external symbol __imp__MOZ_Z_inflateInit_ referenced in function _MOZ_PNG_cr_read_str
> pngread.obj : error LNK2019: unresolved external symbol __imp__MOZ_Z_inflateEnd referenced in function _MOZ_PNG_read_dest
> pngwutil.obj : error LNK2019: unresolved external symbol __imp__MOZ_Z_deflateInit2_ referenced in function _MOZ_PNG_zlib_claim
> pngwutil.obj : error LNK2019: unresolved external symbol __imp__MOZ_Z_deflateReset referenced in function _MOZ_PNG_zlib_release
> gkmedias.dll : fatal error LNK1120: 11 unresolved externals
> m:\mc-c\src\config\rules.mk:901:0: command 'm:/mc-c/fx-dbg/_virtualenv/Scripts/python.exe m:/mc-c/src/config/pythonpath.py -I../../config m:/mc-c/src/config/expandlibs_exec.py --depend .deps/gkmedias.dll.pp --target gkmedias.dll --uselist -- link -NOLOGO -DLL -OUT:gkmedias.dll -PDB:gkmedias.pdb -SUBSYSTEM:WINDOWS -MACHINE:X86     ./module.res -LARGEADDRESSAWARE -NXCOMPAT -DYNAMICBASE -SAFESEH  -DEBUG -DEBUGTYPE:CV -DEF:symbols.def    ../../gfx/ots/src/mozots.lib ../../gfx/qcms/mozqcms.lib ../../gfx/harfbuzz/src/mozharfbuzz.lib  ../../gfx/cairo/cairo/src/mozcairo.lib  ../../gfx/cairo/libpixman/src/mozlibpixman.lib ../../gfx/graphite2/src/mozgraphite2.lib ../../media/libvorbis/lib/vorbis.lib ../../media/libogg/src/ogg.lib  ../../media/libtheora/lib/theora.lib  ../../media/libopus/opus.lib  ../../media/libnestegg/src/nestegg.lib  ../../media/libvpx/vpx.lib  ../../media/libsydneyaudio/src/sydneyaudio.lib  ../../media/libspeex_resampler/src/speex_resampler.lib  ../../media/libcubeb/src/cubeb.lib  ../../media/libpng/mozpng.lib  ../../media/libjpeg/mozjpeg.lib  ../../gfx/angle/angle.lib ../../parser/expat/lib/mozexpat_s.lib  ../../gfx/2d/gfx2d.lib  ../../media/webrtc/trunk/src/modules/modules_video_capture_module/video_capture_module.lib ../../media/webrtc/trunk/src/modules/modules_webrtc_utility/webrtc_utility.lib ../../media/webrtc/trunk/src/modules/modules_audio_coding_module/audio_coding_module.lib ../../media/webrtc/trunk/src/modules/modules_CNG/CNG.lib ../../media/webrtc/trunk/src/common_audio/common_audio_signal_processing/signal_processing.lib ../../media/webrtc/trunk/src/modules/modules_G711/G711.lib ../../media/webrtc/trunk/src/modules/modules_G722/G722.lib ../../media/webrtc/trunk/src/modules/modules_iLBC/iLBC.lib ../../media/webrtc/trunk/src/modules/modules_iSAC/iSAC.lib ../../media/webrtc/trunk/src/modules/modules_iSACFix/iSACFix.lib ../../media/webrtc/trunk/src/modules/modules_PCM16B/PCM16B.lib ../../media/webrtc/trunk/src/modules/modules_NetEq/NetEq.lib ../../media/webrtc/trunk/src/common_audio/common_audio_resampler/resampler.lib ../../media/webrtc/trunk/src/common_audio/common_audio_vad/vad.lib ../../media/webrtc/trunk/src/system_wrappers/source/system_wrappers_system_wrappers/system_wrappers.lib ../../media/webrtc/trunk/src/modules/modules_webrtc_video_coding/webrtc_video_coding.lib ../../media/webrtc/trunk/src/modules/modules_webrtc_i420/webrtc_i420.lib ../../media/webrtc/trunk/src/modules/modules_webrtc_vp8/webrtc_vp8.lib ../../media/webrtc/trunk/src/common_video/common_video_webrtc_libyuv/webrtc_libyuv.lib ../../media/webrtc/trunk/src/modules/modules_video_render_module/video_render_module.lib ../../media/webrtc/trunk/src/video_engine/video_engine_video_engine_core/video_engine_core.lib ../../media/webrtc/trunk/src/modules/modules_media_file/media_file.lib ../../media/webrtc/trunk/src/modules/modules_rtp_rtcp/rtp_rtcp.lib ../../media/webrtc/trunk/src/modules/modules_udp_transport/udp_transport.lib ../../media/webrtc/trunk/src/modules/modules_video_processing/video_processing.lib ../../media/webrtc/trunk/src/modules/modules_video_processing_sse2/video_processing_sse2.lib ../../media/webrtc/trunk/src/voice_engine/voice_engine_voice_engine_core/voice_engine_core.lib ../../media/webrtc/trunk/src/modules/modules_audio_conference_mixer/audio_conference_mixer.lib ../../media/webrtc/trunk/src/modules/modules_audio_device/audio_device.lib ../../media/webrtc/trunk/src/modules/modules_audio_processing/audio_processing.lib ../../media/webrtc/trunk/src/modules/modules_aec/aec.lib ../../media/webrtc/trunk/src/modules/modules_aec_sse2/aec_sse2.lib ../../media/webrtc/trunk/src/modules/modules_apm_util/apm_util.lib ../../media/webrtc/trunk/src/modules/modules_aecm/aecm.lib ../../media/webrtc/trunk/src/modules/modules_agc/agc.lib ../../media/webrtc/trunk/src/modules/modules_ns/ns.lib ../../media/webrtc/trunk/third_party/libyuv/libyuv_libyuv/yuv.lib ../../media/webrtc/trunk/src/common_video/common_video_webrtc_jpeg/webrtc_jpeg.lib  ../../gfx/skia/skia.lib ../../dist/lib/mozalloc.lib m:/mc-c/fx-dbg/dist/lib/nspr4.lib m:/mc-c/fx-dbg/dist/lib/plc4.lib m:/mc-c/fx-dbg/dist/lib/plds4.lib  -LIBPATH:"C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)/lib/x86"  m:/mc-c/fx-dbg/dist/lib/mozglue.lib kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib usp10.lib ole32.lib secur32.lib crypt32.lib iphlpapi.lib strmiids.lib dmoguids.lib wmcodecdspuuid.lib amstrmid.lib msdmo.lib wininet.lib msimg32.lib winmm.lib   '
> failed, return code 1120
> <libs>: Found error
> <gkmedias.lib>: Found error
> <libs>: Found error
> m:\mc-c\src\config\makefiles\target_libs.mk:103:0: command 'c:/mozilla-build/python/python.exe m:/mc-c/src/build/pymake/pymake/../make.py -C media libs' failed, return code 2
> m:\mc-c\src\config\makefiles\target_libs.mk:18:0: command 'c:/mozilla-build/python/python.exe m:/mc-c/src/build/pymake/pymake/../make.py -C layout libs' failed, return code 2
> m:\mc-c\src\config\rules.mk:611:0: command 'c:/mozilla-build/python/python.exe m:/mc-c/src/build/pymake/pymake/../make.py libs_tier_platform' failed,
> return code 2
> m:\mc-c\src\config\rules.mk:576:0: command 'c:/mozilla-build/python/python.exe m:/mc-c/src/build/pymake/pymake/../make.py  tier_platform' failed, return code 2
> m:\mc-c\src\client.mk:349:0: command 'c:/mozilla-build/python/python.exe m:/mc-c/src/build/pymake/pymake/../make.py -sj8 -C m:/mc-c/src/../fx-dbg' failed, return code 2
> m:\mc-c\src\client.mk:149:0: command 'c:/mozilla-build/python/python.exe m:/mc-c/src/build/pymake/pymake/../make.py -f m:/mc-c/src/client.mk realbuild' failed, return code 2

my .mozconfig is,

. $topsrcdir/browser/config/mozconfig

# dist dir
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../fx-dbg

mk_add_options MOZ_MAKE_FLAGS="-sj8"

ac_add_options --enable-debug
ac_add_options --enable-tests
ac_add_options --enable-logging

# for Installer
ac_add_options --disable-installer

I guess that this a regression of bug 763651.
Comment 1 Mike Hommey [:glandium] 2012-07-13 00:39:29 PDT
Did you clobber?
Comment 2 Masayuki Nakano [:masayuki] (Mozilla Japan) 2012-07-13 02:50:50 PDT
(In reply to Mike Hommey [:glandium] from comment #1)
> Did you clobber?

Sorry, I don't understand. What did you mean?
Comment 3 Mike Hommey [:glandium] 2012-07-13 03:28:42 PDT
(In reply to Masayuki Nakano (:masayuki) (Mozilla Japan) from comment #2)
> (In reply to Mike Hommey [:glandium] from comment #1)
> > Did you clobber?
> 
> Sorry, I don't understand. What did you mean?

Did you try removing your build directory and start over?
Comment 4 Masayuki Nakano [:masayuki] (Mozilla Japan) 2012-07-13 03:36:03 PDT
(In reply to Mike Hommey [:glandium] from comment #3)
> (In reply to Masayuki Nakano (:masayuki) (Mozilla Japan) from comment #2)
> > (In reply to Mike Hommey [:glandium] from comment #1)
> > > Did you clobber?
> > 
> > Sorry, I don't understand. What did you mean?
> 
> Did you try removing your build directory and start over?

Yes. I did. I tried removing the dist directory (I meant all of MOZ_OBJDIR). And after that, I tried doing hg clone again. But I failed to build with above error.
Comment 5 Ben Turner (not reading bugmail, use the needinfo flag!) 2012-07-13 05:00:41 PDT
Same here. Clobber doesn't fix.
Comment 6 Mike Hommey [:glandium] 2012-07-13 05:38:45 PDT
Could you attach the output of dumpbin -exports objdir/dist/lib/mozglue.lib ?
Comment 7 Ben Turner (not reading bugmail, use the needinfo flag!) 2012-07-13 05:55:03 PDT
Created attachment 641840 [details]
dumpbin -exports mozglue.lib
Comment 8 Mike Hommey [:glandium] 2012-07-13 06:52:15 PDT
mmmm could you attach the output of dumpbin -exports objdir/dist/lib/mozglue.dll, too ?
Comment 9 Mike Hommey [:glandium] 2012-07-13 06:54:58 PDT
Also, a build log would be useful.
Comment 10 Ben Turner (not reading bugmail, use the needinfo flag!) 2012-07-13 06:57:45 PDT
Created attachment 641856 [details]
dumpbin -exports mozglue.dll
Comment 11 Ben Turner (not reading bugmail, use the needinfo flag!) 2012-07-13 07:25:31 PDT
(In reply to Mike Hommey [:glandium] from comment #9)
> Also, a build log would be useful.

Of what, in particular?
Comment 12 Ben Turner (not reading bugmail, use the needinfo flag!) 2012-07-13 07:53:34 PDT
Ah, I think this is the problem:

c:/Home/src/mozilla/new-web-workers/obj-debug/_virtualenv/Scripts/python.exe c:/Home/src/mozilla/new-web-workers/config/pythonpath.py -I../../config c:/Home/src/mozilla/new-web-workers/config/expandlibs_exec.py --depend .deps/mozglue.dll.pp --target mozglue.dll --uselist -- link -NOLOGO -DLL -OUT:mozglue.dll -PDB:mozglue.pdb -SUBSYSTEM:WINDOWS -MACHINE:X86  dummy.obj   ./module.res -LARGEADDRESSAWARE -NXCOMPAT -DYNAMICBASE -SAFESEH  -DEBUG -DEBUGTYPE:CV -DEF:mozglue.def   ../../mfbt/mfbt.lib /c/Home/src/mozilla/new-web-workers/obj-debug/modules/zlib/src/mozz.lib  kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib
LINK : warning LNK4044: unrecognized option '/c/Home/src/mozilla/new-web-workers/obj-debug/modules/zlib/src/mozz.lib'; ignored
Comment 13 Ben Turner (not reading bugmail, use the needinfo flag!) 2012-07-13 08:35:43 PDT
Created attachment 641915 [details] [diff] [review]
Patch, v1

Thanks to bsmedberg who figured this out.
Comment 14 Ben Turner (not reading bugmail, use the needinfo flag!) 2012-07-13 08:39:00 PDT
https://hg.mozilla.org/mozilla-central/rev/9c2d509f2aab

Note You need to log in before you can comment on or make changes to this bug.