Search

Link /LTCG:PGI internal error (target xp) by s793016s

Closed
as Duplicate Help for as Duplicate

1
0
Sign in
to vote
Type: Bug
ID: 776382
Opened: 1/11/2013 4:47:25 PM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
Sorry, my English is very very poor.

I tried to build Mozilla Firefox 17.0.1 with VS2012 target xp.

In the PGI phase get this error:
=======================
d:/mozilla/mozilla/config/pythonpath.py -I../../config d:/mozilla/mozilla/config/expandlibs_exec.py --depend .deps/xul.dll.pp --target xul.dll --uselist -- link -NOLOGO -DLL -OUT:xul.dll -PDB:xul.pdb -SUBSYSTEM:WINDOWS -MACHINE:X86 dlldeps Creating library xul.lib and object xul.exp
Generating code
Finished generating code
PGOCVT : fatal error PG0001: An unexpected internal error was detected in source file 'f:\dd\vctools\compiler\utc\src\tools\pogo\cvtpgd\cvtpgd.cpp', line 681.
PGOCVT : fatal error PG0001: An unexpected internal error was detected in source file 'f:\dd\vctools\compiler\utc\src\tools\pogo\cvtpgd\cvtpgd.cpp', line 712.
=====================================
after this message the compiler will continue to the end, and the binary will crash because xul.dll crash.

ac_add_options --enable-optimize="-O2 -GL -arch:IA32"
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

Sorry, my English is very very poor.

Primary data is come from here:
https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions

OK, here we go.

1. Install VS2012 90-day trial
http://www.microsoft.com/visualstudio/11/en-us/downloads#testpro

2. Install DirectX SDK
http://www.microsoft.com/en-us/download/details.aspx?id=6812

3. Install Mozilla Build System 1.6.1
http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.6.1.exe

4. Change directory to MozillaBuildSystem Target Folder, and edit [start-msvc11.bat]
====
cd "%USERPROFILE%"
+set "INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;%INCLUDE%"
+set "LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib;%LIB%"
+set "PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;%PATH%"
+set CL=-D_USING_V110_SDK71_
+SET MOZ_MAXWINSDK=70100
"%MOZILLABUILD%\msys\bin\bash" --login -i
====

5. Create 2 folders:
c:\fx
c:\fx\obj

6. Download firefox 17.0.1 source code
ftp://ftp.mozilla.org/pub/firefox/releases/17.0.1/source/firefox-17.0.1.source.tar.bz2

7. You should reboot now.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

8. Install VS2012 Update 1
http://go.microsoft.com/?linkid=9821199

9. use cmd, change directory to MozillaBuildSystem Target Folder, and run [start-msvc11.bat]

10.Now you will get into msys-linux-like-environment.

11.Decompress the source code:
cd /c/fx
tar -xjvf [path_to_source]/firefox-17.0.1.source.tar.bz2

12.make an linux-format txtfile "c:\fx\mozilla-release\.mozconfig":
=== .mozconfig ====
mk_add_options MOZ_MAKE_FLAGS="-j3"
mk_add_options MOZ_OBJDIR=c:/fx/obj
ac_add_options --disable-updater
ac_add_options --disable-update-channel
ac_add_options --disable-update-packaging
ac_add_options --disable-crashreporter
ac_add_options --disable-debug
ac_add_options --disable-installer
ac_add_options --disable-tests
ac_add_options --enable-jemalloc
ac_add_options --enable-optimize="-O2 -GL -arch:IA32"
ac_add_options --enable-application=browser
export LDFLAGS="-SUBSYSTEM:CONSOLE,5.01"
mk_add_options LDFLAGS="-SUBSYSTEM:CONSOLE,5.01"
export MOZ_OPTIMIZE_LDFLAGS="-SUBSYSTEM:CONSOLE,5.01"
mk_add_options MOZ_OPTIMIZE_LDFLAGS="-SUBSYSTEM:CONSOLE,5.01"
====================

13.start compiler with PGI phase:
cd /c/fx/mozilla-release
python -OO /c/fx/mozilla-release/build/pymake/make.py -f client.mk build MOZ_PROFILE_GENERATE=1 2>&1 | tee -i /c/fx/logfile

14.Sit and wait about 1 hours to finished compiler process.

The binary file will be here - c:\fx\obj\dist\bin .
The log file will be here - c:\fx\logfile

Product Language

English

Operating System

Windows 7 SP1

Operating System Language

Chinese (Traditional)

Actual results

PGOCVT : fatal error PG0001: An unexpected internal error was detected in source file 'f:\dd\vctools\compiler\utc\src\tools\pogo\cvtpgd\cvtpgd.cpp', line 681.
PGOCVT : fatal error PG0001: An unexpected internal error was detected in source file 'f:\dd\vctools\compiler\utc\src\tools\pogo\cvtpgd\cvtpgd.cpp', line 712.

Expected results

no error
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 1/25/2013 at 5:50 PM
Thank you for reporting this issue. The issue involved the high number of indirect call targets (function pointers, virtual functions, etc) in the binary. This issue has been fixed and will be available in a future release.
Posted by Microsoft on 1/13/2013 at 11:04 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 1/11/2013 at 4:51 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.