Friday, September 26, 2008

Compiling with VS 2005

I was talking on irc in the #developers channel and it was suggested I try building my profile build using Visual Studio 2005 instead of with Visual Studio 2008. I'm also using the Vista SDK which might be causing a problem. Might.

Real Error
The folks on irc asked to look at the errors I received so I used pastebin to show the error and they felt that the actual error was not listed and wanted to see the lines before the error I posted. Well I had used redirection for stdout and stderr to 2 files and it turns out that some of the errors were going to stdout. As I looked through my output.txt file I noticed a huge section that was about linker errors. This is when they suggested I try using Visual Studio 2005 after I mentioned I had it.

The Error

e:\mozilla\trunk\modules\lcms\src\cmscgats.c(875) : fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c[0x511953E5:0x00000008]', line 182)
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

LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage

Version 9.00.21022.08

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 511953E5 (51030000) "e:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\c2.dll"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 00000008

CONTEXT:
Eax = 00000000 Esp = 0012ED18
Ebx = 02D5D215 Ebp = 0012ED2C
Ecx = 02D96601 Esi = 02D5D280
Edx = 02DAAE12 Edi = 00000305
Eip = 511953E5 EFlags = 00010246
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 0000003B SegGs = 00000000
Dr0 = 00000000 Dr3 = 00000000
Dr1 = 00000000 Dr6 = 00000000
Dr2 = 00000000 Dr7 = 00000000


Mozilla Community
I like how helpful the Mozilla community is and as a student that is not an avid irc user I forget about the culture and community. I had logged out and switched OS's so I could compile with Visual Studio 2005 and when I jumped back on irc it was about 30 minutes later. I had messaged one of the guys to let them know I was now compiling and he/she didn't seem to remember me. He/she was probably busy and I need to learn how to better discern what is relevant and what is not.

And I cannot worry about making such mistakes. Better to fall and learn then to never jump.

No comments: