NSS 3.47.1 build fail on windows

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

NSS 3.47.1 build fail on windows

cryptonewbie
Hello,

I'm trying to build NSS in debug mode ( I'm assuming if I don't set BUILD_OPT=1, default will be debug? ). I gathered from googling, to debug NSS, you need to set following env variables, but for that to work I would need to build NSS in debug mode:
> $ export NSPR_LOG_MODULES="all:5"
> $ export NSPR_LOG_FILE="/tmp/pkcs11.log"
> $ export NSS_DEBUG_PKCS11_MODULE="NSS Internal PKCS #11 Module"


Unfortunately, I have problem building NSS on windows. Since, I wasn't able to quite understand what the pre-reqs are for NSS from mozilla site, I ended up googling for that as well. Hopefully, this is the right approach.

Here's what I did :
installed mozillabuild (v3.3)
installed gitbash
installed gyp
got ninja ( not sure if I even need this, regardless copied over ninja.exe to mozilla-build\python\Scripts)
downloaded nss-3.47-with-nspr-4.23 - unzipped

Start->VS2017 -> launched 'x64 native Tools Command Prompt for VS2017'
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.9.13
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

c:\apps\MVS15>set PATH=D:\apps\nss-prereq\mozilla-build\python;D:\apps\nss-prereq\mozilla-build\python\Scripts;%PATH%
c:\apps\MVS15>set MOZ_NO_RESET_PATH=1
c:\apps\MVS15>echo %PATH%
D:\apps\nss-prereq\mozilla-build\python;D:\apps\nss-prereq\mozilla-build\python\Scripts;c:\apps\MVS15\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64;c:\apps\MVS15\Common7\IDE\VC\VCPackages;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\TestWindow;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;c:\apps\MVS15\MSBuild\15.0\bin\Roslyn;c:\apps\MVS15\Team Tools\Performance Tools\x64;c:\apps\MVS15\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\\x64;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;c:\apps\MVS15\\MSBuild\15.0\bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;c:\apps\MVS15\Common7\IDE\;c:\apps\MVS15\Common7\Tools\;C:\
 ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Users\nayak\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;D:\apps\nss-prereq\Git\cmd;C:\Users\nayak\AppData\Local\Microsoft\WindowsApps;;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja
c:\apps\MVS15>cd D:\apps\nss-prereq\mozilla-build

c:\apps\MVS15>D:

c:\apps\MVS15>cd D:\apps\nss-prereq\mozilla-build

c:\apps\MVS15>D:

D:\apps\nss-prereq\mozilla-build>start-shell.bat
MozillaBuild Install Directory: D:\apps\nss-prereq\mozilla-build\

nayak@svi6w273 ~
$ export USE_64=1

nayak@svi6w273 ~
$ export NSS_DISABLE_GTESTS=1
nayak@svi6w273 /d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nss
$ ./build.sh
NSPR [1/5] configure ...
NSPR [2/5] make ...

nayak@svi6w273 /d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nss


nss-3.47-with-nspr-4.23\nss-3.47\nspr\Debug\config.log based on build.sh :
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ../configure --prefix=/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/dist/Debug --enable-64bit

## --------- ##
## Platform. ##
## --------- ##

hostname = svi6w273
uname -m = i686
uname -r = 1.0.19(0.48/3/2)
uname -s = MINGW32_NT-6.2
uname -v = 2016-07-13 17:45

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /local/bin
PATH: /d/apps/nss-prereq/mozilla-build/bin
PATH: /d/apps/nss-prereq/mozilla-build/kdiff3
PATH: /d/apps/nss-prereq/mozilla-build/nsis-3.01
PATH: /d/apps/nss-prereq/mozilla-build/python
PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
PATH: /d/apps/nss-prereq/mozilla-build/python3
PATH: /d/apps/nss-prereq/mozilla-build/python3/Scripts
PATH: .
PATH: /usr/local/bin
PATH: /mingw/bin
PATH: /bin
PATH: /d/apps/nss-prereq/mozilla-build/python
PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
PATH: /c/apps/MVS15/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64
PATH: /c/apps/MVS15/Common7/IDE/VC/VCPackages
PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TestWindow
PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer
PATH: /c/apps/MVS15/MSBuild/15.0/bin/Roslyn
PATH: /c/apps/MVS15/Team Tools/Performance Tools/x64
PATH: /c/apps/MVS15/Team Tools/Performance Tools
PATH: /c/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/x64
PATH: /c/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/
PATH: /c/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX 4.6.1 Tools/x64/
PATH: /c/Program Files (x86)/HTML Help Workshop
PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64
PATH: /c/Program Files (x86)/Windows Kits/10/bin/x64
PATH: /c/apps/MVS15/MSBuild/15.0/bin
PATH: /c/Windows/Microsoft.NET/Framework64/v4.0.30319
PATH: /c/apps/MVS15/Common7/IDE/
PATH: /c/apps/MVS15/Common7/Tools/
PATH: /c/ProgramData/Oracle/Java/javapath
PATH: /c/windows/system32
PATH: /c/windows
PATH: /c/windows/System32/Wbem
PATH: /c/windows/System32/WindowsPowerShell/v1.0/
PATH: /c/Program Files/Microsoft/Web Platform Installer/
PATH: /c/Program Files (x86)/Microsoft ASP.NET/ASP.NET Web Pages/v1.0/
PATH: /c/Program Files/Microsoft SQL Server/110/Tools/Binn/
PATH: /c/Users/nayak/.dnx/bin
PATH: /c/Program Files/Microsoft DNX/Dnvm/
PATH: /c/Program Files/Microsoft SQL Server/120/Tools/Binn/
PATH: /d/apps/nss-prereq/Git/cmd
PATH: /c/Users/nayak/AppData/Local/Microsoft/WindowsApps
PATH: .
PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin
PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja
PATH: /d/apps/nss-prereq/Git/cmd/
PATH: /c/apps/MVS15/VC/Tools/MSVC/14.10.25017 /bin/Hostx64/x64
PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64
PATH: /c/apps/MVS15/VC/Redist/MSVC/14.10.25017 /x64/Microsoft.VC141.CRT


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2381: checking build system type
configure:2395: result: i686-pc-mingw32
configure:2415: checking host system type
configure:2428: result: i686-pc-mingw32
configure:2448: checking target system type
configure:2461: result: i686-pc-mingw32
configure:2541: checking for cl
configure:2557: found /c/apps/MVS15/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl
configure:2568: result: cl
configure:5849: cl -c   conftest.c >&5
conftest.c
conftest.c(14): error C2065: '__thumb2__': undeclared identifier
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25017 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

configure:5849: $? = 2
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define DEBUG 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
| return sizeof(__thumb2__);
|   ;
|   return 0;
| }
configure:6928: WARNING: Unknown version of the Microsoft (R) Manifest Tool.
configure:8531: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on svi6w273

config.status:835: creating Makefile
config.status:835: creating config/Makefile
config.status:835: creating config/autoconf.mk
config.status:835: creating config/nsprincl.mk
config.status:835: creating config/nsprincl.sh
config.status:835: creating config/nspr-config
config.status:835: creating config/nspr.pc
config.status:835: creating lib/Makefile
config.status:835: creating lib/ds/Makefile
config.status:835: creating lib/libc/Makefile
config.status:835: creating lib/libc/include/Makefile
config.status:835: creating lib/libc/src/Makefile
config.status:835: creating lib/tests/Makefile
config.status:835: creating pkg/Makefile
config.status:835: creating pr/Makefile
config.status:835: creating pr/include/Makefile
config.status:835: creating pr/include/md/Makefile
config.status:835: creating pr/include/obsolete/Makefile
config.status:835: creating pr/include/private/Makefile
config.status:835: creating pr/src/Makefile
config.status:835: creating pr/src/io/Makefile
config.status:835: creating pr/src/linking/Makefile
config.status:835: creating pr/src/malloc/Makefile
config.status:835: creating pr/src/md/Makefile
config.status:835: creating pr/src/md/windows/Makefile
config.status:835: creating pr/src/memory/Makefile
config.status:835: creating pr/src/misc/Makefile
config.status:835: creating pr/src/threads/Makefile
config.status:835: creating pr/tests/Makefile
config.status:835: creating pr/tests/dll/Makefile
config.status:835: creating pr/src/threads/combined/Makefile
config.status:981: executing default commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-mingw32
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=' '
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=' '
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=' '
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-mingw32
ac_cv_prog_CC=cl
ac_cv_target=i686-pc-mingw32

## ----------------- ##
## Output variables. ##
## ----------------- ##

AIX_LINK_OPTS=''
AR='lib -NOLOGO -OUT:"$@"'
AR_FLAGS=''
AS='$(CC)'
ASFLAGS='$(CFLAGS)'
ASM_SUFFIX='s'
CC='cl'
CCACHE=''
CFLAGS='  -W3 -nologo -GF -Gy -FS -Od -MD -GT -Zi'
CPP=''
CPPFLAGS=''
CPU_ARCH='x86'
CROSS_COMPILE=''
CXX='cl'
CXXFLAGS='  -Zi'
CYGWIN_WRAPPER=''
DEFINES=' -UNDEBUG -DDEBUG_nayak'
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDEBUG=1 -DXP_PC=1 -DWIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -D_CRT_NONSTDC_NO_WARNINGS=1 -D_DEBUG=1 -DWINNT=1 -D_AMD64_=1'
DLLFLAGS=' -DYNAMICBASE -OUT:"$@" -DEBUG'
DLL_SUFFIX='dll'
DSO_CFLAGS=''
DSO_LDOPTS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_STRIP=''
EXEEXT=''
EXEFLAGS=''
FILTER=''
GCC_USE_GNU_LD=''
GNU_CC=''
GREP=''
HOST_CC=''
HOST_CFLAGS=''
HOST_LDFLAGS=''
IMPLIB=''
LD='link'
LDFLAGS='  -DEBUG'
LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
LIBOBJS=''
LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
LIBS=''
LIB_SUFFIX='lib'
LTLIBOBJS=''
MACOSX_DEPLOYMENT_TARGET=''
MACOS_SDK_DIR=''
MDCPUCFG_H='_winnt.cfg'
MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
MOD_MAJOR_VERSION='4'
MOD_MINOR_VERSION='23'
MOD_PATCH_VERSION='0'
MOZILLA_CLIENT=''
MOZ_DEBUG='1'
MOZ_DEBUG_SYMBOLS='1'
MOZ_OBJFORMAT=''
MOZ_OPTIMIZE=''
MSC_VER='1910'
MT='mt'
NEXT_ROOT=''
NOSUCHFILE='/no-such-file'
NSINSTALL='nsinstall'
NSPR_MODNAME='nspr20'
OBJDIR='$(OBJDIR_NAME)'
OBJDIR_NAME='.'
OBJECT_MODE=''
OBJEXT=''
OBJ_SUFFIX='obj'
OPTIMIZER=''
OS_ARCH='WINNT'
OS_DLLFLAGS='-nologo -DLL -SUBSYSTEM:WINDOWS'
OS_LIBS=' '
OS_RELEASE='6.2'
OS_TARGET='WINNT'
OS_TEST='i686'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL='perl'
PROFILE_GEN_CFLAGS='-GL -Gw'
PROFILE_GEN_LDFLAGS='-LTCG:PGINSTRUMENT'
PROFILE_USE_CFLAGS='-GL -wd4624 -wd4952 -Gw'
PROFILE_USE_LDFLAGS='-LTCG:PGUPDATE'
PR_MD_ARCH_DIR='windows'
PR_MD_ASFILES=''
PR_MD_CSRCS=''
RANLIB='echo not_ranlib'
RC='rc.exe'
RCFLAGS=''
RELEASE_OBJDIR_NAME='WINNT6.2_64_DBG.OBJ'
RESOLVE_LINK_SYMBOLS='1'
SHELL='/bin/sh'
SHELL_OVERRIDE=''
STRIP='echo not_strip'
ULTRASPARC_LIBRARY=''
USE_64='1'
USE_BTHREADS=''
USE_CPLUS=''
USE_IPV6=''
USE_N32=''
USE_NSPR_THREADS=''
USE_PTHREADS=''
USE_USER_PTHREADS=''
USE_X32=''
VISIBILITY_FLAGS=''
WHOAMI=''
WINDRES=''
WRAP_LDFLAGS=''
WRAP_SYSTEM_INCLUDES=''
ac_ct_CC=''
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='i686-pc-mingw32'
build_alias=''
build_cpu='i686'
build_os='mingw32'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
dist_bindir='${dist_prefix}/bin'
dist_includedir='${dist_prefix}/include/nspr'
dist_libdir='${dist_prefix}/lib'
dist_prefix='${MOD_DEPTH}/dist'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='i686-pc-mingw32'
host_alias=''
host_cpu='i686'
host_os='mingw32'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include/nspr'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/dist/Debug'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-mingw32'
target_alias=''
target_cpu='i686'
target_os='mingw32'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define DEBUG 1
#define XP_PC 1
#define WIN32 1
#define _CRT_SECURE_NO_WARNINGS 1
#define _CRT_NONSTDC_NO_WARNINGS 1
#define _DEBUG 1
#define WINNT 1
#define _AMD64_ 1

configure: exit 0

