Re: 64bit NSS build on windows 7 x64
I compiled nss+nspr+modutil+certutil 32 bits vs2009 last week. Didnt compile 64 bits cause Firefox 64 bits is no longer supported (IIRC). On Sat, Aug 24, 2013 at 2:21 PM, farhad@gmail.com wrote: I searched the net for 64bit build but didn't find anything, I don't have enough time to build it myself so Can you please provide me your output for 64bit? Thanks a lot. Farhad. -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto
Re: 64bit NSS build on windows 7 x64
I searched the net for 64bit build but didn't find anything, I don't have enough time to build it myself so Can you please provide me your output for 64bit? Thanks a lot. Farhad. -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto
Re: 64bit NSS build on windows 7 x64
So apparently we have MSDN and I installed a copy of VS2010 Premium this morning and first run through it built NSS in 64 bit no trouble. It seems it targeted Win 5.2 (Vista?) I'm thinking my issue is that the express versions of VS don't have the 64-bit compilers. The Windows/Platform SDK can install them but mozilla-build doesn't appear to be expecting/accounting for that. I may have hacked the paths to point to the 64bit compiler but I'm guessing there was a lot of other stuff that wasn't where it was supposed to be as well. BTW, I *was* using start-msvc9-x64, not 8...just copied and pasted the wrong file name for the email. And the reason I wanted 64bit NSS is to use it with 64bit Java. I'm the get NSS working with ECC guy so I have to fight with building it on the different platforms we need. I'm going to crawl back into my Java cocoon now... Thanks, Dave -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto
Re: 64bit NSS build on windows 7 x64
On 17 Sep 2010, at 12:12, David Stutzman wrote: So apparently we have MSDN and I installed a copy of VS2010 Premium this morning and first run through it built NSS in 64 bit no trouble. It seems it targeted Win 5.2 (Vista?) I'm thinking my issue is that the express versions of VS don't have the 64-bit compilers. The Windows/Platform SDK can install them but mozilla-build doesn't appear to be expecting/accounting for that. I may have hacked the paths to point to the 64bit compiler but I'm guessing there was a lot of other stuff that wasn't where it was supposed to be as well. BTW, I *was* using start-msvc9-x64, not 8...just copied and pasted the wrong file name for the email. And the reason I wanted 64bit NSS is to use it with 64bit Java. I'm the get NSS working with ECC guy so I have to fight with building it on the different platforms we need. I'm going to crawl back into my Java cocoon now... Thanks, Dave Win 5.2 is Windows Server 2003 and XP x86_64 (Yes, Windows XP x86_64 has a different version number from XP i386...). Vista is 6.0, Seven is 6.1 (Makes sense, doesn't it? ;-)) - Owen -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto
Re: 64bit NSS build on windows 7 x64
On 9/17/2010 8:29 AM, Owen Shepherd wrote: Win 5.2 is Windows Server 2003 and XP x86_64 (Yes, Windows XP x86_64 has a different version number from XP i386...). Vista is 6.0, Seven is 6.1 (Makes sense, doesn't it? ;-)) So I had a couple people test my output, one 64-bit win7 and one 32bit winXP and both worked after installing the 2010 Visual C runtime. Again, I'm guessing my issue was using the Express Visual Studio which doesn't come out of the box with 64bit compiler and not 2010 vs 2008. Thanks for the pointers guys. Dave -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto
Re: 64bit NSS build on windows 7 x64
On 16. 9. 2010 15:28, David Stutzman wrote: configure: error: installation or configuration problem: C compiler cannot creat e executables. Just guessing here... could this be a problem with UAC? (User Account Control) M. Kurpel -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto
Re: 64bit NSS build on windows 7 x64
On 9/16/10 6:28 AM, David Stutzman wrote: I start up the shell with the start-msvc8-x64.bat script, which doesn't seem to do/be anything different from start-msvc8.bat. The 64-bit compiler seems to be installed from the SDK. If possible I'd like to target from XP 64 on up as far as compatibility, but I'd settle for having it run on my workstation only which is Win7 64. Why do you want to build a 64-bit version? The 32-bit version will run even on 64-bit versions of windows, and is much more common in general. I recommend starting out building a 32-bit version and condider the 64-bit version an advanced topic that is much more likely to break. I've hacked the path so when I type cl I get the right one: This shouldn't be necessary if you're using start-msvc8-x64... checking whether the C compiler (cl ) works... no configure: error: installation or configuration problem: C compiler cannot creat e executables. make: *** [../../nsprpub/WINNT6.1_64_OPT.OBJ/config.status] Error 1 This might be an intermittent problem we've been seeing which is unrelated to the compiler (failure to remove a file which is in use), but you really need to check config.log to see what the actual failure was. --BDS -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto
Re: 64bit NSS build on windows 7 x64
On 09/16/2010 11:38 AM, Benjamin Smedberg wrote: On 9/16/10 6:28 AM, David Stutzman wrote: I start up the shell with the start-msvc8-x64.bat script, which doesn't seem to do/be anything different from start-msvc8.bat. The 64-bit compiler seems to be installed from the SDK. If possible I'd like to target from XP 64 on up as far as compatibility, but I'd settle for having it run on my workstation only which is Win7 64. Why do you want to build a 64-bit version? Perhaps he wants to use the library in something other than Mozilla? Perhaps he wants to allocate more than a few hundred MB in one chunk? Perhaps he wants to get valid stack traces in his crashdumps? (no FPO) The 32-bit version will run even on 64-bit versions of windows, and is much more common in general. The typical Windows PC sold though retail channels has been 64 bits for many years now. On the other hand, XP 64 is definitely weird. I recommend starting out building a 32-bit version and condider the 64-bit version an advanced topic that is much more likely to break. Good advice, but that situation really should change at some point. I've installed the latest mozilla-build, VS2008 Express SP1, the latest windows SDK (7.1) and I'm just not getting too far in this process. Linux is so much easier! That's for sure. After programming Windows for so long, it's really weird to be able to just #include headers and -l packaged libraries and have it actually work. I've hacked the path so when I type cl I get the right one: You mentioned that you installed MSVC and the SDK. There's a good deal of overlap between them. For example, they both supply standard headers, compilers, and system link libraries. There's some script to get the compiler to use the paths from the SDK in the IDE. Last I checked (MSVS2k5), this only affected the IDE and didn't work for command-line builds. So there's the plain IDE, the IDE after SDK integration, vcvars.bat for the compiler, and the scripts to launch the SDK build environments. In my experience, all of them end up yielding subtly different build environments. I've always felt the need to just define my own build environment variables by hand. That way I can set it the same in both the IDE and on the command line. That's coming from someone who expects to support this process as a full-time job though, so my advice is a minority view for most open source projects (and not MS's precise recommendation either). This shouldn't be necessary if you're using start-msvc8-x64... One thing that bites me sometimes is there are spaces or parentheses in the path or other environment variables. It turns out that parentheses are meta-characters for the NT command prompt interpreter (the scripting language so bad it doesn't even have a name). Of course we all know the fun we can have with spaces in the path. Of course, some joker decided it would be a good idea to name a critical directory Program Files (x86), breaking innumerable scripts in the process. checking whether the C compiler (cl ) works... no configure: error: installation or configuration problem: C compiler cannot creat e executables. make: *** [../../nsprpub/WINNT6.1_64_OPT.OBJ/config.status] Error 1 This might be an intermittent problem we've been seeing which is unrelated to the compiler (failure to remove a file which is in use), but you really need to check config.log to see what the actual failure was. Can you post the environment that's seen at the point 'cl' is invoked? (Check over it and X-out any sensitive info first). You might be able to do this by creating a cl.cmd file in the current directory with just the set command in it. - Marsh -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto
Re: 64bit NSS build on windows 7 x64
On 16.09.2010 15:28, David Stutzman wrote: I've installed the latest mozilla-build, VS2008 Express SP1, the latest windows SDK (7.1) and I'm just not getting too far in this process. Linux is so much easier! I start up the shell with the start-msvc8-x64.bat script, which doesn't seem to do/be anything different from start-msvc8.bat. For Visual Studio 2008, you should use start-msvc9-x64.bat. but there's no mozconfig file that I can find to alter the host and target. Right, if you just want to compile NSS (and NSPR), then that's not needed. Simply add USE_64=1 to the nss_build_all make command (which you already did, from what I gather from the NSPR configure command). Out of curiosity, I just gave it a try with VC 2005, and the build went pretty smooth... a few more warnings than usual in the output (compared to a 32-bit build), but the binaries at least seem to load :-) Kaspar -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto