Re: nss build problem: could not open file certdata.c

[email protected] Fri, 3 Mar 2017 00:32:51 -0800 (PST)
Newsgroups gmane.comp.mozilla.security
Message-ID <[email protected]>
On Thursday, 2 March 2017 19:55:06 UTC+8, Franziskus Kiefer  wrote:
> As Tim said said, the old Makefiles should work fine.
> If you want to try the new builds system on Windows you need to install gyp
> [1], strawberry perl [2], and ninja [3], and add them to the path. We work
> on making the new system easier to use on Windows. But for now installing
> those dependencies should work.
> 
> [1] https://chromium.googlesource.com/external/gyp.git
> [2] http://strawberryperl.com/
> [3] https://chromium.googlesource.com/external/gyp.git
> 
> On Mon, Feb 27, 2017 at 8:48 PM, Tim Taubert <[email protected]> wrote:
> 
> > You might have more success with the "old" Makefile build system. GYP
> > (i.e. build.sh) works well on Linux and macOS so far, but we haven't
> > finished Windows integration just yet.
> >
> > - Tim
> >
> >
> > [email protected] wrote:
> > > Hi, I have being building nss & nspr for windows using visual studio
> > 2015. The nss & nspr i clone it from https://hg.mozilla.org/projects/nspr
> > & https://hg.mozilla.org/projects/nss respectively at date 26/feb/2017.
> > The gyp & ninja, I build it from https://chromium.googlesource.
> > com/external/gyp & git://github.com/ninja-build/ninja.git at date
> > 27/feb/2017. I also use the mozilla make tools download from mozilla
> > website.
> > >
> > > I have actually found that something wrong with the auto generated file
> > nss\out\release\obj\lib\ckfw\builtins\nssckbi.ninja at line 70, which is
> > "..\..\..\out\Release\obj\lib\ckfw\builtins\nssckbi.gen/certdata.c".
> > After doing some modification I found that in order for it to work, it need
> > to be changed to "../../../out/Release/obj/lib/ckfw/builtins/nssckbi.gen/certdata.c"
> > instead.
> > >
> > > May I know if this is a bug, or if there's something I didn't configure
> > right?
> > > _______________________________________________
> > > dev-security mailing list
> > > [email protected]
> > > https://lists.mozilla.org/listinfo/dev-security
> > _______________________________________________
> > dev-security mailing list
> > [email protected]
> > https://lists.mozilla.org/listinfo/dev-security
> >

I actually did install the latest gyp & ninja, but I use the perl.exe come from the Mozilla build tool instead. In the end the "unable to open file certdata.c" was resolved by installing the latest strawberry perl, I think the perl in the latest Mozilla build tools is quite old. After further building, I still get some other bugs, but I eventually switch to legacy build method, and has being successful.