Closed Bug 489239 Opened 16 years ago Closed 16 years ago

comm-central windows builds broken by unit test for bug 58904

Categories

(Core :: XPCOM, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

I haven't been able to figure this out yet, since bug 58904 landed Thunderbird's trunk unit test tinderbox has been failing to build and a clobber doesn't help, the error is: link -nologo -out:TestSynchronization.exe -pdb:TestSynchronization.pdb TestSynchronization.obj -NXCOMPAT -SAFESEH -DYNAMICBASE -MANIFEST:NO -LIBPATH:"e:/buildbot/win32-comm-central-check/build/objdir-tb/mozilla/memory/jemalloc/crtsrc/build/intel" -NODEFAULTLIB:msvcrt -NODEFAULTLIB:msvcrtd -DEFAULTLIB:mozcrt19 e:/buildbot/win32-comm-central-check/build/objdir-tb/mozilla/dist/lib/xpcom.lib e:/buildbot/win32-comm-central-check/build/objdir-tb/mozilla/dist/lib/xpcom_core.lib e:/buildbot/win32-comm-central-check/build/objdir-tb/mozilla/dist/lib/xpcomglue_s.lib e:/buildbot/win32-comm-central-check/build/objdir-tb/mozilla/dist/lib/xpcom.lib e:/buildbot/win32-comm-central-check/build/objdir-tb/mozilla/dist/lib/nspr4.lib e:/buildbot/win32-comm-central-check/build/objdir-tb/mozilla/dist/lib/plc4.lib e:/buildbot/win32-comm-central-check/build/objdir-tb/mozilla/dist/lib/plds4.lib kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib TestSynchronization.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mozilla::Mutex::~Mutex(void)" (__imp_??1Mutex@mozilla@@QAE@XZ) referenced in function __unwindfunclet$?Sanity@@YAIXZ$0 TestSynchronization.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mozilla::Monitor::Monitor(char const *)" (__imp_??0Monitor@mozilla@@QAE@PBD@Z) referenced in function "unsigned int __cdecl Sanity(void)" (?Sanity@@YAIXZ) TestSynchronization.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mozilla::Mutex::Mutex(char const *)" (__imp_??0Mutex@mozilla@@QAE@PBD@Z) referenced in function "unsigned int __cdecl Sanity(void)" (?Sanity@@YAIXZ) TestSynchronization.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mozilla::MutexAutoLock::~MutexAutoLock(void)" (__imp_??1MutexAutoLock@mozilla@@QAE@XZ) referenced in function __unwindfunclet$?AutoLock@@YAIXZ$0 TestSynchronization.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mozilla::Monitor::~Monitor(void)" (__imp_??1Monitor@mozilla@@QAE@XZ) referenced in function __unwindfunclet$?AutoMonitor@@YAIXZ$0 TestSynchronization.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mozilla::CondVar::CondVar(class mozilla::Mutex &,char const *)" (__imp_??0CondVar@mozilla@@QAE@AAVMutex@1@PBD@Z) referenced in function "unsigned int __cdecl CondVarSanity(void)" (?CondVarSanity@@YAIXZ) TestSynchronization.exe : fatal error LNK1120: 6 unresolved externals http://tinderbox.mozilla.org/showlog.cgi?log=Thunderbird/1240258379.1240260595.15518.gz A couple of things to note: - Thunderbird doesn't build libxul by default, therefore this tinderbox attempts to build TestSynchronization.exe - The tinderbox doesn't have -j specified. I've just done a build (from scratch) on my windows vista VM with the same settings as the tinderbox and have got the same failure, after getting that failure, doing a "make" in mozilla/xpcom/tests was successful, hence fixing the problem. My VM build does use -j3, but the fact that our tinderbox does kinda rules parallel builds out. I also have no idea why this only seems to manifest itself on Windows and not Linux or Mac.
You probably want to add some set of stuff to dlldeps.cpp
Attached patch The fixSplinter Review
Thanks to Benjamin for the hint. I could probably check this in as a bustage fix, but I'd like someone to give it a quick look.
Assignee: nobody → bugzilla
Status: NEW → ASSIGNED
Attachment #373810 - Flags: review?
Attachment #373810 - Flags: review? → review?(ted.mielczarek)
BTW, I had literally just started writing this message when I saw your e-mail (it took me most of the evening to get the thunderbird build set up) :) I wasn't able to reproduce this bug. Were you doing an optimized build? I tried debug. (And yes, I overrode the default 1.9.1 branch with mozilla-central.)
(In reply to comment #3) > BTW, I had literally just started writing this message when I saw your e-mail > (it took me most of the evening to get the thunderbird build set up) :) > > I wasn't able to reproduce this bug. Were you doing an optimized build? I > tried debug. (And yes, I overrode the default 1.9.1 branch with > mozilla-central.) The Thunderbird unit test builds are optimised with no debug. I'm not sure I actually tried reproducing on a debug build. You could probably reproduce this with firefox if you did an optimised, non-libxul build. And my previous comment about doing a make to fix it was wrong - I'd done the make in the wrong object tree.
Attachment #373810 - Flags: review?(ted.mielczarek) → review+
Summary: comm-central windows builds broken(?) by unit test for bug 58904 → comm-central windows builds broken by unit test for bug 58904
Target Milestone: --- → mozilla1.9.2a1
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: