The default bug view has changed. See this FAQ.

Build bustage (MSVC10, pymake): Target 'pixman-mmx.obj' has multiple rules with commands | Target 'transform-sse2.obj' has multiple rules with commands

RESOLVED FIXED in mozilla15

Status

()

Core
Graphics
--
blocker
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: mayhemer, Assigned: glandium)

Tracking

Trunk
mozilla15
All
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

when building gfx, clobber, up to this date repo.

$mozilla-central/_obj: pymake -C gfx

........

pixman-utils.c
c:\Mozilla\src\mozilla-central\config\rules.mk:1116:0$ c:/Mozilla/mozilla-build/python/python2.7.exe -O c:/Mozilla/src/mozilla-central/build/cl.py cl -Fopixma
n-utils.obj -c  -DPIXMAN_NO_TLS -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL
_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -Ic:/Mozilla/src/mozilla-central/gfx/cairo/libpixman/src -Ic:/Mozilla/src/mozilla-central/gfx/cairo/libp
ixman/src/../../cairo/src -Ic:/Mozilla/src/mozilla-central/gfx/cairo/libpixman/src -I. -I../../../../dist/include -I../../../../dist/include/nsprpub  -Ic:/Moz
illa/src/mozilla-central/_obj-browser-debug/dist/include/nspr -Ic:/Mozilla/src/mozilla-central/_obj-browser-debug/dist/include/nss        -TC -nologo -W3 -Gy
-Fdgenerated.pdb -we4553  -DDEBUG -D_DEBUG -DTRACING -Zi -Oy- -DPACKAGE="mozpixman" -D_USE_MATH_DEFINES -MDd           -FI ../../../../dist/include/mozilla-co
nfig.h -DMOZILLA_CLIENT c:/Mozilla/src/mozilla-central/gfx/cairo/libpixman/src/pixman-utils.c
pixman-utils.c
c:/Mozilla/src/mozilla-central/gfx/cairo/libpixman/src/pixman-utils.c(272) : warning C4244: 'initializing' : conversion from 'const uint64_t' to 'const uint8_
t', possible loss of data
c:/Mozilla/src/mozilla-central/gfx/cairo/libpixman/src/pixman-utils.c(273) : warning C4244: 'initializing' : conversion from 'const uint64_t' to 'const uint8_
t', possible loss of data
c:/Mozilla/src/mozilla-central/gfx/cairo/libpixman/src/pixman-utils.c(274) : warning C4244: 'initializing' : conversion from 'const uint64_t' to 'const uint8_
t', possible loss of data
> Target 'pixman-mmx.obj' has multiple rules with commands.
c:\Mozilla\src\mozilla-central\config\makefiles\target_libs.mk:139:0: command 'c:/Mozilla/mozilla-build/python/python.exe c:/mozilla/src/mozilla-central/build
/pymake/pymake/../make.py -C libpixman/src libs' failed, return code 2
c:\Mozilla\src\mozilla-central\config\makefiles\target_libs.mk:139:0: command 'c:/Mozilla/mozilla-build/python/python.exe c:/mozilla/src/mozilla-central/build
/pymake/pymake/../make.py -C cairo libs' failed, return code 2
c:\Mozilla\src\mozilla-central\config\rules.mk:682:0: command 'c:/Mozilla/mozilla-build/python/python.exe c:/mozilla/src/mozilla-central/build/pymake/pymake/.
./make.py libs' failed, return code 2


I don't see any recent changes.  Going to bisect...
A clobber pymake win32 build using inbound tip (c14773057d57) and MozillaBuild 1.6 is failing for me with:

