Re: Failed building NSS 3.44 on MacOSX

Martin Thomson <[email protected]>
Newsgroups gmane.comp.mozilla.crypto
Message-ID <CAPLxc=Ubk2nM6+DHJOOon0QU-17ZAHY8bTovJY9p=stPYQFzWA@mail.gmail.com>
I had trouble myself, but it turns out that even if you are all up to date,
XCode isn't upgraded.  The error I get is the result of XCode being out of
date.

Confirm by looking for a config.log in the NSPR directory.  If it contains
a message like the one below, the outdated XCode is the problem.

configure:....: gcc    conftest.c  >&5
ld: malformed file/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd:4:18:
error: unknown enumerated scalar
platform:        zippered
                 ^~~~~~~~
 file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd'
clang: error: linker command failed with exit code 1 (use -v to see invocation)


On Sun, Jun 23, 2019 at 6:27 PM John Jiang <[email protected]> wrote:

> Hi,
> I tried to build NSS 3.44 on MacOSX 10.13.6 (Darwin Kernel Version 17.7.0).
> Just run "make nss_build_all" in directory nss-3.44/nss, and got the below
> errors,
> mkdir -p ./../nspr/Darwin17.7.0_cc_64_OPT.OBJ
> cd ./../nspr/Darwin17.7.0_cc_64_OPT.OBJ ; \
> CC="cc x86_64" CXX="g++ x86_64" sh ../configure \
> --disable-debug --enable-optimize --enable-64bit \
>
> --with-dist-prefix='path/to/nss-3.44/nss/../dist/Darwin17.7.0_cc_64_OPT.OBJ'
> \
>
> --with-dist-includedir='path/to/nss-3.44/nss/../dist/Darwin17.7.0_cc_64_OPT.OBJ/include'
> checking build system type... x86_64-apple-darwin17.7.0
> checking host system type... x86_64-apple-darwin17.7.0
> checking target system type... x86_64-apple-darwin17.7.0
> checking for whoami... /usr/bin/whoami
> checking for gcc... cc x86_64
> checking whether the C compiler works... no
> configure: error: in `path/to/nss-3.44/nspr/Darwin17.7.0_cc_64_OPT.OBJ':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
> make: *** [../nspr/Darwin17.7.0_cc_64_OPT.OBJ/config.status] Error 77
>
> but on the same machine, I didn't get any trouble when building NSS 3.43.
> --
> dev-tech-crypto mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-crypto
>
-- 
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.