----------------------------------------------------------------------------
I even tried legacy way of building after deleting temp directories:
$ make nss_build_all
mkdir -p ./../nspr/WIN954.0_x86_64_64_DBG.OBJ
cd ./../nspr/WIN954.0_x86_64_64_DBG.OBJ ; \
        CC="cl" CXX="cl" sh ../configure \
        --enable-64bit --enable-win32-target=WIN95 \
        --with-dist-prefix='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ' \
        --with-dist-includedir='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ/include'
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for cl... cl
configure: WARNING: Unknown version of the Microsoft (R) Manifest Tool.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/autoconf.mk
config.status: creating config/nsprincl.mk
config.status: creating config/nsprincl.sh
config.status: creating config/nspr-config
config.status: creating config/nspr.pc
config.status: creating lib/Makefile
config.status: creating lib/ds/Makefile
config.status: creating lib/libc/Makefile
config.status: creating lib/libc/include/Makefile
config.status: creating lib/libc/src/Makefile
config.status: creating lib/tests/Makefile
config.status: creating pkg/Makefile
config.status: creating pr/Makefile
config.status: creating pr/include/Makefile
config.status: creating pr/include/md/Makefile
config.status: creating pr/include/obsolete/Makefile
config.status: creating pr/include/private/Makefile
config.status: creating pr/src/Makefile
config.status: creating pr/src/io/Makefile
config.status: creating pr/src/linking/Makefile
config.status: creating pr/src/malloc/Makefile
config.status: creating pr/src/md/Makefile
config.status: creating pr/src/md/windows/Makefile
config.status: creating pr/src/memory/Makefile
config.status: creating pr/src/misc/Makefile
config.status: creating pr/src/threads/Makefile
config.status: creating pr/tests/Makefile
config.status: creating pr/tests/dll/Makefile
config.status: creating pr/src/threads/combined/Makefile
config.status: executing default commands
make -C ./../nspr/WIN954.0_x86_64_64_DBG.OBJ
make[1]: Entering directory `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ'
make -C config export
make[2]: Entering directory `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config'
cl -Fonow.obj -c      -W3 -nologo -GF -Gy -FS -Od -MD -Zi   -UNDEBUG -DDEBUG_nayak -UWINNT -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDEBUG=1 -DXP_PC=1 -DWIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -D_CRT_NONSTDC_NO_WARNINGS=1 -D_DEBUG=1 -DWIN95=1 -D_PR_GLOBAL_THREADS_ONLY=1 -D_AMD64_=1 -DFORCE_PR_LOG   "/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config/../../config/now.c"
now.c
d:/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config/../../config/now.c(6): fatal error C1034: stdio.h: no include path set
make[2]: *** [now.obj] Error 2
make[2]: Leaving directory `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config'
make[1]: *** [export] Error 2
make[1]: Leaving directory `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ'
make: *** [build_nspr] Error 2

nayak@svi6w273 /d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nss

nss-3.47-with-nspr-4.23\nss-3.47\nspr\WIN954.0_x86_64_64_DBG.OBJ\config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ../configure --enable-64bit --enable-win32-target=WIN95 --with-dist-prefix=$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ --with-dist-includedir=$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ/include

## --------- ##
## Platform. ##
## --------- ##

hostname = svi6w273
uname -m = i686
uname -r = 1.0.19(0.48/3/2)
uname -s = MINGW32_NT-6.2
uname -v = 2016-07-13 17:45

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /local/bin
PATH: /d/apps/nss-prereq/mozilla-build/bin
PATH: /d/apps/nss-prereq/mozilla-build/kdiff3
PATH: /d/apps/nss-prereq/mozilla-build/nsis-3.01
PATH: /d/apps/nss-prereq/mozilla-build/python
PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
PATH: /d/apps/nss-prereq/mozilla-build/python3
PATH: /d/apps/nss-prereq/mozilla-build/python3/Scripts
PATH: .
PATH: /usr/local/bin
PATH: /mingw/bin
PATH: /bin
PATH: /d/apps/nss-prereq/mozilla-build/python
PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
PATH: /c/apps/MVS15/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64
PATH: /c/apps/MVS15/Common7/IDE/VC/VCPackages
PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TestWindow
PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer
PATH: /c/apps/MVS15/MSBuild/15.0/bin/Roslyn
PATH: /c/apps/MVS15/Team Tools/Performance Tools/x64
PATH: /c/apps/MVS15/Team Tools/Performance Tools
PATH: /c/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/x64
PATH: /c/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/
PATH: /c/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX 4.6.1 Tools/x64/
PATH: /c/Program Files (x86)/HTML Help Workshop
PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64
PATH: /c/Program Files (x86)/Windows Kits/10/bin/x64
PATH: /c/apps/MVS15/MSBuild/15.0/bin
PATH: /c/Windows/Microsoft.NET/Framework64/v4.0.30319
PATH: /c/apps/MVS15/Common7/IDE/
PATH: /c/apps/MVS15/Common7/Tools/
PATH: /c/ProgramData/Oracle/Java/javapath
PATH: /c/windows/system32
PATH: /c/windows
PATH: /c/windows/System32/Wbem
PATH: /c/windows/System32/WindowsPowerShell/v1.0/
PATH: /c/Program Files/Microsoft/Web Platform Installer/
PATH: /c/Program Files (x86)/Microsoft ASP.NET/ASP.NET Web Pages/v1.0/
PATH: /c/Program Files/Microsoft SQL Server/110/Tools/Binn/
PATH: /c/Users/nayak/.dnx/bin
PATH: /c/Program Files/Microsoft DNX/Dnvm/
PATH: /c/Program Files/Microsoft SQL Server/120/Tools/Binn/
PATH: /d/apps/nss-prereq/Git/cmd
PATH: /c/Users/nayak/AppData/Local/Microsoft/WindowsApps
PATH: .
PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin
PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja
PATH: /d/apps/nss-prereq/Git/cmd/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2381: checking build system type
configure:2395: result: i686-pc-mingw32
configure:2415: checking host system type
configure:2428: result: i686-pc-mingw32
configure:2448: checking target system type
configure:2461: result: i686-pc-mingw32
configure:2541: checking for cl
configure:2568: result: cl
configure:5849: cl -c   conftest.c >&5
conftest.c
conftest.c(14): error C2065: '__thumb2__': undeclared identifier
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25017 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

configure:5849: $? = 2
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define DEBUG 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
| return sizeof(__thumb2__);
|   ;
|   return 0;
| }
configure:6928: WARNING: Unknown version of the Microsoft (R) Manifest Tool.
configure:8531: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on svi6w273

config.status:835: creating Makefile
config.status:835: creating config/Makefile
config.status:835: creating config/autoconf.mk
config.status:835: creating config/nsprincl.mk
config.status:835: creating config/nsprincl.sh
config.status:835: creating config/nspr-config
config.status:835: creating config/nspr.pc
config.status:835: creating lib/Makefile
config.status:835: creating lib/ds/Makefile
config.status:835: creating lib/libc/Makefile
config.status:835: creating lib/libc/include/Makefile
config.status:835: creating lib/libc/src/Makefile
config.status:835: creating lib/tests/Makefile
config.status:835: creating pkg/Makefile
config.status:835: creating pr/Makefile
config.status:835: creating pr/include/Makefile
config.status:835: creating pr/include/md/Makefile
config.status:835: creating pr/include/obsolete/Makefile
config.status:835: creating pr/include/private/Makefile
config.status:835: creating pr/src/Makefile
config.status:835: creating pr/src/io/Makefile
config.status:835: creating pr/src/linking/Makefile
config.status:835: creating pr/src/malloc/Makefile
config.status:835: creating pr/src/md/Makefile
config.status:835: creating pr/src/md/windows/Makefile
config.status:835: creating pr/src/memory/Makefile
config.status:835: creating pr/src/misc/Makefile
config.status:835: creating pr/src/threads/Makefile
config.status:835: creating pr/tests/Makefile
config.status:835: creating pr/tests/dll/Makefile
config.status:835: creating pr/src/threads/combined/Makefile
config.status:981: executing default commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-mingw32
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=cl
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=cl
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-mingw32
ac_cv_prog_CC=cl
ac_cv_target=i686-pc-mingw32

## ----------------- ##
## Output variables. ##
## ----------------- ##

AIX_LINK_OPTS=''
AR='lib -NOLOGO -OUT:"$@"'
AR_FLAGS=''
AS='$(CC)'
ASFLAGS='$(CFLAGS)'
ASM_SUFFIX='s'
CC='cl'
CCACHE=''
CFLAGS=' -W3 -nologo -GF -Gy -FS -Od -MD -Zi'
CPP=''
CPPFLAGS=''
CPU_ARCH='x86'
CROSS_COMPILE=''
CXX='cl'
CXXFLAGS=' -Zi'
CYGWIN_WRAPPER=''
DEFINES=' -UNDEBUG -DDEBUG_nayak -UWINNT'
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDEBUG=1 -DXP_PC=1 -DWIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -D_CRT_NONSTDC_NO_WARNINGS=1 -D_DEBUG=1 -DWIN95=1 -D_PR_GLOBAL_THREADS_ONLY=1 -D_AMD64_=1'
DLLFLAGS=' -DYNAMICBASE -OUT:"$@" -DEBUG'
DLL_SUFFIX='dll'
DSO_CFLAGS=''
DSO_LDOPTS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_STRIP=''
EXEEXT=''
EXEFLAGS=''
FILTER=''
GCC_USE_GNU_LD=''
GNU_CC=''
GREP=''
HOST_CC=''
HOST_CFLAGS=''
HOST_LDFLAGS=''
IMPLIB=''
LD='link'
LDFLAGS=' -DEBUG'
LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
LIBOBJS=''
LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
LIBS=''
LIB_SUFFIX='lib'
LTLIBOBJS=''
MACOSX_DEPLOYMENT_TARGET=''
MACOS_SDK_DIR=''
MDCPUCFG_H='_win95.cfg'
MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
MOD_MAJOR_VERSION='4'
MOD_MINOR_VERSION='23'
MOD_PATCH_VERSION='0'
MOZILLA_CLIENT=''
MOZ_DEBUG='1'
MOZ_DEBUG_SYMBOLS='1'
MOZ_OBJFORMAT=''
MOZ_OPTIMIZE=''
MSC_VER='1910'
MT='mt'
NEXT_ROOT=''
NOSUCHFILE='/no-such-file'
NSINSTALL='nsinstall'
NSPR_MODNAME='nspr20'
OBJDIR='$(OBJDIR_NAME)'
OBJDIR_NAME='.'
OBJECT_MODE=''
OBJEXT=''
OBJ_SUFFIX='obj'
OPTIMIZER=''
OS_ARCH='WINNT'
OS_DLLFLAGS='-nologo -DLL -SUBSYSTEM:WINDOWS'
OS_LIBS=' '
OS_RELEASE='4.0'
OS_TARGET='WIN95'
OS_TEST='i686'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL='perl'
PROFILE_GEN_CFLAGS='-GL -Gw'
PROFILE_GEN_LDFLAGS='-LTCG:PGINSTRUMENT'
PROFILE_USE_CFLAGS='-GL -wd4624 -wd4952 -Gw'
PROFILE_USE_LDFLAGS='-LTCG:PGUPDATE'
PR_MD_ARCH_DIR='windows'
PR_MD_ASFILES=''
PR_MD_CSRCS=''
RANLIB='echo not_ranlib'
RC='rc.exe'
RCFLAGS=''
RELEASE_OBJDIR_NAME='WIN954.0_64_DBG.OBJ'
RESOLVE_LINK_SYMBOLS='1'
SHELL='/bin/sh'
SHELL_OVERRIDE=''
STRIP='echo not_strip'
ULTRASPARC_LIBRARY=''
USE_64='1'
USE_BTHREADS=''
USE_CPLUS=''
USE_IPV6=''
USE_N32=''
USE_NSPR_THREADS=''
USE_PTHREADS=''
USE_USER_PTHREADS=''
USE_X32=''
VISIBILITY_FLAGS=''
WHOAMI=''
WINDRES=''
WRAP_LDFLAGS=''
WRAP_SYSTEM_INCLUDES=''
ac_ct_CC=''
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='i686-pc-mingw32'
build_alias=''
build_cpu='i686'
build_os='mingw32'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
dist_bindir='${dist_prefix}/bin'
dist_includedir='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ/include'
dist_libdir='${dist_prefix}/lib'
dist_prefix='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='i686-pc-mingw32'
host_alias=''
host_cpu='i686'
host_os='mingw32'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include/nspr'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-mingw32'
target_alias=''
target_cpu='i686'
target_os='mingw32'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define DEBUG 1
#define XP_PC 1
#define WIN32 1
#define _CRT_SECURE_NO_WARNINGS 1
#define _CRT_NONSTDC_NO_WARNINGS 1
#define _DEBUG 1
#define WIN95 1
#define _PR_GLOBAL_THREADS_ONLY 1
#define _AMD64_ 1

configure: exit 0


Any help greatly appreciated.

Thanks..

--
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Reply | Threaded
Open this post in threaded view
|

Re: NSS 3.47.1 build fail on windows

cryptonewbie
On Wednesday, December 11, 2019 at 9:28:17 AM UTC-6, Usha Nayak wrote:

