Closed
Bug 773551
Opened 13 years ago
Closed 13 years ago
Build failure at creating library gkmedias.lib and object gkmedias.exp
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: masayuki, Assigned: bent.mozilla)
References
Details
Attachments
(3 files)
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•13 years ago
|
||
Did you clobber?
Reporter | ||
Comment 2•13 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #1)
> Did you clobber?
Sorry, I don't understand. What did you mean?
Comment 3•13 years ago
|
||
(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?
Reporter | ||
Comment 4•13 years ago
|
||
(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.
Assignee | ||
Comment 5•13 years ago
|
||
Same here. Clobber doesn't fix.
Comment 6•13 years ago
|
||
Could you attach the output of dumpbin -exports objdir/dist/lib/mozglue.lib ?
Assignee | ||
Comment 7•13 years ago
|
||
Comment 8•13 years ago
|
||
mmmm could you attach the output of dumpbin -exports objdir/dist/lib/mozglue.dll, too ?
Comment 9•13 years ago
|
||
Also, a build log would be useful.
Assignee | ||
Comment 10•13 years ago
|
||
Assignee | ||
Comment 11•13 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #9)
> Also, a build log would be useful.
Of what, in particular?
Assignee | ||
Comment 12•13 years ago
|
||
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
Assignee | ||
Comment 13•13 years ago
|
||
Thanks to bsmedberg who figured this out.
Updated•13 years ago
|
Attachment #641915 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 14•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•