Closed Bug 940324 Opened 11 years ago Closed 11 years ago

Build fails with error LNK2005

Categories

(Firefox Build System :: General, defect)

x86_64
Windows 7
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 912371

People

(Reporter: longsonr, Assigned: m_kato)

Details

Attachments

(1 file)

msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static double __cdecl std::numeric_limits<double>::infinity(void)" (?infinity@?$numeric_limits@N@std@@SANXZ) already defined in js_static.lib(digitlst.obj)   Creating library jsapi-tests.lib and object jsapi-tests.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
jsapi-tests.exe : fatal error LNK1169: one or more multiply defined symbols found
Blocks: 912371
This changeset causes the problem for me: https://hg.mozilla.org/integration/mozilla-inbound/rev/4110a8986a2a

.mozconfig
mk_add_options AUTOCLOBBER=1

ac_add_options --enable-debug
ac_add_options --disable-optimize
Brian, is this something you can help with?
Attached file buildlog.zip
For .mozconfig:

# Options for client.mk.
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/_obj-browser-debug
mk_add_options MOZ_MAKE_FLAGS=-j9

# Options for 'configure' (same as command-line options).
#ac_add_options --enable-jemalloc

export MOZ_DEBUG_SYMBOLS=1

ac_add_options --enable-application=browser
ac_add_options --enable-debug
ac_add_options --disable-optimize
ac_add_options --enable-shared

ac_add_options --disable-static
ac_add_options --enable-tests
ac_add_options --enable-logging
ac_add_options --enable-visual-event-tracer
ac_add_options --disable-installer
ac_add_options --enable-chrome-format=flat
ac_add_options --enable-warnings-as-errors

ac_add_options --disable-crashreporter
ac_add_options --disable-directshow # 905592


export MOZ_PSEUDO_DERECURSE=no-pymake
Ah, it's 'infinity' not 'insanity' :)  sorry Brian...
Severity: normal → blocker
This sounds like bug 899948 to me, in essence.
Or rather, some sort of generalization of it.
investgating...
Assignee: nobody → m_kato
This was fixed by adding -Od if not optimize build.
No longer blocks: 912371
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: