Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Issue 172853002: Fix a compilation issue when building with VS2013 and optimization set to "max". (Closed)

Created:
6 years, 10 months ago by Sébastien Marchand
Modified:
6 years, 10 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix a compilation issue when building with VS2013 and optimization set to "max". For some reasons (I'm still trying to find them) those 2 DCHECKs make the link step to fail when building nacl64.exe (and maybe some other target) with VS2013 and optimization set to 'max' Here's the error that I get: [1537/6627] LINK_EMBED nacl64.exe FAILED: D:\src\depot_tools\python276_bin\python.exe gyp-win-tool link-with-manifests environment.x64 True nacl64.exe "D:\src\depot_tools\python276_bin\python.exe gyp-win-tool link-wrapper environment.x64 False link.exe /nologo /OUT:nacl64.exe @nacl64 .exe.rsp" 1 mt.exe rc.exe "obj\chrome\chrome_nacl_win64.nacl64.exe.intermediate.manifest" obj\chrome\chrome_nacl_win64.nacl64.exe.generated.manifest ..\..\build\win\compatibility.manifest LibDef: Total time = 0.015s OptRef: Total time = 0.000s Generating code d:\src\chrome\src\sandbox\win\src\sharedmem_ipc_client.cc(34) : fatal error C1001: An internal error has occurred in the compiler. (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 227) To work around this problem, try simplifying or changing the program near the locations listed above. Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.exe' Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information Final: Total time = 27.940s Traceback (most recent call last): File "gyp-win-tool", line 293, in <module> sys.exit(main(sys.argv[1:])) File "gyp-win-tool", line 28, in main exit_code = executor.Dispatch(args) File "gyp-win-tool", line 70, in Dispatch return getattr(self, method)(*args[1:]) File "gyp-win-tool", line 158, in ExecLinkWithManifests subprocess.check_call(ldcmd + add_to_ld) File "D:\src\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) This CL fix this, for the first dcheck it might be because we're comparing a LONG to a ChannelState (and the linker he's unhappy when looking for the conversion routine), but for the second one I have really no idea what's happening, all I know is that using DCHECK_LE instead of DCHECK shouldn't change anything here, and that it fix the build. R=cpu@chromium.org CC=scottmg@chromium.org BUG=344980 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252213

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Finally after a lot of "Upload got a 500 response: 500" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M sandbox/win/src/sharedmem_ipc_client.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Sébastien Marchand
PTAL.
6 years, 10 months ago (2014-02-19 20:00:52 UTC) #1
cpu_(ooo_6.6-7.5)
lgtm
6 years, 10 months ago (2014-02-19 20:15:24 UTC) #2
Sébastien Marchand
The CQ bit was checked by sebmarchand@chromium.org
6 years, 10 months ago (2014-02-19 20:15:54 UTC) #3
scottmg
If you can repro this 100%, it might be good to capture for to file ...
6 years, 10 months ago (2014-02-19 20:18:51 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sebmarchand@chromium.org/172853002/1
6 years, 10 months ago (2014-02-19 20:27:00 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 21:12:03 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 10 months ago (2014-02-19 21:12:03 UTC) #7
Sébastien Marchand
The CQ bit was checked by sebmarchand@chromium.org
6 years, 10 months ago (2014-02-19 21:13:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sebmarchand@chromium.org/172853002/1
6 years, 10 months ago (2014-02-19 21:13:59 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 21:14:22 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 10 months ago (2014-02-19 21:14:22 UTC) #11
Sébastien Marchand
Hum, it didn't even finished to run on mac_chromium_rel...
6 years, 10 months ago (2014-02-19 21:16:37 UTC) #12
Sébastien Marchand
The CQ bit was checked by sebmarchand@chromium.org
6 years, 10 months ago (2014-02-19 21:17:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sebmarchand@chromium.org/172853002/1
6 years, 10 months ago (2014-02-19 21:19:22 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 21:24:18 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 10 months ago (2014-02-19 21:24:19 UTC) #16
Sébastien Marchand
The CQ bit was checked by sebmarchand@chromium.org
6 years, 10 months ago (2014-02-19 22:39:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sebmarchand@chromium.org/172853002/400001
6 years, 10 months ago (2014-02-19 22:50:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sebmarchand@chromium.org/172853002/400001
6 years, 10 months ago (2014-02-20 00:56:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sebmarchand@chromium.org/172853002/400001
6 years, 10 months ago (2014-02-20 04:46:25 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sebmarchand@chromium.org/172853002/400001
6 years, 10 months ago (2014-02-20 08:49:06 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sebmarchand@chromium.org/172853002/400001
6 years, 10 months ago (2014-02-20 12:21:01 UTC) #22
commit-bot: I haz the power
6 years, 10 months ago (2014-02-20 13:19:13 UTC) #23
Message was sent while issue was closed.
Change committed as 252213

Powered by Google App Engine
This is Rietveld 408576698