HELP: M$ Visual C++ Toolkit (VC++T) Errors

Discussion about official Mozilla Firefox builds
Post Reply
User avatar
moox
Posts: 923
Joined: February 29th, 2004, 1:07 am
Location: Wish I were in Alaska...

HELP: M$ Visual C++ Toolkit (VC++T) Errors

Post by moox »

This seemed SO much easier in a MingW/GCC environment. Anywho, here is the error dump

Code: Select all

nspr.res : warning LNK4221: no public symbols found; archive member will be inaccessible
fatal error C1048: unknown option '6' in '-G6'
LIB : fatal error LNK1257: code generation failed
make[5]: *** [nspr4_s.lib] Error 233
make[5]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla/nsprpub/pr/src'
make[4]: *** [export] Error 2
make[4]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla/nsprpub/pr'
make[3]: *** [export] Error 2
make[3]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla/nsprpub'
make[2]: *** [nspr] Error 2
make[2]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla'
make: *** [build] Error 2

I get the same thing if I use a -G7 flag. Any tips on where I am screwing up? I am so close to getting this to compile I can smell it... :crazyeyes:

Here is my environment as well (breaks inserted for ease of reading and prevention of window scroll)

Code: Select all

Set PATH=
D:\Dev\vc71\bin;
C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;
C:\Program Files\Microsoft SDK\Bin;
C:\Program Files\Microsoft.NET\SDK\v1.1\Bin;
C:\Windows\System32;
C:\Windows;
C:\Windows\Syetem32\Wbem;
D:\Dev\moztools\bin;
D:\Dev\cygwin\bin;
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;
C:\Program Files\Microsoft SDK\Bin\Win64;
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;
C:\masm32\bin;
%PATH%

Set INCLUDE=
C:\Program Files\Microsoft Visual C++ Toolkit 2003\include;
C:\Program Files\Microsoft SDK\include;
C:\Program Files\Microsoft.NET\SDK\v1.1\include;
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;
C:\Program Files\Microsoft SDK\include\Win64\crt;
C:\masm32\include;
%INCLUDE%

Set LIB=
C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;
C:\Program Files\Microsoft SDK\Lib;
C:\Program Files\Microsoft.NET\SDK\v1.1\Lib;
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib;
C:\masm32\lib;

C:\Program Files\Microsoft SDK\Lib\IA64;
%LIB%

Again, any tips would help - I think I have been staring at all of this WAY too long and I am missing something obvious.
Last edited by moox on April 23rd, 2004, 10:51 am, edited 9 times in total.
lordmedikit
Posts: 447
Joined: August 1st, 2003, 9:18 am

Post by lordmedikit »

You should search, but nevermind, here is a link from someone that managed it:
http://forums.mozillazine.org/viewtopic.php?t=71100
And here is the thread with info about he managed it:
http://forums.mozillazine.org/viewtopic.php?t=70783
User avatar
moox
Posts: 923
Joined: February 29th, 2004, 1:07 am
Location: Wish I were in Alaska...

Post by moox »

lordmedikit
I did search and I am basing much of what I doing off of Tiermann's write up. Nonetheless, it is not clear to me exactly what he did to overcome the error. That is why I am asking for help.
User avatar
alex-the-cat
Posts: 291
Joined: March 12th, 2004, 11:34 am
Location: Chicago, IL, USA

Post by alex-the-cat »

try /Gy ?
Please Fold! Rage3D is a nice place to start
User avatar
moox
Posts: 923
Joined: February 29th, 2004, 1:07 am
Location: Wish I were in Alaska...

Post by moox »

alex-the-cat
Thanks for the suggestion but that is already in there b/c /O2 infers /Gy, i.e. /O2 is equivalent to /Og /Oi /Ot /Oy /Ob2 /Gs /GF /Gy
User avatar
Goldzilla
Posts: 2579
Joined: November 22nd, 2002, 6:52 pm

Post by Goldzilla »

I thought that I already posted but we'll try again.

Do you have a VC 6 installation that the CL command might be going to? Is the Processor Pack required for G6 and G7 and might there be a path problem there?
Dell Inspiron 8500 P4 M 2.0 Ghz 1 GB 40 GB XP Pro NVidia 64 MB WUXGA CME, CH, TBE , EZS Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040325 Firefox/0.8.0+ (mmoy-O2-GL7-SSE2-crc32-Zp16-quek013)
User avatar
moox
Posts: 923
Joined: February 29th, 2004, 1:07 am
Location: Wish I were in Alaska...

Post by moox »

Goldzilla
No VC 6 installation anywhere on this system (that I am aware of). That being the case there is no processor pack either.

Just ran a "cl /?' command and here is the relevant dump:

Code: Select all

d:\Dev\mozilla>cl /?
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3052 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

That appears to be pointing to the Microsoft Visual C++ Toolkit 2003. That is correct, right?
User avatar
moox
Posts: 923
Joined: February 29th, 2004, 1:07 am
Location: Wish I were in Alaska...

Post by moox »

Here is what I just found from MSDN regarding the error code LNK1257:
When compiling with /GL, the linker failed to perform code generation. Investigate any compiler diagnostics that have been emitted and try to remedy them.


I will be trying first without the /GL switch...

If that works, then I will go again using /GL after I modify mozilla/js/src/xpconnect/src/makefile.in by deleting the last block in the file (THANK YOU STIPE!).
Last edited by moox on April 23rd, 2004, 11:18 am, edited 1 time in total.
User avatar
TierMann
Posts: 184
Joined: March 29th, 2004, 10:18 am
Location: Sitting here, posting to fourms.
Contact:

Post by TierMann »

Sorry. I just woke up. Long night.

Yes. GL = No good with toolkit. Atleast for compiling mozilla apps.

I forgot to add that info. Thank you moox.
Post Reply