If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Support building nss with gcc on AIX

UNCONFIRMED
Unassigned

Status

NSS
Build
--
enhancement
UNCONFIRMED
8 years ago
3 years ago

People

(Reporter: Michael Haubenwallner, Unassigned)

Tracking

(Blocks: 1 bug)

3.18.2
PowerPC
Other

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 2 obsolete attachments)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.6) Gecko/20100111 Gentoo Firefox/3.5.6
Build Identifier: nss-3.12.5 with gcc on ppc-ibm-aix5.3.0.0

When building NSS using gcc on AIX, gcc receives unrecognized xlc-specific flags.

Reproducible: Always

Steps to Reproduce:
1. build NSPR with patch from bug#547991 using gcc
2. build NSS using gcc
Actual Results:  
powerpc-ibm-aix5.3.0.0-gcc -o AIX5.3_powerpc-ibm-aix5.3.0.0-gcc_OPT.OBJ/pathsub.o -c -O -qmaxmem=-1 -DAIX -DSYSV -DXP_UNIX -UDEBUG -DNDEBUG -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/tmp/install/include/nspr   -I../../dist/AIX5.3_powerpc-ibm-aix5.3.0.0-gcc_OPT.OBJ/include -I../../dist/public/coreconf -I../../dist/private/coreconf -I/tmp/install/include/nspr -I../../dist/AIX5.3_powerpc-ibm-aix5.3.0.0-gcc_OPT.OBJ/include/dbm  /tmp/build/nss-3.12.5/mozilla/security/coreconf/nsinstall/pathsub.c
powerpc-ibm-aix5.3.0.0-gcc: unrecognized option `-qmaxmem=-1'
powerpc-ibm-aix5.3.0.0-gcc -o AIX5.3_powerpc-ibm-aix5.3.0.0-gcc_OPT.OBJ/nsinstall -O -qmaxmem=-1 -DAIX -DSYSV -DXP_UNIX -UDEBUG -DNDEBUG -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/tmp/install/include/nspr   -I../../dist/AIX5.3_powerpc-ibm-aix5.3.0.0-gcc_OPT.OBJ/include -I../../dist/public/coreconf -I../../dist/private/coreconf -I/tmp/install/include/nspr -I../../dist/AIX5.3_powerpc-ibm-aix5.3.0.0-gcc_OPT.OBJ/include/dbm  AIX5.3_powerpc-ibm-aix5.3.0.0-gcc_OPT.OBJ/nsinstall.o AIX5.3_powerpc-ibm-aix5.3.0.0-gcc_OPT.OBJ/pathsub.o    -blibpath:/usr/lib:/lib -lc -lm
powerpc-ibm-aix5.3.0.0-gcc: `-b' must come at the start of the command line
make[1]: *** [AIX5.3_powerpc-ibm-aix5.3.0.0-gcc_OPT.OBJ/nsinstall] Error 1
make[1]: Leaving directory `/tmp/build/nss-3.12.5/mozilla/security/coreconf/nsinstall'
make: *** [libs] Error 2

Expected Results:  
successful build.
(Reporter)

Comment 1

8 years ago
Created attachment 439516 [details] [diff] [review]
Patch to build NSS with gcc on AIX

As we still use native as/ld on AIX (GNU-as/ld might work since binutils-2.20, haven't tried), there's nothing more than to avoid xlc-specific flags and to pass linker flags via "-Wl,".

Haven't looked why $(WL) doesn't work in nss/cmd/platlibs.mk when set in coreconf/AIX.mk.

Note that it does not work to use "-Wl," unconditionally, because ld is used directly in $(MKSHLIB) when not using gcc.

Thank you!
(Reporter)

Comment 2

3 years ago
Created attachment 8586017 [details] [diff] [review]
Support building with GCC on AIX

Updated for current tip.
Attachment #439516 - Attachment is obsolete: true
(Reporter)

Updated

3 years ago
Version: unspecified → 3.18.2
(Reporter)

Updated

3 years ago
Blocks: 1149478
(Reporter)

Comment 3

3 years ago
Created attachment 8586039 [details] [diff] [review]
Support building with GCC on AIX

Now with not using -qmaxmem=1 for gcc when OPTIMIZE=1
Attachment #8586017 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.