> Hello,
>
> I'm trying to build NSS in debug mode ( I'm assuming if I don't set BUILD_OPT=1, default will be debug? ). I gathered from googling, to debug NSS, you need to set following env variables, but for that to work I would need to build NSS in debug mode:
> > $ export NSPR_LOG_MODULES="all:5"
> > $ export NSPR_LOG_FILE="/tmp/pkcs11.log"
> > $ export NSS_DEBUG_PKCS11_MODULE="NSS Internal PKCS #11 Module"
>
>
> Unfortunately, I have problem building NSS on windows. Since, I wasn't able to quite understand what the pre-reqs are for NSS from mozilla site, I ended up googling for that as well. Hopefully, this is the right approach.
>
> Here's what I did :
> installed mozillabuild (v3.3)
> installed gitbash
> installed gyp
> got ninja ( not sure if I even need this, regardless copied over ninja.exe to mozilla-build\python\Scripts)
> downloaded nss-3.47-with-nspr-4.23 - unzipped
>
> Start->VS2017 -> launched 'x64 native Tools Command Prompt for VS2017'
> **********************************************************************
> ** Visual Studio 2017 Developer Command Prompt v15.9.13
> ** Copyright (c) 2017 Microsoft Corporation
> **********************************************************************
> [vcvarsall.bat] Environment initialized for: 'x64'
>
> c:\apps\MVS15>set PATH=D:\apps\nss-prereq\mozilla-build\python;D:\apps\nss-prereq\mozilla-build\python\Scripts;%PATH%
> c:\apps\MVS15>set MOZ_NO_RESET_PATH=1
> c:\apps\MVS15>echo %PATH%
> D:\apps\nss-prereq\mozilla-build\python;D:\apps\nss-prereq\mozilla-build\python\Scripts;c:\apps\MVS15\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64;c:\apps\MVS15\Common7\IDE\VC\VCPackages;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\TestWindow;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;c:\apps\MVS15\MSBuild\15.0\bin\Roslyn;c:\apps\MVS15\Team Tools\Performance Tools\x64;c:\apps\MVS15\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\\x64;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;c:\apps\MVS15\\MSBuild\15.0\bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;c:\apps\MVS15\Common7\IDE\;c:\apps\MVS15\Common7\Tools\;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Users\nayak\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;D:\apps\nss-prereq\Git\cmd;C:\Users\nayak\AppData\Local\Microsoft\WindowsApps;;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja
> c:\apps\MVS15>cd D:\apps\nss-prereq\mozilla-build
>
> c:\apps\MVS15>D:
>
> c:\apps\MVS15>cd D:\apps\nss-prereq\mozilla-build
>
> c:\apps\MVS15>D:
>
> D:\apps\nss-prereq\mozilla-build>start-shell.bat
> MozillaBuild Install Directory: D:\apps\nss-prereq\mozilla-build\
>
> nayak@svi6w273 ~
> $ export USE_64=1
>
> nayak@svi6w273 ~
> $ export NSS_DISABLE_GTESTS=1
> nayak@svi6w273 /d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nss
> $ ./build.sh
> NSPR [1/5] configure ...
> NSPR [2/5] make ...
>
> nayak@svi6w273 /d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nss
>
>
> nss-3.47-with-nspr-4.23\nss-3.47\nspr\Debug\config.log based on build.sh :
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by configure, which was
> generated by GNU Autoconf 2.69.  Invocation command line was
>
>   $ ../configure --prefix=/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/dist/Debug --enable-64bit
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = svi6w273
> uname -m = i686
> uname -r = 1.0.19(0.48/3/2)
> uname -s = MINGW32_NT-6.2
> uname -v = 2016-07-13 17:45
>
> /usr/bin/uname -p = unknown
> /bin/uname -X     = unknown
>
> /bin/arch              = unknown
> /usr/bin/arch -k       = unknown
> /usr/convex/getsysinfo = unknown
> /usr/bin/hostinfo      = unknown
> /bin/machine           = unknown
> /usr/bin/oslevel       = unknown
> /bin/universe          = unknown
>
> PATH: /local/bin
> PATH: /d/apps/nss-prereq/mozilla-build/bin
> PATH: /d/apps/nss-prereq/mozilla-build/kdiff3
> PATH: /d/apps/nss-prereq/mozilla-build/nsis-3.01
> PATH: /d/apps/nss-prereq/mozilla-build/python
> PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
> PATH: /d/apps/nss-prereq/mozilla-build/python3
> PATH: /d/apps/nss-prereq/mozilla-build/python3/Scripts
> PATH: .
> PATH: /usr/local/bin
> PATH: /mingw/bin
> PATH: /bin
> PATH: /d/apps/nss-prereq/mozilla-build/python
> PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
> PATH: /c/apps/MVS15/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64
> PATH: /c/apps/MVS15/Common7/IDE/VC/VCPackages
> PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TestWindow
> PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer
> PATH: /c/apps/MVS15/MSBuild/15.0/bin/Roslyn
> PATH: /c/apps/MVS15/Team Tools/Performance Tools/x64
> PATH: /c/apps/MVS15/Team Tools/Performance Tools
> PATH: /c/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/x64
> PATH: /c/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/
> PATH: /c/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX 4.6.1 Tools/x64/
> PATH: /c/Program Files (x86)/HTML Help Workshop
> PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64
> PATH: /c/Program Files (x86)/Windows Kits/10/bin/x64
> PATH: /c/apps/MVS15/MSBuild/15.0/bin
> PATH: /c/Windows/Microsoft.NET/Framework64/v4.0.30319
> PATH: /c/apps/MVS15/Common7/IDE/
> PATH: /c/apps/MVS15/Common7/Tools/
> PATH: /c/ProgramData/Oracle/Java/javapath
> PATH: /c/windows/system32
> PATH: /c/windows
> PATH: /c/windows/System32/Wbem
> PATH: /c/windows/System32/WindowsPowerShell/v1.0/
> PATH: /c/Program Files/Microsoft/Web Platform Installer/
> PATH: /c/Program Files (x86)/Microsoft ASP.NET/ASP.NET Web Pages/v1.0/
> PATH: /c/Program Files/Microsoft SQL Server/110/Tools/Binn/
> PATH: /c/Users/nayak/.dnx/bin
> PATH: /c/Program Files/Microsoft DNX/Dnvm/
> PATH: /c/Program Files/Microsoft SQL Server/120/Tools/Binn/
> PATH: /d/apps/nss-prereq/Git/cmd
> PATH: /c/Users/nayak/AppData/Local/Microsoft/WindowsApps
> PATH: .
> PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin
> PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja
> PATH: /d/apps/nss-prereq/Git/cmd/
> PATH: /c/apps/MVS15/VC/Tools/MSVC/14.10.25017 /bin/Hostx64/x64
> PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64
> PATH: /c/apps/MVS15/VC/Redist/MSVC/14.10.25017 /x64/Microsoft.VC141.CRT
>
>
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
>
> configure:2381: checking build system type
> configure:2395: result: i686-pc-mingw32
> configure:2415: checking host system type
> configure:2428: result: i686-pc-mingw32
> configure:2448: checking target system type
> configure:2461: result: i686-pc-mingw32
> configure:2541: checking for cl
> configure:2557: found /c/apps/MVS15/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl
> configure:2568: result: cl
> configure:5849: cl -c   conftest.c >&5
> conftest.c
> conftest.c(14): error C2065: '__thumb2__': undeclared identifier
> Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25017 for x64
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
> configure:5849: $? = 2
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define DEBUG 1
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> | return sizeof(__thumb2__);
> |   ;
> |   return 0;
> | }
> configure:6928: WARNING: Unknown version of the Microsoft (R) Manifest Tool.
> configure:8531: creating ./config.status
>
> ## ---------------------- ##
> ## Running config.status. ##
> ## ---------------------- ##
>
> This file was extended by config.status, which was
> generated by GNU Autoconf 2.69.  Invocation command line was
>
>   CONFIG_FILES    =
>   CONFIG_HEADERS  =
>   CONFIG_LINKS    =
>   CONFIG_COMMANDS =
>   $ ./config.status
>
> on svi6w273
>
> config.status:835: creating Makefile
> config.status:835: creating config/Makefile
> config.status:835: creating config/autoconf.mk
> config.status:835: creating config/nsprincl.mk
> config.status:835: creating config/nsprincl.sh
> config.status:835: creating config/nspr-config
> config.status:835: creating config/nspr.pc
> config.status:835: creating lib/Makefile
> config.status:835: creating lib/ds/Makefile
> config.status:835: creating lib/libc/Makefile
> config.status:835: creating lib/libc/include/Makefile
> config.status:835: creating lib/libc/src/Makefile
> config.status:835: creating lib/tests/Makefile
> config.status:835: creating pkg/Makefile
> config.status:835: creating pr/Makefile
> config.status:835: creating pr/include/Makefile
> config.status:835: creating pr/include/md/Makefile
> config.status:835: creating pr/include/obsolete/Makefile
> config.status:835: creating pr/include/private/Makefile
> config.status:835: creating pr/src/Makefile
> config.status:835: creating pr/src/io/Makefile
> config.status:835: creating pr/src/linking/Makefile
> config.status:835: creating pr/src/malloc/Makefile
> config.status:835: creating pr/src/md/Makefile
> config.status:835: creating pr/src/md/windows/Makefile
> config.status:835: creating pr/src/memory/Makefile
> config.status:835: creating pr/src/misc/Makefile
> config.status:835: creating pr/src/threads/Makefile
> config.status:835: creating pr/tests/Makefile
> config.status:835: creating pr/tests/dll/Makefile
> config.status:835: creating pr/src/threads/combined/Makefile
> config.status:981: executing default commands
>
> ## ---------------- ##
> ## Cache variables. ##
> ## ---------------- ##
>
> ac_cv_build=i686-pc-mingw32
> ac_cv_env_CCC_set=
> ac_cv_env_CCC_value=
> ac_cv_env_CC_set=set
> ac_cv_env_CC_value=
> ac_cv_env_CFLAGS_set=set
> ac_cv_env_CFLAGS_value=' '
> ac_cv_env_CPPFLAGS_set=
> ac_cv_env_CPPFLAGS_value=
> ac_cv_env_CPP_set=
> ac_cv_env_CPP_value=
> ac_cv_env_CXXFLAGS_set=set
> ac_cv_env_CXXFLAGS_value=' '
> ac_cv_env_CXX_set=set
> ac_cv_env_CXX_value=
> ac_cv_env_LDFLAGS_set=set
> ac_cv_env_LDFLAGS_value=' '
> ac_cv_env_LIBS_set=
> ac_cv_env_LIBS_value=
> ac_cv_env_build_alias_set=
> ac_cv_env_build_alias_value=
> ac_cv_env_host_alias_set=
> ac_cv_env_host_alias_value=
> ac_cv_env_target_alias_set=
> ac_cv_env_target_alias_value=
> ac_cv_host=i686-pc-mingw32
> ac_cv_prog_CC=cl
> ac_cv_target=i686-pc-mingw32
>
> ## ----------------- ##
> ## Output variables. ##
> ## ----------------- ##
>
> AIX_LINK_OPTS=''
> AR='lib -NOLOGO -OUT:"$@"'
> AR_FLAGS=''
> AS='$(CC)'
> ASFLAGS='$(CFLAGS)'
> ASM_SUFFIX='s'
> CC='cl'
> CCACHE=''
> CFLAGS='  -W3 -nologo -GF -Gy -FS -Od -MD -GT -Zi'
> CPP=''
> CPPFLAGS=''
> CPU_ARCH='x86'
> CROSS_COMPILE=''
> CXX='cl'
> CXXFLAGS='  -Zi'
> CYGWIN_WRAPPER=''
> DEFINES=' -UNDEBUG -DDEBUG_nayak'
> DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDEBUG=1 -DXP_PC=1 -DWIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -D_CRT_NONSTDC_NO_WARNINGS=1 -D_DEBUG=1 -DWINNT=1 -D_AMD64_=1'
> DLLFLAGS=' -DYNAMICBASE -OUT:"$@" -DEBUG'
> DLL_SUFFIX='dll'
> DSO_CFLAGS=''
> DSO_LDOPTS=''
> ECHO_C=''
> ECHO_N='-n'
> ECHO_T=''
> EGREP=''
> ENABLE_STRIP=''
> EXEEXT=''
> EXEFLAGS=''
> FILTER=''
> GCC_USE_GNU_LD=''
> GNU_CC=''
> GREP=''
> HOST_CC=''
> HOST_CFLAGS=''
> HOST_LDFLAGS=''
> IMPLIB=''
> LD='link'
> LDFLAGS='  -DEBUG'
> LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
> LIBOBJS=''
> LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
> LIBS=''
> LIB_SUFFIX='lib'
> LTLIBOBJS=''
> MACOSX_DEPLOYMENT_TARGET=''
> MACOS_SDK_DIR=''
> MDCPUCFG_H='_winnt.cfg'
> MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
> MOD_MAJOR_VERSION='4'
> MOD_MINOR_VERSION='23'
> MOD_PATCH_VERSION='0'
> MOZILLA_CLIENT=''
> MOZ_DEBUG='1'
> MOZ_DEBUG_SYMBOLS='1'
> MOZ_OBJFORMAT=''
> MOZ_OPTIMIZE=''
> MSC_VER='1910'
> MT='mt'
> NEXT_ROOT=''
> NOSUCHFILE='/no-such-file'
> NSINSTALL='nsinstall'
> NSPR_MODNAME='nspr20'
> OBJDIR='$(OBJDIR_NAME)'
> OBJDIR_NAME='.'
> OBJECT_MODE=''
> OBJEXT=''
> OBJ_SUFFIX='obj'
> OPTIMIZER=''
> OS_ARCH='WINNT'
> OS_DLLFLAGS='-nologo -DLL -SUBSYSTEM:WINDOWS'
> OS_LIBS=' '
> OS_RELEASE='6.2'
> OS_TARGET='WINNT'
> OS_TEST='i686'
> PACKAGE_BUGREPORT=''
> PACKAGE_NAME=''
> PACKAGE_STRING=''
> PACKAGE_TARNAME=''
> PACKAGE_URL=''
> PACKAGE_VERSION=''
> PATH_SEPARATOR=':'
> PERL='perl'
> PROFILE_GEN_CFLAGS='-GL -Gw'
> PROFILE_GEN_LDFLAGS='-LTCG:PGINSTRUMENT'
> PROFILE_USE_CFLAGS='-GL -wd4624 -wd4952 -Gw'
> PROFILE_USE_LDFLAGS='-LTCG:PGUPDATE'
> PR_MD_ARCH_DIR='windows'
> PR_MD_ASFILES=''
> PR_MD_CSRCS=''
> RANLIB='echo not_ranlib'
> RC='rc.exe'
> RCFLAGS=''
> RELEASE_OBJDIR_NAME='WINNT6.2_64_DBG.OBJ'
> RESOLVE_LINK_SYMBOLS='1'
> SHELL='/bin/sh'
> SHELL_OVERRIDE=''
> STRIP='echo not_strip'
> ULTRASPARC_LIBRARY=''
> USE_64='1'
> USE_BTHREADS=''
> USE_CPLUS=''
> USE_IPV6=''
> USE_N32=''
> USE_NSPR_THREADS=''
> USE_PTHREADS=''
> USE_USER_PTHREADS=''
> USE_X32=''
> VISIBILITY_FLAGS=''
> WHOAMI=''
> WINDRES=''
> WRAP_LDFLAGS=''
> WRAP_SYSTEM_INCLUDES=''
> ac_ct_CC=''
> ac_ct_CXX=''
> bindir='${exec_prefix}/bin'
> build='i686-pc-mingw32'
> build_alias=''
> build_cpu='i686'
> build_os='mingw32'
> build_vendor='pc'
> datadir='${datarootdir}'
> datarootdir='${prefix}/share'
> dist_bindir='${dist_prefix}/bin'
> dist_includedir='${dist_prefix}/include/nspr'
> dist_libdir='${dist_prefix}/lib'
> dist_prefix='${MOD_DEPTH}/dist'
> docdir='${datarootdir}/doc/${PACKAGE}'
> dvidir='${docdir}'
> exec_prefix='${prefix}'
> host='i686-pc-mingw32'
> host_alias=''
> host_cpu='i686'
> host_os='mingw32'
> host_vendor='pc'
> htmldir='${docdir}'
> includedir='${prefix}/include/nspr'
> infodir='${datarootdir}/info'
> libdir='${exec_prefix}/lib'
> libexecdir='${exec_prefix}/libexec'
> localedir='${datarootdir}/locale'
> localstatedir='${prefix}/var'
> mandir='${datarootdir}/man'
> oldincludedir='/usr/include'
> pdfdir='${docdir}'
> prefix='/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/dist/Debug'
> program_transform_name='s,x,x,'
> psdir='${docdir}'
> runstatedir='${localstatedir}/run'
> sbindir='${exec_prefix}/sbin'
> sharedstatedir='${prefix}/com'
> sysconfdir='${prefix}/etc'
> target='i686-pc-mingw32'
> target_alias=''
> target_cpu='i686'
> target_os='mingw32'
> target_vendor='pc'
>
> ## ----------- ##
> ## confdefs.h. ##
> ## ----------- ##
>
> /* confdefs.h */
> #define PACKAGE_NAME ""
> #define PACKAGE_TARNAME ""
> #define PACKAGE_VERSION ""
> #define PACKAGE_STRING ""
> #define PACKAGE_BUGREPORT ""
> #define PACKAGE_URL ""
> #define DEBUG 1
> #define XP_PC 1
> #define WIN32 1
> #define _CRT_SECURE_NO_WARNINGS 1
> #define _CRT_NONSTDC_NO_WARNINGS 1
> #define _DEBUG 1
> #define WINNT 1
> #define _AMD64_ 1
>
> configure: exit 0
>
> ----------------------------------------------------------------------------
> I even tried legacy way of building after deleting temp directories:
> $ make nss_build_all
> mkdir -p ./../nspr/WIN954.0_x86_64_64_DBG.OBJ
> cd ./../nspr/WIN954.0_x86_64_64_DBG.OBJ ; \
>         CC="cl" CXX="cl" sh ../configure \
>         --enable-64bit --enable-win32-target=WIN95 \
>         --with-dist-prefix='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ' \
>         --with-dist-includedir='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ/include'
> checking build system type... i686-pc-mingw32
> checking host system type... i686-pc-mingw32
> checking target system type... i686-pc-mingw32
> checking for cl... cl
> configure: WARNING: Unknown version of the Microsoft (R) Manifest Tool.
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config/Makefile
> config.status: creating config/autoconf.mk
> config.status: creating config/nsprincl.mk
> config.status: creating config/nsprincl.sh
> config.status: creating config/nspr-config
> config.status: creating config/nspr.pc
> config.status: creating lib/Makefile
> config.status: creating lib/ds/Makefile
> config.status: creating lib/libc/Makefile
> config.status: creating lib/libc/include/Makefile
> config.status: creating lib/libc/src/Makefile
> config.status: creating lib/tests/Makefile
> config.status: creating pkg/Makefile
> config.status: creating pr/Makefile
> config.status: creating pr/include/Makefile
> config.status: creating pr/include/md/Makefile
> config.status: creating pr/include/obsolete/Makefile
> config.status: creating pr/include/private/Makefile
> config.status: creating pr/src/Makefile
> config.status: creating pr/src/io/Makefile
> config.status: creating pr/src/linking/Makefile
> config.status: creating pr/src/malloc/Makefile
> config.status: creating pr/src/md/Makefile
> config.status: creating pr/src/md/windows/Makefile
> config.status: creating pr/src/memory/Makefile
> config.status: creating pr/src/misc/Makefile
> config.status: creating pr/src/threads/Makefile
> config.status: creating pr/tests/Makefile
> config.status: creating pr/tests/dll/Makefile
> config.status: creating pr/src/threads/combined/Makefile
> config.status: executing default commands
> make -C ./../nspr/WIN954.0_x86_64_64_DBG.OBJ
> make[1]: Entering directory `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ'
> make -C config export
> make[2]: Entering directory `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config'
> cl -Fonow.obj -c      -W3 -nologo -GF -Gy -FS -Od -MD -Zi   -UNDEBUG -DDEBUG_nayak -UWINNT -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDEBUG=1 -DXP_PC=1 -DWIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -D_CRT_NONSTDC_NO_WARNINGS=1 -D_DEBUG=1 -DWIN95=1 -D_PR_GLOBAL_THREADS_ONLY=1 -D_AMD64_=1 -DFORCE_PR_LOG   "/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config/../../config/now.c"
> now.c
> d:/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config/../../config/now.c(6): fatal error C1034: stdio.h: no include path set
> make[2]: *** [now.obj] Error 2
> make[2]: Leaving directory `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config'
> make[1]: *** [export] Error 2
> make[1]: Leaving directory `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ'
> make: *** [build_nspr] Error 2
>
> nayak@svi6w273 /d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nss
>
> nss-3.47-with-nspr-4.23\nss-3.47\nspr\WIN954.0_x86_64_64_DBG.OBJ\config.log:
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by configure, which was
> generated by GNU Autoconf 2.69.  Invocation command line was
>
>   $ ../configure --enable-64bit --enable-win32-target=WIN95 --with-dist-prefix=$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ --with-dist-includedir=$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ/include
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = svi6w273
> uname -m = i686
> uname -r = 1.0.19(0.48/3/2)
> uname -s = MINGW32_NT-6.2
> uname -v = 2016-07-13 17:45
>
> /usr/bin/uname -p = unknown
> /bin/uname -X     = unknown
>
> /bin/arch              = unknown
> /usr/bin/arch -k       = unknown
> /usr/convex/getsysinfo = unknown
> /usr/bin/hostinfo      = unknown
> /bin/machine           = unknown
> /usr/bin/oslevel       = unknown
> /bin/universe          = unknown
>
> PATH: /local/bin
> PATH: /d/apps/nss-prereq/mozilla-build/bin
> PATH: /d/apps/nss-prereq/mozilla-build/kdiff3
> PATH: /d/apps/nss-prereq/mozilla-build/nsis-3.01
> PATH: /d/apps/nss-prereq/mozilla-build/python
> PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
> PATH: /d/apps/nss-prereq/mozilla-build/python3
> PATH: /d/apps/nss-prereq/mozilla-build/python3/Scripts
> PATH: .
> PATH: /usr/local/bin
> PATH: /mingw/bin
> PATH: /bin
> PATH: /d/apps/nss-prereq/mozilla-build/python
> PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
> PATH: /c/apps/MVS15/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64
> PATH: /c/apps/MVS15/Common7/IDE/VC/VCPackages
> PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TestWindow
> PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer
> PATH: /c/apps/MVS15/MSBuild/15.0/bin/Roslyn
> PATH: /c/apps/MVS15/Team Tools/Performance Tools/x64
> PATH: /c/apps/MVS15/Team Tools/Performance Tools
> PATH: /c/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/x64
> PATH: /c/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/
> PATH: /c/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX 4.6.1 Tools/x64/
> PATH: /c/Program Files (x86)/HTML Help Workshop
> PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64
> PATH: /c/Program Files (x86)/Windows Kits/10/bin/x64
> PATH: /c/apps/MVS15/MSBuild/15.0/bin
> PATH: /c/Windows/Microsoft.NET/Framework64/v4.0.30319
> PATH: /c/apps/MVS15/Common7/IDE/
> PATH: /c/apps/MVS15/Common7/Tools/
> PATH: /c/ProgramData/Oracle/Java/javapath
> PATH: /c/windows/system32
> PATH: /c/windows
> PATH: /c/windows/System32/Wbem
> PATH: /c/windows/System32/WindowsPowerShell/v1.0/
> PATH: /c/Program Files/Microsoft/Web Platform Installer/
> PATH: /c/Program Files (x86)/Microsoft ASP.NET/ASP.NET Web Pages/v1.0/
> PATH: /c/Program Files/Microsoft SQL Server/110/Tools/Binn/
> PATH: /c/Users/nayak/.dnx/bin
> PATH: /c/Program Files/Microsoft DNX/Dnvm/
> PATH: /c/Program Files/Microsoft SQL Server/120/Tools/Binn/
> PATH: /d/apps/nss-prereq/Git/cmd
> PATH: /c/Users/nayak/AppData/Local/Microsoft/WindowsApps
> PATH: .
> PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin
> PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja
> PATH: /d/apps/nss-prereq/Git/cmd/
>
>
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
>
> configure:2381: checking build system type
> configure:2395: result: i686-pc-mingw32
> configure:2415: checking host system type
> configure:2428: result: i686-pc-mingw32
> configure:2448: checking target system type
> configure:2461: result: i686-pc-mingw32
> configure:2541: checking for cl
> configure:2568: result: cl
> configure:5849: cl -c   conftest.c >&5
> conftest.c
> conftest.c(14): error C2065: '__thumb2__': undeclared identifier
> Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25017 for x64
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
> configure:5849: $? = 2
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define DEBUG 1
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> | return sizeof(__thumb2__);
> |   ;
> |   return 0;
> | }
> configure:6928: WARNING: Unknown version of the Microsoft (R) Manifest Tool.
> configure:8531: creating ./config.status
>
> ## ---------------------- ##
> ## Running config.status. ##
> ## ---------------------- ##
>
> This file was extended by config.status, which was
> generated by GNU Autoconf 2.69.  Invocation command line was
>
>   CONFIG_FILES    =
>   CONFIG_HEADERS  =
>   CONFIG_LINKS    =
>   CONFIG_COMMANDS =
>   $ ./config.status
>
> on svi6w273
>
> config.status:835: creating Makefile
> config.status:835: creating config/Makefile
> config.status:835: creating config/autoconf.mk
> config.status:835: creating config/nsprincl.mk
> config.status:835: creating config/nsprincl.sh
> config.status:835: creating config/nspr-config
> config.status:835: creating config/nspr.pc
> config.status:835: creating lib/Makefile
> config.status:835: creating lib/ds/Makefile
> config.status:835: creating lib/libc/Makefile
> config.status:835: creating lib/libc/include/Makefile
> config.status:835: creating lib/libc/src/Makefile
> config.status:835: creating lib/tests/Makefile
> config.status:835: creating pkg/Makefile
> config.status:835: creating pr/Makefile
> config.status:835: creating pr/include/Makefile
> config.status:835: creating pr/include/md/Makefile
> config.status:835: creating pr/include/obsolete/Makefile
> config.status:835: creating pr/include/private/Makefile
> config.status:835: creating pr/src/Makefile
> config.status:835: creating pr/src/io/Makefile
> config.status:835: creating pr/src/linking/Makefile
> config.status:835: creating pr/src/malloc/Makefile
> config.status:835: creating pr/src/md/Makefile
> config.status:835: creating pr/src/md/windows/Makefile
> config.status:835: creating pr/src/memory/Makefile
> config.status:835: creating pr/src/misc/Makefile
> config.status:835: creating pr/src/threads/Makefile
> config.status:835: creating pr/tests/Makefile
> config.status:835: creating pr/tests/dll/Makefile
> config.status:835: creating pr/src/threads/combined/Makefile
> config.status:981: executing default commands
>
> ## ---------------- ##
> ## Cache variables. ##
> ## ---------------- ##
>
> ac_cv_build=i686-pc-mingw32
> ac_cv_env_CCC_set=
> ac_cv_env_CCC_value=
> ac_cv_env_CC_set=set
> ac_cv_env_CC_value=cl
> ac_cv_env_CFLAGS_set=
> ac_cv_env_CFLAGS_value=
> ac_cv_env_CPPFLAGS_set=
> ac_cv_env_CPPFLAGS_value=
> ac_cv_env_CPP_set=
> ac_cv_env_CPP_value=
> ac_cv_env_CXXFLAGS_set=
> ac_cv_env_CXXFLAGS_value=
> ac_cv_env_CXX_set=set
> ac_cv_env_CXX_value=cl
> ac_cv_env_LDFLAGS_set=
> ac_cv_env_LDFLAGS_value=
> ac_cv_env_LIBS_set=
> ac_cv_env_LIBS_value=
> ac_cv_env_build_alias_set=
> ac_cv_env_build_alias_value=
> ac_cv_env_host_alias_set=
> ac_cv_env_host_alias_value=
> ac_cv_env_target_alias_set=
> ac_cv_env_target_alias_value=
> ac_cv_host=i686-pc-mingw32
> ac_cv_prog_CC=cl
> ac_cv_target=i686-pc-mingw32
>
> ## ----------------- ##
> ## Output variables. ##
> ## ----------------- ##
>
> AIX_LINK_OPTS=''
> AR='lib -NOLOGO -OUT:"$@"'
> AR_FLAGS=''
> AS='$(CC)'
> ASFLAGS='$(CFLAGS)'
> ASM_SUFFIX='s'
> CC='cl'
> CCACHE=''
> CFLAGS=' -W3 -nologo -GF -Gy -FS -Od -MD -Zi'
> CPP=''
> CPPFLAGS=''
> CPU_ARCH='x86'
> CROSS_COMPILE=''
> CXX='cl'
> CXXFLAGS=' -Zi'
> CYGWIN_WRAPPER=''
> DEFINES=' -UNDEBUG -DDEBUG_nayak -UWINNT'
> DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDEBUG=1 -DXP_PC=1 -DWIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -D_CRT_NONSTDC_NO_WARNINGS=1 -D_DEBUG=1 -DWIN95=1 -D_PR_GLOBAL_THREADS_ONLY=1 -D_AMD64_=1'
> DLLFLAGS=' -DYNAMICBASE -OUT:"$@" -DEBUG'
> DLL_SUFFIX='dll'
> DSO_CFLAGS=''
> DSO_LDOPTS=''
> ECHO_C=''
> ECHO_N='-n'
> ECHO_T=''
> EGREP=''
> ENABLE_STRIP=''
> EXEEXT=''
> EXEFLAGS=''
> FILTER=''
> GCC_USE_GNU_LD=''
> GNU_CC=''
> GREP=''
> HOST_CC=''
> HOST_CFLAGS=''
> HOST_LDFLAGS=''
> IMPLIB=''
> LD='link'
> LDFLAGS=' -DEBUG'
> LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
> LIBOBJS=''
> LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
> LIBS=''
> LIB_SUFFIX='lib'
> LTLIBOBJS=''
> MACOSX_DEPLOYMENT_TARGET=''
> MACOS_SDK_DIR=''
> MDCPUCFG_H='_win95.cfg'
> MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
> MOD_MAJOR_VERSION='4'
> MOD_MINOR_VERSION='23'
> MOD_PATCH_VERSION='0'
> MOZILLA_CLIENT=''
> MOZ_DEBUG='1'
> MOZ_DEBUG_SYMBOLS='1'
> MOZ_OBJFORMAT=''
> MOZ_OPTIMIZE=''
> MSC_VER='1910'
> MT='mt'
> NEXT_ROOT=''
> NOSUCHFILE='/no-such-file'
> NSINSTALL='nsinstall'
> NSPR_MODNAME='nspr20'
> OBJDIR='$(OBJDIR_NAME)'
> OBJDIR_NAME='.'
> OBJECT_MODE=''
> OBJEXT=''
> OBJ_SUFFIX='obj'
> OPTIMIZER=''
> OS_ARCH='WINNT'
> OS_DLLFLAGS='-nologo -DLL -SUBSYSTEM:WINDOWS'
> OS_LIBS=' '
> OS_RELEASE='4.0'
> OS_TARGET='WIN95'
> OS_TEST='i686'
> PACKAGE_BUGREPORT=''
> PACKAGE_NAME=''
> PACKAGE_STRING=''
> PACKAGE_TARNAME=''
> PACKAGE_URL=''
> PACKAGE_VERSION=''
> PATH_SEPARATOR=':'
> PERL='perl'
> PROFILE_GEN_CFLAGS='-GL -Gw'
> PROFILE_GEN_LDFLAGS='-LTCG:PGINSTRUMENT'
> PROFILE_USE_CFLAGS='-GL -wd4624 -wd4952 -Gw'
> PROFILE_USE_LDFLAGS='-LTCG:PGUPDATE'
> PR_MD_ARCH_DIR='windows'
> PR_MD_ASFILES=''
> PR_MD_CSRCS=''
> RANLIB='echo not_ranlib'
> RC='rc.exe'
> RCFLAGS=''
> RELEASE_OBJDIR_NAME='WIN954.0_64_DBG.OBJ'
> RESOLVE_LINK_SYMBOLS='1'
> SHELL='/bin/sh'
> SHELL_OVERRIDE=''
> STRIP='echo not_strip'
> ULTRASPARC_LIBRARY=''
> USE_64='1'
> USE_BTHREADS=''
> USE_CPLUS=''
> USE_IPV6=''
> USE_N32=''
> USE_NSPR_THREADS=''
> USE_PTHREADS=''
> USE_USER_PTHREADS=''
> USE_X32=''
> VISIBILITY_FLAGS=''
> WHOAMI=''
> WINDRES=''
> WRAP_LDFLAGS=''
> WRAP_SYSTEM_INCLUDES=''
> ac_ct_CC=''
> ac_ct_CXX=''
> bindir='${exec_prefix}/bin'
> build='i686-pc-mingw32'
> build_alias=''
> build_cpu='i686'
> build_os='mingw32'
> build_vendor='pc'
> datadir='${datarootdir}'
> datarootdir='${prefix}/share'
> dist_bindir='${dist_prefix}/bin'
> dist_includedir='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ/include'
> dist_libdir='${dist_prefix}/lib'
> dist_prefix='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ'
> docdir='${datarootdir}/doc/${PACKAGE}'
> dvidir='${docdir}'
> exec_prefix='${prefix}'
> host='i686-pc-mingw32'
> host_alias=''
> host_cpu='i686'
> host_os='mingw32'
> host_vendor='pc'
> htmldir='${docdir}'
> includedir='${prefix}/include/nspr'
> infodir='${datarootdir}/info'
> libdir='${exec_prefix}/lib'
> libexecdir='${exec_prefix}/libexec'
> localedir='${datarootdir}/locale'
> localstatedir='${prefix}/var'
> mandir='${datarootdir}/man'
> oldincludedir='/usr/include'
> pdfdir='${docdir}'
> prefix='/usr/local'
> program_transform_name='s,x,x,'
> psdir='${docdir}'
> runstatedir='${localstatedir}/run'
> sbindir='${exec_prefix}/sbin'
> sharedstatedir='${prefix}/com'
> sysconfdir='${prefix}/etc'
> target='i686-pc-mingw32'
> target_alias=''
> target_cpu='i686'
> target_os='mingw32'
> target_vendor='pc'
>
> ## ----------- ##
> ## confdefs.h. ##
> ## ----------- ##
>
> /* confdefs.h */
> #define PACKAGE_NAME ""
> #define PACKAGE_TARNAME ""
> #define PACKAGE_VERSION ""
> #define PACKAGE_STRING ""
> #define PACKAGE_BUGREPORT ""
> #define PACKAGE_URL ""
> #define DEBUG 1
> #define XP_PC 1
> #define WIN32 1
> #define _CRT_SECURE_NO_WARNINGS 1
> #define _CRT_NONSTDC_NO_WARNINGS 1
> #define _DEBUG 1
> #define WIN95 1
> #define _PR_GLOBAL_THREADS_ONLY 1
> #define _AMD64_ 1
>
> configure: exit 0
>
>
> Any help greatly appreciated.
>
> Thanks..

