Closed
Bug 233046
Opened 21 years ago
Closed 6 months ago
configure does not detect gcc on solaris
Categories
(NSS :: Build, defect)
Tracking
(Not tracked)
RESOLVED
INACTIVE
People
(Reporter: Vladimir.Marek, Unassigned)
Details
User-Agent: Build Identifier: After running ./configure, it detects wrongly that I have CC compiler (?) instead of gcc. Reproducible: Always Steps to Reproduce: 1. Download and unpack nss-3.9.tar.gz 2. cd nss-3.9/mozilla/nsprpub 3. ./configure Actual Results: bash-2.05$ ./configure loading cache ./config.cache checking host system type... sparc-sun-solaris2.9 checking target system type... sparc-sun-solaris2.9 checking build system type... sparc-sun-solaris2.9 checking for whoami... /usr/ucb/whoami checking for c++... CC checking whether the C++ compiler (CC ) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. Expected Results: find and configure build with gcc compiler conifg.log: configure:621: checking host system type configure:642: checking target system type configure:660: checking build system type configure:1021: checking for whoami configure:1840: checking for c++ configure:1872: checking whether the C++ compiler (CC ) works configure:1888: CC -o conftest conftest.C 1>&5 ./configure: CC: not found configure: failed program was: #line 1883 "configure" #include "confdefs.h" int main(){return(0);} However configure can be persuaded using gcc by running: CXX=g++ CC=gcc ./configure
Comment 1•21 years ago
|
||
Thanks for the bug report. Do you only want to build NSPR? Or do you want to build NSS and have to build NSPR first because it's a dependency? On Solaris, both NSS and NSPR use the Sun compilers (cc and CC) by default. This default is different from autoconf's default and simply reflects our different development environment. To build NSS with gcc, you need to specify the make variable NS_USE_GCC=1. This will also cause NSPR to be built with gcc. To build NSPR (standalone) with gcc, you need to say CXX=g++ CC=gcc ./configure as you discovered. The only thing I can do about this bug is to enhance NSPR's configure script so that it detects gcc if the default cc is not found.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → Solaris
Hardware: Other → Sun
Version: unspecified → 3.9
Reporter | ||
Comment 2•21 years ago
|
||
I would like to apologise for not reading build instructions properly first. Yes, I'm tryig to build whole NSS. Detection of gcc when cc is not found would be nice, but since whole nss is not driven by autoconf script, it will not help much, I think.
Comment 3•21 years ago
|
||
The steps to build the whole NSS on Solaris with gcc are as follows. 1. cd mozilla/security/nss 2. gmake nss_build_all NS_USE_GCC=1 Step 2 produces a debug build. If you want an optimized build, say: 2a. gmake nss_build_all NS_USE_GCC=1 BUILD_OPT=1 You can set NS_USE_GCC and BUILD_OPT as environment variables. Please let me know if these steps works for you.
Status: NEW → ASSIGNED
Updated•18 years ago
|
QA Contact: wtchang → build
i intend to install opensolaris today/tomorrow, i expect to mark this bug as worksforme. although nrubsig already runs it, so he could check sooner, since i'll be spending my time w/ setup.
Comment 5•2 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Assignee: wtc → nobody
Status: ASSIGNED → NEW
Updated•2 years ago
|
Severity: minor → S4
Updated•6 months ago
|
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•