{
Target 'transform-sse2.obj' has multiple rules with commands.
Target 'transform-sse1.obj' has multiple rules with commands.
<mozqcms.lib.desc>: Found error
<mozqcms.lib.desc>: Found error
<libs>: Found error
d:\srcdirs\inbound\config\makefiles\target_libs.mk:54:0: command 'c:/mozilla-build/python/python.exe d:/srcdirs/inbound/build/pymake/pymake/../make.py -C gfx/qcms libs' failed, return code 2
d:\srcdirs\inbound\config\rules.mk:709:0: command 'c:/mozilla-build/python/python.exe d:/srcdirs/inbound/build/pymake/pymake/../make.py libs_tier_platform' failed, return code 2
d:\srcdirs\inbound\config\rules.mk:674:0: command 'c:/mozilla-build/python/python.exe d:/srcdirs/inbound/build/pymake/pymake/../make.py  tier_platform' failed, return code 2
d:\srcdirs\inbound\client.mk:381:0: command 'c:/mozilla-build/python/python.exe d:/srcdirs/inbound/build/pymake/pymake/../make.py -j12 -C d:/obj-inbound' failed, return code 2
d:\srcdirs\inbound\client.mk:181:0: command 'c:/mozilla-build/python/python.exe d:/srcdirs/inbound/build/pymake/pymake/../make.py -f d:/srcdirs/inbound/client.mk realbuild' failed, return code 2
}

Mozconfig:
{
mk_add_options MOZ_OBJDIR=d:/obj-inbound
mk_add_options MOZ_MAKE_FLAGS=-j12
ac_add_options --disable-optimize
ac_add_options --disable-debug-symbols
ac_add_options --disable-angle
}
Sorry meant to add:
MSVC2010
Windows SDK version: 7.0A
Severity: normal → blocker
Hardware: x86_64 → All
Summary: Build bustage (MSVC10, pymake): Target 'pixman-mmx.obj' has multiple rules with commands → Build bustage (MSVC10, pymake): Target 'pixman-mmx.obj' has multiple rules with commands | Target 'transform-sse2.obj' has multiple rules with commands
Ted thinks maybe bug 748001?
(Assignee)

Comment 4

5 years ago
Ah, I guess GNU make just uses the new one and only warns about the override
(Assignee)

Updated

5 years ago
Assignee: nobody → mh+mozilla
Blocks: 748001
(Assignee)

Comment 5

5 years ago
So, I'd say it's a pymake bug, but it actually is good, because it makes these "duplicated" more easily detectable, and allows for some cleanup.
(Assignee)

Comment 6

5 years ago
Confirmed:
/e/builds/moz2_slave/m-cen-w32/build/config/rules.mk:1114: warning: ignoring old commands for target `transform-sse1.obj'
/e/builds/moz2_slave/m-cen-w32/build/config/rules.mk:1114: warning: ignoring old commands for target `transform-sse2.obj'

Found 2 more:
/e/builds/moz2_slave/m-cen-w32/build/config/rules.mk:1114: warning: ignoring old commands for target `pixman-mmx.obj'
/e/builds/moz2_slave/m-cen-w32/build/config/rules.mk:1114: warning: ignoring old commands for target `pixman-sse2.obj'
(Assignee)

Comment 7

5 years ago
Created attachment 624057 [details] [diff] [review]
Avoid duplicate rules after bug 748001
Attachment #624057 - Flags: review?(ted.mielczarek)
Comment on attachment 624057 [details] [diff] [review]
Avoid duplicate rules after bug 748001

Confirming this fixes the build for me.

Thanks.
Attachment #624057 - Flags: review?(ted.mielczarek) → review+

Comment 9

5 years ago
I'm still running into this problem with the above patch applied.
Normal build:
"pymake -f client.mk"

http://pastebin.mozilla.org/1640417

Mozconfig:
{
mk_add_options MOZ_MAKE_FLAGS=-j6
ac_add_options --disable-optimize
}

MSVC9
Windows SDK 7.0

Comment 10

5 years ago
Ignore the above pastebin, this is the correct "error-log":

http://pastebin.mozilla.org/1640450
(Assignee)

Comment 11

5 years ago
https://hg.mozilla.org/mozilla-central/rev/00c7a320165b
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in before you can comment on or make changes to this bug.