It came to my notice, that if I modify “start-shell.bat” file and disable below two env. variables in start_shell.bat : 

    REM SET INCLUDE=
    REM SET LIB=

Execute “start-shell.bat”.

and then build nss in legacy way via 'make nss_build_all' , Build is successful.

However we are noticing that nspr4.dll,plc4.dll,plds4.dll under 'WIN954.0_x86_64_64_DBG.OBJ\lib\ don't have lib prefix. Is that expected ? When we had built 3.42.1, via build.sh we noticed,   libnspr4.dll,libplc4.dll,libplds4.dll 

I'm very confused in regards to building NSS on windows and looking for guidance.

Please help ..

Thanks..
Usha
--
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Reply | Threaded
Open this post in threaded view
|

Re: NSS 3.47.1 build fail on windows

Martin Thomson
You shouldn't need to start the mozilla-build shell from within a VS
shell.  Our build uses vswhere and the registry to find the necessary
pieces.  That might be where things are going awry.

From looking at your output, you might want to check this path:
"/c/apps/MVS15/VC/Tools/MSVC/14.10.25017 /", which appears to have a
trailing space in our build output.  That comes from
${VCINSTALLDIR}/Auxiliary/Build/Microsoft.VCToolsVersion.default.txt so
maybe our script is failing to prune out a trailing space or an extra empty
line from that file.  If that file has been modified manually, or we have
an errant carriage return or something like that, then we might need to
make some changes to ensure that we don't catch that.  (We use 'cat', but
we could use 'head -1' instead.)

If that fails, then you help by sharing the output of:

(export target_arch=x64; bash -x ..../coreconf/msvc.sh)

There will be a lot of paths listed.  You could help by seeing which of
those, if any, don't exist.  Most should.  It's possible however that the
script is failing to find something important.

On Sat, Dec 21, 2019 at 4:20 AM Usha Nayak <[hidden email]> wrote:

> On Wednesday, December 11, 2019 at 9:28:17 AM UTC-6, Usha Nayak wrote:
> > Hello,
> >
> > I'm trying to build NSS in debug mode ( I'm assuming if I don't set
> BUILD_OPT=1, default will be debug? ). I gathered from googling, to debug
> NSS, you need to set following env variables, but for that to work I would
> need to build NSS in debug mode:
> > > $ export NSPR_LOG_MODULES="all:5"
> > > $ export NSPR_LOG_FILE="/tmp/pkcs11.log"
> > > $ export NSS_DEBUG_PKCS11_MODULE="NSS Internal PKCS #11 Module"
> >
> >
> > Unfortunately, I have problem building NSS on windows. Since, I wasn't
> able to quite understand what the pre-reqs are for NSS from mozilla site, I
> ended up googling for that as well. Hopefully, this is the right approach.
> >
> > Here's what I did :
> > installed mozillabuild (v3.3)
> > installed gitbash
> > installed gyp
> > got ninja ( not sure if I even need this, regardless copied over
> ninja.exe to mozilla-build\python\Scripts)
> > downloaded nss-3.47-with-nspr-4.23 - unzipped
> >
> > Start->VS2017 -> launched 'x64 native Tools Command Prompt for VS2017'
> > **********************************************************************
> > ** Visual Studio 2017 Developer Command Prompt v15.9.13
> > ** Copyright (c) 2017 Microsoft Corporation
> > **********************************************************************
> > [vcvarsall.bat] Environment initialized for: 'x64'
> >
> > c:\apps\MVS15>set
> PATH=D:\apps\nss-prereq\mozilla-build\python;D:\apps\nss-prereq\mozilla-build\python\Scripts;%PATH%
> > c:\apps\MVS15>set MOZ_NO_RESET_PATH=1
> > c:\apps\MVS15>echo %PATH%
> >
> D:\apps\nss-prereq\mozilla-build\python;D:\apps\nss-prereq\mozilla-build\python\Scripts;c:\apps\MVS15\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64;c:\apps\MVS15\Common7\IDE\VC\VCPackages;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\TestWindow;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team
> Explorer;c:\apps\MVS15\MSBuild\15.0\bin\Roslyn;c:\apps\MVS15\Team
> Tools\Performance Tools\x64;c:\apps\MVS15\Team Tools\Performance
> Tools;C:\Program Files (x86)\Microsoft Visual
> Studio\Shared\Common\VSPerfCollectionTools\\x64;C:\Program Files
> (x86)\Microsoft Visual
> Studio\Shared\Common\VSPerfCollectionTools\;C:\Program Files
> (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;C:\Program
> Files (x86)\HTML Help Workshop;C:\Program Files (x86)\Windows
> Kits\10\bin\10.0.17763.0\x64;C:\Program Files (x86)\Windows
> Kits\10\bin\x64;c:\apps\MVS15\\MSBuild\15.0\bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;c:\apps\MVS15\Common7\IDE\;c:\apps\MVS15\Common7\Tools\;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program
> Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft
> ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL
> Server\110\Tools\Binn\;C:\Users\nayak\.dnx\bin;C:\Program Files\Microsoft
> DNX\Dnvm\;C:\Program Files\Microsoft SQL
> Server\120\Tools\Binn\;D:\apps\nss-prereq\Git\cmd;C:\Users\nayak\AppData\Local\Microsoft\WindowsApps;;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;c:\apps\MVS15\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja
> > c:\apps\MVS15>cd D:\apps\nss-prereq\mozilla-build
> >
> > c:\apps\MVS15>D:
> >
> > c:\apps\MVS15>cd D:\apps\nss-prereq\mozilla-build
> >
> > c:\apps\MVS15>D:
> >
> > D:\apps\nss-prereq\mozilla-build>start-shell.bat
> > MozillaBuild Install Directory: D:\apps\nss-prereq\mozilla-build\
> >
> > nayak@svi6w273 ~
> > $ export USE_64=1
> >
> > nayak@svi6w273 ~
> > $ export NSS_DISABLE_GTESTS=1
> > nayak@svi6w273 /d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nss
> > $ ./build.sh
> > NSPR [1/5] configure ...
> > NSPR [2/5] make ...
> >
> > nayak@svi6w273 /d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nss
> >
> >
> > nss-3.47-with-nspr-4.23\nss-3.47\nspr\Debug\config.log based on build.sh
> :
> > This file contains any messages produced by compilers while
> > running configure, to aid debugging if configure makes a mistake.
> >
> > It was created by configure, which was
> > generated by GNU Autoconf 2.69.  Invocation command line was
> >
> >   $ ../configure
> --prefix=/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/dist/Debug
> --enable-64bit
> >
> > ## --------- ##
> > ## Platform. ##
> > ## --------- ##
> >
> > hostname = svi6w273
> > uname -m = i686
> > uname -r = 1.0.19(0.48/3/2)
> > uname -s = MINGW32_NT-6.2
> > uname -v = 2016-07-13 17:45
> >
> > /usr/bin/uname -p = unknown
> > /bin/uname -X     = unknown
> >
> > /bin/arch              = unknown
> > /usr/bin/arch -k       = unknown
> > /usr/convex/getsysinfo = unknown
> > /usr/bin/hostinfo      = unknown
> > /bin/machine           = unknown
> > /usr/bin/oslevel       = unknown
> > /bin/universe          = unknown
> >
> > PATH: /local/bin
> > PATH: /d/apps/nss-prereq/mozilla-build/bin
> > PATH: /d/apps/nss-prereq/mozilla-build/kdiff3
> > PATH: /d/apps/nss-prereq/mozilla-build/nsis-3.01
> > PATH: /d/apps/nss-prereq/mozilla-build/python
> > PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
> > PATH: /d/apps/nss-prereq/mozilla-build/python3
> > PATH: /d/apps/nss-prereq/mozilla-build/python3/Scripts
> > PATH: .
> > PATH: /usr/local/bin
> > PATH: /mingw/bin
> > PATH: /bin
> > PATH: /d/apps/nss-prereq/mozilla-build/python
> > PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
> > PATH: /c/apps/MVS15/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64
> > PATH: /c/apps/MVS15/Common7/IDE/VC/VCPackages
> > PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TestWindow
> > PATH:
> /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team
> Explorer
> > PATH: /c/apps/MVS15/MSBuild/15.0/bin/Roslyn
> > PATH: /c/apps/MVS15/Team Tools/Performance Tools/x64
> > PATH: /c/apps/MVS15/Team Tools/Performance Tools
> > PATH: /c/Program Files (x86)/Microsoft Visual
> Studio/Shared/Common/VSPerfCollectionTools/x64
> > PATH: /c/Program Files (x86)/Microsoft Visual
> Studio/Shared/Common/VSPerfCollectionTools/
> > PATH: /c/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX
> 4.6.1 Tools/x64/
> > PATH: /c/Program Files (x86)/HTML Help Workshop
> > PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64
> > PATH: /c/Program Files (x86)/Windows Kits/10/bin/x64
> > PATH: /c/apps/MVS15/MSBuild/15.0/bin
> > PATH: /c/Windows/Microsoft.NET/Framework64/v4.0.30319
> > PATH: /c/apps/MVS15/Common7/IDE/
> > PATH: /c/apps/MVS15/Common7/Tools/
> > PATH: /c/ProgramData/Oracle/Java/javapath
> > PATH: /c/windows/system32
> > PATH: /c/windows
> > PATH: /c/windows/System32/Wbem
> > PATH: /c/windows/System32/WindowsPowerShell/v1.0/
> > PATH: /c/Program Files/Microsoft/Web Platform Installer/
> > PATH: /c/Program Files (x86)/Microsoft ASP.NET/ASP.NET Web Pages/v1.0/
> > PATH: /c/Program Files/Microsoft SQL Server/110/Tools/Binn/
> > PATH: /c/Users/nayak/.dnx/bin
> > PATH: /c/Program Files/Microsoft DNX/Dnvm/
> > PATH: /c/Program Files/Microsoft SQL Server/120/Tools/Binn/
> > PATH: /d/apps/nss-prereq/Git/cmd
> > PATH: /c/Users/nayak/AppData/Local/Microsoft/WindowsApps
> > PATH: .
> > PATH:
> /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin
> > PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja
> > PATH: /d/apps/nss-prereq/Git/cmd/
> > PATH: /c/apps/MVS15/VC/Tools/MSVC/14.10.25017 /bin/Hostx64/x64
> > PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64
> > PATH: /c/apps/MVS15/VC/Redist/MSVC/14.10.25017 /x64/Microsoft.VC141.CRT
> >
> >
> > ## ----------- ##
> > ## Core tests. ##
> > ## ----------- ##
> >
> > configure:2381: checking build system type
> > configure:2395: result: i686-pc-mingw32
> > configure:2415: checking host system type
> > configure:2428: result: i686-pc-mingw32
> > configure:2448: checking target system type
> > configure:2461: result: i686-pc-mingw32
> > configure:2541: checking for cl
> > configure:2557: found
> /c/apps/MVS15/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl
> > configure:2568: result: cl
> > configure:5849: cl -c   conftest.c >&5
> > conftest.c
> > conftest.c(14): error C2065: '__thumb2__': undeclared identifier
> > Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25017 for x64
> > Copyright (C) Microsoft Corporation.  All rights reserved.
> >
> > configure:5849: $? = 2
> > configure: failed program was:
> > | /* confdefs.h */
> > | #define PACKAGE_NAME ""
> > | #define PACKAGE_TARNAME ""
> > | #define PACKAGE_VERSION ""
> > | #define PACKAGE_STRING ""
> > | #define PACKAGE_BUGREPORT ""
> > | #define PACKAGE_URL ""
> > | #define DEBUG 1
> > | /* end confdefs.h.  */
> > |
> > | int
> > | main ()
> > | {
> > | return sizeof(__thumb2__);
> > |   ;
> > |   return 0;
> > | }
> > configure:6928: WARNING: Unknown version of the Microsoft (R) Manifest
> Tool.
> > configure:8531: creating ./config.status
> >
> > ## ---------------------- ##
> > ## Running config.status. ##
> > ## ---------------------- ##
> >
> > This file was extended by config.status, which was
> > generated by GNU Autoconf 2.69.  Invocation command line was
> >
> >   CONFIG_FILES    =
> >   CONFIG_HEADERS  =
> >   CONFIG_LINKS    =
> >   CONFIG_COMMANDS =
> >   $ ./config.status
> >
> > on svi6w273
> >
> > config.status:835: creating Makefile
> > config.status:835: creating config/Makefile
> > config.status:835: creating config/autoconf.mk
> > config.status:835: creating config/nsprincl.mk
> > config.status:835: creating config/nsprincl.sh
> > config.status:835: creating config/nspr-config
> > config.status:835: creating config/nspr.pc
> > config.status:835: creating lib/Makefile
> > config.status:835: creating lib/ds/Makefile
> > config.status:835: creating lib/libc/Makefile
> > config.status:835: creating lib/libc/include/Makefile
> > config.status:835: creating lib/libc/src/Makefile
> > config.status:835: creating lib/tests/Makefile
> > config.status:835: creating pkg/Makefile
> > config.status:835: creating pr/Makefile
> > config.status:835: creating pr/include/Makefile
> > config.status:835: creating pr/include/md/Makefile
> > config.status:835: creating pr/include/obsolete/Makefile
> > config.status:835: creating pr/include/private/Makefile
> > config.status:835: creating pr/src/Makefile
> > config.status:835: creating pr/src/io/Makefile
> > config.status:835: creating pr/src/linking/Makefile
> > config.status:835: creating pr/src/malloc/Makefile
> > config.status:835: creating pr/src/md/Makefile
> > config.status:835: creating pr/src/md/windows/Makefile
> > config.status:835: creating pr/src/memory/Makefile
> > config.status:835: creating pr/src/misc/Makefile
> > config.status:835: creating pr/src/threads/Makefile
> > config.status:835: creating pr/tests/Makefile
> > config.status:835: creating pr/tests/dll/Makefile
> > config.status:835: creating pr/src/threads/combined/Makefile
> > config.status:981: executing default commands
> >
> > ## ---------------- ##
> > ## Cache variables. ##
> > ## ---------------- ##
> >
> > ac_cv_build=i686-pc-mingw32
> > ac_cv_env_CCC_set=
> > ac_cv_env_CCC_value=
> > ac_cv_env_CC_set=set
> > ac_cv_env_CC_value=
> > ac_cv_env_CFLAGS_set=set
> > ac_cv_env_CFLAGS_value=' '
> > ac_cv_env_CPPFLAGS_set=
> > ac_cv_env_CPPFLAGS_value=
> > ac_cv_env_CPP_set=
> > ac_cv_env_CPP_value=
> > ac_cv_env_CXXFLAGS_set=set
> > ac_cv_env_CXXFLAGS_value=' '
> > ac_cv_env_CXX_set=set
> > ac_cv_env_CXX_value=
> > ac_cv_env_LDFLAGS_set=set
> > ac_cv_env_LDFLAGS_value=' '
> > ac_cv_env_LIBS_set=
> > ac_cv_env_LIBS_value=
> > ac_cv_env_build_alias_set=
> > ac_cv_env_build_alias_value=
> > ac_cv_env_host_alias_set=
> > ac_cv_env_host_alias_value=
> > ac_cv_env_target_alias_set=
> > ac_cv_env_target_alias_value=
> > ac_cv_host=i686-pc-mingw32
> > ac_cv_prog_CC=cl
> > ac_cv_target=i686-pc-mingw32
> >
> > ## ----------------- ##
> > ## Output variables. ##
> > ## ----------------- ##
> >
> > AIX_LINK_OPTS=''
> > AR='lib -NOLOGO -OUT:"$@"'
> > AR_FLAGS=''
> > AS='$(CC)'
> > ASFLAGS='$(CFLAGS)'
> > ASM_SUFFIX='s'
> > CC='cl'
> > CCACHE=''
> > CFLAGS='  -W3 -nologo -GF -Gy -FS -Od -MD -GT -Zi'
> > CPP=''
> > CPPFLAGS=''
> > CPU_ARCH='x86'
> > CROSS_COMPILE=''
> > CXX='cl'
> > CXXFLAGS='  -Zi'
> > CYGWIN_WRAPPER=''
> > DEFINES=' -UNDEBUG -DDEBUG_nayak'
> > DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDEBUG=1
> -DXP_PC=1 -DWIN32=1 -D_CRT_SECURE_NO_WARNINGS=1
> -D_CRT_NONSTDC_NO_WARNINGS=1 -D_DEBUG=1 -DWINNT=1 -D_AMD64_=1'
> > DLLFLAGS=' -DYNAMICBASE -OUT:"$@" -DEBUG'
> > DLL_SUFFIX='dll'
> > DSO_CFLAGS=''
> > DSO_LDOPTS=''
> > ECHO_C=''
> > ECHO_N='-n'
> > ECHO_T=''
> > EGREP=''
> > ENABLE_STRIP=''
> > EXEEXT=''
> > EXEFLAGS=''
> > FILTER=''
> > GCC_USE_GNU_LD=''
> > GNU_CC=''
> > GREP=''
> > HOST_CC=''
> > HOST_CFLAGS=''
> > HOST_LDFLAGS=''
> > IMPLIB=''
> > LD='link'
> > LDFLAGS='  -DEBUG'
> > LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
> > LIBOBJS=''
> > LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
> > LIBS=''
> > LIB_SUFFIX='lib'
> > LTLIBOBJS=''
> > MACOSX_DEPLOYMENT_TARGET=''
> > MACOS_SDK_DIR=''
> > MDCPUCFG_H='_winnt.cfg'
> > MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
> > MOD_MAJOR_VERSION='4'
> > MOD_MINOR_VERSION='23'
> > MOD_PATCH_VERSION='0'
> > MOZILLA_CLIENT=''
> > MOZ_DEBUG='1'
> > MOZ_DEBUG_SYMBOLS='1'
> > MOZ_OBJFORMAT=''
> > MOZ_OPTIMIZE=''
> > MSC_VER='1910'
> > MT='mt'
> > NEXT_ROOT=''
> > NOSUCHFILE='/no-such-file'
> > NSINSTALL='nsinstall'
> > NSPR_MODNAME='nspr20'
> > OBJDIR='$(OBJDIR_NAME)'
> > OBJDIR_NAME='.'
> > OBJECT_MODE=''
> > OBJEXT=''
> > OBJ_SUFFIX='obj'
> > OPTIMIZER=''
> > OS_ARCH='WINNT'
> > OS_DLLFLAGS='-nologo -DLL -SUBSYSTEM:WINDOWS'
> > OS_LIBS=' '
> > OS_RELEASE='6.2'
> > OS_TARGET='WINNT'
> > OS_TEST='i686'
> > PACKAGE_BUGREPORT=''
> > PACKAGE_NAME=''
> > PACKAGE_STRING=''
> > PACKAGE_TARNAME=''
> > PACKAGE_URL=''
> > PACKAGE_VERSION=''
> > PATH_SEPARATOR=':'
> > PERL='perl'
> > PROFILE_GEN_CFLAGS='-GL -Gw'
> > PROFILE_GEN_LDFLAGS='-LTCG:PGINSTRUMENT'
> > PROFILE_USE_CFLAGS='-GL -wd4624 -wd4952 -Gw'
> > PROFILE_USE_LDFLAGS='-LTCG:PGUPDATE'
> > PR_MD_ARCH_DIR='windows'
> > PR_MD_ASFILES=''
> > PR_MD_CSRCS=''
> > RANLIB='echo not_ranlib'
> > RC='rc.exe'
> > RCFLAGS=''
> > RELEASE_OBJDIR_NAME='WINNT6.2_64_DBG.OBJ'
> > RESOLVE_LINK_SYMBOLS='1'
> > SHELL='/bin/sh'
> > SHELL_OVERRIDE=''
> > STRIP='echo not_strip'
> > ULTRASPARC_LIBRARY=''
> > USE_64='1'
> > USE_BTHREADS=''
> > USE_CPLUS=''
> > USE_IPV6=''
> > USE_N32=''
> > USE_NSPR_THREADS=''
> > USE_PTHREADS=''
> > USE_USER_PTHREADS=''
> > USE_X32=''
> > VISIBILITY_FLAGS=''
> > WHOAMI=''
> > WINDRES=''
> > WRAP_LDFLAGS=''
> > WRAP_SYSTEM_INCLUDES=''
> > ac_ct_CC=''
> > ac_ct_CXX=''
> > bindir='${exec_prefix}/bin'
> > build='i686-pc-mingw32'
> > build_alias=''
> > build_cpu='i686'
> > build_os='mingw32'
> > build_vendor='pc'
> > datadir='${datarootdir}'
> > datarootdir='${prefix}/share'
> > dist_bindir='${dist_prefix}/bin'
> > dist_includedir='${dist_prefix}/include/nspr'
> > dist_libdir='${dist_prefix}/lib'
> > dist_prefix='${MOD_DEPTH}/dist'
> > docdir='${datarootdir}/doc/${PACKAGE}'
> > dvidir='${docdir}'
> > exec_prefix='${prefix}'
> > host='i686-pc-mingw32'
> > host_alias=''
> > host_cpu='i686'
> > host_os='mingw32'
> > host_vendor='pc'
> > htmldir='${docdir}'
> > includedir='${prefix}/include/nspr'
> > infodir='${datarootdir}/info'
> > libdir='${exec_prefix}/lib'
> > libexecdir='${exec_prefix}/libexec'
> > localedir='${datarootdir}/locale'
> > localstatedir='${prefix}/var'
> > mandir='${datarootdir}/man'
> > oldincludedir='/usr/include'
> > pdfdir='${docdir}'
> > prefix='/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/dist/Debug'
> > program_transform_name='s,x,x,'
> > psdir='${docdir}'
> > runstatedir='${localstatedir}/run'
> > sbindir='${exec_prefix}/sbin'
> > sharedstatedir='${prefix}/com'
> > sysconfdir='${prefix}/etc'
> > target='i686-pc-mingw32'
> > target_alias=''
> > target_cpu='i686'
> > target_os='mingw32'
> > target_vendor='pc'
> >
> > ## ----------- ##
> > ## confdefs.h. ##
> > ## ----------- ##
> >
> > /* confdefs.h */
> > #define PACKAGE_NAME ""
> > #define PACKAGE_TARNAME ""
> > #define PACKAGE_VERSION ""
> > #define PACKAGE_STRING ""
> > #define PACKAGE_BUGREPORT ""
> > #define PACKAGE_URL ""
> > #define DEBUG 1
> > #define XP_PC 1
> > #define WIN32 1
> > #define _CRT_SECURE_NO_WARNINGS 1
> > #define _CRT_NONSTDC_NO_WARNINGS 1
> > #define _DEBUG 1
> > #define WINNT 1
> > #define _AMD64_ 1
> >
> > configure: exit 0
> >
> >
> ----------------------------------------------------------------------------
> > I even tried legacy way of building after deleting temp directories:
> > $ make nss_build_all
> > mkdir -p ./../nspr/WIN954.0_x86_64_64_DBG.OBJ
> > cd ./../nspr/WIN954.0_x86_64_64_DBG.OBJ ; \
> >         CC="cl" CXX="cl" sh ../configure \
> >         --enable-64bit --enable-win32-target=WIN95 \
> >
>  --with-dist-prefix='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ' \
> >
>  --with-dist-includedir='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ/include'
> > checking build system type... i686-pc-mingw32
> > checking host system type... i686-pc-mingw32
> > checking target system type... i686-pc-mingw32
> > checking for cl... cl
> > configure: WARNING: Unknown version of the Microsoft (R) Manifest Tool.
> > configure: creating ./config.status
> > config.status: creating Makefile
> > config.status: creating config/Makefile
> > config.status: creating config/autoconf.mk
> > config.status: creating config/nsprincl.mk
> > config.status: creating config/nsprincl.sh
> > config.status: creating config/nspr-config
> > config.status: creating config/nspr.pc
> > config.status: creating lib/Makefile
> > config.status: creating lib/ds/Makefile
> > config.status: creating lib/libc/Makefile
> > config.status: creating lib/libc/include/Makefile
> > config.status: creating lib/libc/src/Makefile
> > config.status: creating lib/tests/Makefile
> > config.status: creating pkg/Makefile
> > config.status: creating pr/Makefile
> > config.status: creating pr/include/Makefile
> > config.status: creating pr/include/md/Makefile
> > config.status: creating pr/include/obsolete/Makefile
> > config.status: creating pr/include/private/Makefile
> > config.status: creating pr/src/Makefile
> > config.status: creating pr/src/io/Makefile
> > config.status: creating pr/src/linking/Makefile
> > config.status: creating pr/src/malloc/Makefile
> > config.status: creating pr/src/md/Makefile
> > config.status: creating pr/src/md/windows/Makefile
> > config.status: creating pr/src/memory/Makefile
> > config.status: creating pr/src/misc/Makefile
> > config.status: creating pr/src/threads/Makefile
> > config.status: creating pr/tests/Makefile
> > config.status: creating pr/tests/dll/Makefile
> > config.status: creating pr/src/threads/combined/Makefile
> > config.status: executing default commands
> > make -C ./../nspr/WIN954.0_x86_64_64_DBG.OBJ
> > make[1]: Entering directory
> `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ'
> > make -C config export
> > make[2]: Entering directory
> `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config'
> > cl -Fonow.obj -c      -W3 -nologo -GF -Gy -FS -Od -MD -Zi   -UNDEBUG
> -DDEBUG_nayak -UWINNT -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DPACKAGE_URL=\"\" -DDEBUG=1 -DXP_PC=1 -DWIN32=1
> -D_CRT_SECURE_NO_WARNINGS=1 -D_CRT_NONSTDC_NO_WARNINGS=1 -D_DEBUG=1
> -DWIN95=1 -D_PR_GLOBAL_THREADS_ONLY=1 -D_AMD64_=1 -DFORCE_PR_LOG
>  "/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config/../../config/now.c"
> > now.c
> >
> d:/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config/../../config/now.c(6):
> fatal error C1034: stdio.h: no include path set
> > make[2]: *** [now.obj] Error 2
> > make[2]: Leaving directory
> `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ/config'
> > make[1]: *** [export] Error 2
> > make[1]: Leaving directory
> `/d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nspr/WIN954.0_x86_64_64_DBG.OBJ'
> > make: *** [build_nspr] Error 2
> >
> > nayak@svi6w273 /d/apps/nss-prereq/nss-3.47-with-nspr-4.23/nss-3.47/nss
> >
> >
> nss-3.47-with-nspr-4.23\nss-3.47\nspr\WIN954.0_x86_64_64_DBG.OBJ\config.log:
> > This file contains any messages produced by compilers while
> > running configure, to aid debugging if configure makes a mistake.
> >
> > It was created by configure, which was
> > generated by GNU Autoconf 2.69.  Invocation command line was
> >
> >   $ ../configure --enable-64bit --enable-win32-target=WIN95
> --with-dist-prefix=$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ
> --with-dist-includedir=$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ/include
> >
> > ## --------- ##
> > ## Platform. ##
> > ## --------- ##
> >
> > hostname = svi6w273
> > uname -m = i686
> > uname -r = 1.0.19(0.48/3/2)
> > uname -s = MINGW32_NT-6.2
> > uname -v = 2016-07-13 17:45
> >
> > /usr/bin/uname -p = unknown
> > /bin/uname -X     = unknown
> >
> > /bin/arch              = unknown
> > /usr/bin/arch -k       = unknown
> > /usr/convex/getsysinfo = unknown
> > /usr/bin/hostinfo      = unknown
> > /bin/machine           = unknown
> > /usr/bin/oslevel       = unknown
> > /bin/universe          = unknown
> >
> > PATH: /local/bin
> > PATH: /d/apps/nss-prereq/mozilla-build/bin
> > PATH: /d/apps/nss-prereq/mozilla-build/kdiff3
> > PATH: /d/apps/nss-prereq/mozilla-build/nsis-3.01
> > PATH: /d/apps/nss-prereq/mozilla-build/python
> > PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
> > PATH: /d/apps/nss-prereq/mozilla-build/python3
> > PATH: /d/apps/nss-prereq/mozilla-build/python3/Scripts
> > PATH: .
> > PATH: /usr/local/bin
> > PATH: /mingw/bin
> > PATH: /bin
> > PATH: /d/apps/nss-prereq/mozilla-build/python
> > PATH: /d/apps/nss-prereq/mozilla-build/python/Scripts
> > PATH: /c/apps/MVS15/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64
> > PATH: /c/apps/MVS15/Common7/IDE/VC/VCPackages
> > PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TestWindow
> > PATH:
> /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team
> Explorer
> > PATH: /c/apps/MVS15/MSBuild/15.0/bin/Roslyn
> > PATH: /c/apps/MVS15/Team Tools/Performance Tools/x64
> > PATH: /c/apps/MVS15/Team Tools/Performance Tools
> > PATH: /c/Program Files (x86)/Microsoft Visual
> Studio/Shared/Common/VSPerfCollectionTools/x64
> > PATH: /c/Program Files (x86)/Microsoft Visual
> Studio/Shared/Common/VSPerfCollectionTools/
> > PATH: /c/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX
> 4.6.1 Tools/x64/
> > PATH: /c/Program Files (x86)/HTML Help Workshop
> > PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64
> > PATH: /c/Program Files (x86)/Windows Kits/10/bin/x64
> > PATH: /c/apps/MVS15/MSBuild/15.0/bin
> > PATH: /c/Windows/Microsoft.NET/Framework64/v4.0.30319
> > PATH: /c/apps/MVS15/Common7/IDE/
> > PATH: /c/apps/MVS15/Common7/Tools/
> > PATH: /c/ProgramData/Oracle/Java/javapath
> > PATH: /c/windows/system32
> > PATH: /c/windows
> > PATH: /c/windows/System32/Wbem
> > PATH: /c/windows/System32/WindowsPowerShell/v1.0/
> > PATH: /c/Program Files/Microsoft/Web Platform Installer/
> > PATH: /c/Program Files (x86)/Microsoft ASP.NET/ASP.NET Web Pages/v1.0/
> > PATH: /c/Program Files/Microsoft SQL Server/110/Tools/Binn/
> > PATH: /c/Users/nayak/.dnx/bin
> > PATH: /c/Program Files/Microsoft DNX/Dnvm/
> > PATH: /c/Program Files/Microsoft SQL Server/120/Tools/Binn/
> > PATH: /d/apps/nss-prereq/Git/cmd
> > PATH: /c/Users/nayak/AppData/Local/Microsoft/WindowsApps
> > PATH: .
> > PATH:
> /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin
> > PATH: /c/apps/MVS15/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja
> > PATH: /d/apps/nss-prereq/Git/cmd/
> >
> >
> > ## ----------- ##
> > ## Core tests. ##
> > ## ----------- ##
> >
> > configure:2381: checking build system type
> > configure:2395: result: i686-pc-mingw32
> > configure:2415: checking host system type
> > configure:2428: result: i686-pc-mingw32
> > configure:2448: checking target system type
> > configure:2461: result: i686-pc-mingw32
> > configure:2541: checking for cl
> > configure:2568: result: cl
> > configure:5849: cl -c   conftest.c >&5
> > conftest.c
> > conftest.c(14): error C2065: '__thumb2__': undeclared identifier
> > Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25017 for x64
> > Copyright (C) Microsoft Corporation.  All rights reserved.
> >
> > configure:5849: $? = 2
> > configure: failed program was:
> > | /* confdefs.h */
> > | #define PACKAGE_NAME ""
> > | #define PACKAGE_TARNAME ""
> > | #define PACKAGE_VERSION ""
> > | #define PACKAGE_STRING ""
> > | #define PACKAGE_BUGREPORT ""
> > | #define PACKAGE_URL ""
> > | #define DEBUG 1
> > | /* end confdefs.h.  */
> > |
> > | int
> > | main ()
> > | {
> > | return sizeof(__thumb2__);
> > |   ;
> > |   return 0;
> > | }
> > configure:6928: WARNING: Unknown version of the Microsoft (R) Manifest
> Tool.
> > configure:8531: creating ./config.status
> >
> > ## ---------------------- ##
> > ## Running config.status. ##
> > ## ---------------------- ##
> >
> > This file was extended by config.status, which was
> > generated by GNU Autoconf 2.69.  Invocation command line was
> >
> >   CONFIG_FILES    =
> >   CONFIG_HEADERS  =
> >   CONFIG_LINKS    =
> >   CONFIG_COMMANDS =
> >   $ ./config.status
> >
> > on svi6w273
> >
> > config.status:835: creating Makefile
> > config.status:835: creating config/Makefile
> > config.status:835: creating config/autoconf.mk
> > config.status:835: creating config/nsprincl.mk
> > config.status:835: creating config/nsprincl.sh
> > config.status:835: creating config/nspr-config
> > config.status:835: creating config/nspr.pc
> > config.status:835: creating lib/Makefile
> > config.status:835: creating lib/ds/Makefile
> > config.status:835: creating lib/libc/Makefile
> > config.status:835: creating lib/libc/include/Makefile
> > config.status:835: creating lib/libc/src/Makefile
> > config.status:835: creating lib/tests/Makefile
> > config.status:835: creating pkg/Makefile
> > config.status:835: creating pr/Makefile
> > config.status:835: creating pr/include/Makefile
> > config.status:835: creating pr/include/md/Makefile
> > config.status:835: creating pr/include/obsolete/Makefile
> > config.status:835: creating pr/include/private/Makefile
> > config.status:835: creating pr/src/Makefile
> > config.status:835: creating pr/src/io/Makefile
> > config.status:835: creating pr/src/linking/Makefile
> > config.status:835: creating pr/src/malloc/Makefile
> > config.status:835: creating pr/src/md/Makefile
> > config.status:835: creating pr/src/md/windows/Makefile
> > config.status:835: creating pr/src/memory/Makefile
> > config.status:835: creating pr/src/misc/Makefile
> > config.status:835: creating pr/src/threads/Makefile
> > config.status:835: creating pr/tests/Makefile
> > config.status:835: creating pr/tests/dll/Makefile
> > config.status:835: creating pr/src/threads/combined/Makefile
> > config.status:981: executing default commands
> >
> > ## ---------------- ##
> > ## Cache variables. ##
> > ## ---------------- ##
> >
> > ac_cv_build=i686-pc-mingw32
> > ac_cv_env_CCC_set=
> > ac_cv_env_CCC_value=
> > ac_cv_env_CC_set=set
> > ac_cv_env_CC_value=cl
> > ac_cv_env_CFLAGS_set=
> > ac_cv_env_CFLAGS_value=
> > ac_cv_env_CPPFLAGS_set=
> > ac_cv_env_CPPFLAGS_value=
> > ac_cv_env_CPP_set=
> > ac_cv_env_CPP_value=
> > ac_cv_env_CXXFLAGS_set=
> > ac_cv_env_CXXFLAGS_value=
> > ac_cv_env_CXX_set=set
> > ac_cv_env_CXX_value=cl
> > ac_cv_env_LDFLAGS_set=
> > ac_cv_env_LDFLAGS_value=
> > ac_cv_env_LIBS_set=
> > ac_cv_env_LIBS_value=
> > ac_cv_env_build_alias_set=
> > ac_cv_env_build_alias_value=
> > ac_cv_env_host_alias_set=
> > ac_cv_env_host_alias_value=
> > ac_cv_env_target_alias_set=
> > ac_cv_env_target_alias_value=
> > ac_cv_host=i686-pc-mingw32
> > ac_cv_prog_CC=cl
> > ac_cv_target=i686-pc-mingw32
> >
> > ## ----------------- ##
> > ## Output variables. ##
> > ## ----------------- ##
> >
> > AIX_LINK_OPTS=''
> > AR='lib -NOLOGO -OUT:"$@"'
> > AR_FLAGS=''
> > AS='$(CC)'
> > ASFLAGS='$(CFLAGS)'
> > ASM_SUFFIX='s'
> > CC='cl'
> > CCACHE=''
> > CFLAGS=' -W3 -nologo -GF -Gy -FS -Od -MD -Zi'
> > CPP=''
> > CPPFLAGS=''
> > CPU_ARCH='x86'
> > CROSS_COMPILE=''
> > CXX='cl'
> > CXXFLAGS=' -Zi'
> > CYGWIN_WRAPPER=''
> > DEFINES=' -UNDEBUG -DDEBUG_nayak -UWINNT'
> > DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDEBUG=1
> -DXP_PC=1 -DWIN32=1 -D_CRT_SECURE_NO_WARNINGS=1
> -D_CRT_NONSTDC_NO_WARNINGS=1 -D_DEBUG=1 -DWIN95=1
> -D_PR_GLOBAL_THREADS_ONLY=1 -D_AMD64_=1'
> > DLLFLAGS=' -DYNAMICBASE -OUT:"$@" -DEBUG'
> > DLL_SUFFIX='dll'
> > DSO_CFLAGS=''
> > DSO_LDOPTS=''
> > ECHO_C=''
> > ECHO_N='-n'
> > ECHO_T=''
> > EGREP=''
> > ENABLE_STRIP=''
> > EXEEXT=''
> > EXEFLAGS=''
> > FILTER=''
> > GCC_USE_GNU_LD=''
> > GNU_CC=''
> > GREP=''
> > HOST_CC=''
> > HOST_CFLAGS=''
> > HOST_LDFLAGS=''
> > IMPLIB=''
> > LD='link'
> > LDFLAGS=' -DEBUG'
> > LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
> > LIBOBJS=''
> > LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
> > LIBS=''
> > LIB_SUFFIX='lib'
> > LTLIBOBJS=''
> > MACOSX_DEPLOYMENT_TARGET=''
> > MACOS_SDK_DIR=''
> > MDCPUCFG_H='_win95.cfg'
> > MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
> > MOD_MAJOR_VERSION='4'
> > MOD_MINOR_VERSION='23'
> > MOD_PATCH_VERSION='0'
> > MOZILLA_CLIENT=''
> > MOZ_DEBUG='1'
> > MOZ_DEBUG_SYMBOLS='1'
> > MOZ_OBJFORMAT=''
> > MOZ_OPTIMIZE=''
> > MSC_VER='1910'
> > MT='mt'
> > NEXT_ROOT=''
> > NOSUCHFILE='/no-such-file'
> > NSINSTALL='nsinstall'
> > NSPR_MODNAME='nspr20'
> > OBJDIR='$(OBJDIR_NAME)'
> > OBJDIR_NAME='.'
> > OBJECT_MODE=''
> > OBJEXT=''
> > OBJ_SUFFIX='obj'
> > OPTIMIZER=''
> > OS_ARCH='WINNT'
> > OS_DLLFLAGS='-nologo -DLL -SUBSYSTEM:WINDOWS'
> > OS_LIBS=' '
> > OS_RELEASE='4.0'
> > OS_TARGET='WIN95'
> > OS_TEST='i686'
> > PACKAGE_BUGREPORT=''
> > PACKAGE_NAME=''
> > PACKAGE_STRING=''
> > PACKAGE_TARNAME=''
> > PACKAGE_URL=''
> > PACKAGE_VERSION=''
> > PATH_SEPARATOR=':'
> > PERL='perl'
> > PROFILE_GEN_CFLAGS='-GL -Gw'
> > PROFILE_GEN_LDFLAGS='-LTCG:PGINSTRUMENT'
> > PROFILE_USE_CFLAGS='-GL -wd4624 -wd4952 -Gw'
> > PROFILE_USE_LDFLAGS='-LTCG:PGUPDATE'
> > PR_MD_ARCH_DIR='windows'
> > PR_MD_ASFILES=''
> > PR_MD_CSRCS=''
> > RANLIB='echo not_ranlib'
> > RC='rc.exe'
> > RCFLAGS=''
> > RELEASE_OBJDIR_NAME='WIN954.0_64_DBG.OBJ'
> > RESOLVE_LINK_SYMBOLS='1'
> > SHELL='/bin/sh'
> > SHELL_OVERRIDE=''
> > STRIP='echo not_strip'
> > ULTRASPARC_LIBRARY=''
> > USE_64='1'
> > USE_BTHREADS=''
> > USE_CPLUS=''
> > USE_IPV6=''
> > USE_N32=''
> > USE_NSPR_THREADS=''
> > USE_PTHREADS=''
> > USE_USER_PTHREADS=''
> > USE_X32=''
> > VISIBILITY_FLAGS=''
> > WHOAMI=''
> > WINDRES=''
> > WRAP_LDFLAGS=''
> > WRAP_SYSTEM_INCLUDES=''
> > ac_ct_CC=''
> > ac_ct_CXX=''
> > bindir='${exec_prefix}/bin'
> > build='i686-pc-mingw32'
> > build_alias=''
> > build_cpu='i686'
> > build_os='mingw32'
> > build_vendor='pc'
> > datadir='${datarootdir}'
> > datarootdir='${prefix}/share'
> > dist_bindir='${dist_prefix}/bin'
> > dist_includedir='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ/include'
> > dist_libdir='${dist_prefix}/lib'
> > dist_prefix='$(topsrcdir)/../dist/WIN954.0_x86_64_64_DBG.OBJ'
> > docdir='${datarootdir}/doc/${PACKAGE}'
> > dvidir='${docdir}'
> > exec_prefix='${prefix}'
> > host='i686-pc-mingw32'
> > host_alias=''
> > host_cpu='i686'
> > host_os='mingw32'
> > host_vendor='pc'
> > htmldir='${docdir}'
> > includedir='${prefix}/include/nspr'
> > infodir='${datarootdir}/info'
> > libdir='${exec_prefix}/lib'
> > libexecdir='${exec_prefix}/libexec'
> > localedir='${datarootdir}/locale'
> > localstatedir='${prefix}/var'
> > mandir='${datarootdir}/man'
> > oldincludedir='/usr/include'
> > pdfdir='${docdir}'
> > prefix='/usr/local'
> > program_transform_name='s,x,x,'
> > psdir='${docdir}'
> > runstatedir='${localstatedir}/run'
> > sbindir='${exec_prefix}/sbin'
> > sharedstatedir='${prefix}/com'
> > sysconfdir='${prefix}/etc'
> > target='i686-pc-mingw32'
> > target_alias=''
> > target_cpu='i686'
> > target_os='mingw32'
> > target_vendor='pc'
> >
> > ## ----------- ##
> > ## confdefs.h. ##
> > ## ----------- ##
> >
> > /* confdefs.h */
> > #define PACKAGE_NAME ""
> > #define PACKAGE_TARNAME ""
> > #define PACKAGE_VERSION ""
> > #define PACKAGE_STRING ""
> > #define PACKAGE_BUGREPORT ""
> > #define PACKAGE_URL ""
> > #define DEBUG 1
> > #define XP_PC 1
> > #define WIN32 1
> > #define _CRT_SECURE_NO_WARNINGS 1
> > #define _CRT_NONSTDC_NO_WARNINGS 1
> > #define _DEBUG 1
> > #define WIN95 1
> > #define _PR_GLOBAL_THREADS_ONLY 1
> > #define _AMD64_ 1
> >
> > configure: exit 0
> >
> >
> > Any help greatly appreciated.
> >
> > Thanks..
>
> It came to my notice, that if I modify “start-shell.bat” file and disable
> below two env. variables in start_shell.bat :
>
>     REM SET INCLUDE=
>     REM SET LIB=
>
> Execute “start-shell.bat”.
>
> and then build nss in legacy way via 'make nss_build_all' , Build is
> successful.
>
> However we are noticing that nspr4.dll,plc4.dll,plds4.dll under
> 'WIN954.0_x86_64_64_DBG.OBJ\lib\ don't have lib prefix. Is that expected ?
> When we had built 3.42.1, via build.sh we noticed,
>  libnspr4.dll,libplc4.dll,libplds4.dll
>
> I'm very confused in regards to building NSS on windows and looking for
> guidance.
>
> Please help ..
>
> Thanks..
> Usha
> --
> dev-tech-crypto mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-tech-crypto
>
--
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto