Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421817 - dev-libs/nss-3.13.5 fails to build with ABI=x32
Summary: dev-libs/nss-3.13.5 fails to build with ABI=x32
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
Keywords: InOverlay, InVCS
: 421875 (view as bug list)
Depends on: 422625
Blocks: x32
  Show dependency tree
Reported: 2012-06-18 17:57 UTC by Xavier Miller (RETIRED)
Modified: 2012-06-22 13:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

build.log (build.log,85.63 KB, text/x-log)
2012-06-18 17:59 UTC, Xavier Miller (RETIRED)
patch for x32 support (nss-3.13.5-x32.patch,1.76 KB, patch)
2012-06-20 13:28 UTC, Ambroz Bizjak
Details | Diff
updated ebuild (nss-3.13.5.ebuild,6.80 KB, text/plain)
2012-06-20 13:29 UTC, Ambroz Bizjak
updated ebuild (nss-3.13.5.ebuild,6.77 KB, text/plain)
2012-06-20 13:34 UTC, Ambroz Bizjak

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2012-06-18 17:57:41 UTC
/usr/lib/gcc/x86_64-gentoo-linux-gnu/4.7.1/../../../../x86_64-gentoo-linux-gnu/bin/ld: skipping incompatible /usr/libx32/ when searching for -lplc4
/usr/lib/gcc/x86_64-gentoo-linux-gnu/4.7.1/../../../../x86_64-gentoo-linux-gnu/bin/ld: cannot find -lplc4
/usr/lib/gcc/x86_64-gentoo-linux-gnu/4.7.1/../../../../x86_64-gentoo-linux-gnu/bin/ld: skipping incompatible /usr/libx32/ when searching for -lplds4
/usr/lib/gcc/x86_64-gentoo-linux-gnu/4.7.1/../../../../x86_64-gentoo-linux-gnu/bin/ld: cannot find -lplds4
/usr/lib/gcc/x86_64-gentoo-linux-gnu/4.7.1/../../../../x86_64-gentoo-linux-gnu/bin/ld: skipping incompatible /usr/libx32/ when searching for -lnspr4
/usr/lib/gcc/x86_64-gentoo-linux-gnu/4.7.1/../../../../x86_64-gentoo-linux-gnu/bin/ld: cannot find -lnspr4
/usr/lib/gcc/x86_64-gentoo-linux-gnu/4.7.1/../../../../x86_64-gentoo-linux-gnu/bin/ld: skipping incompatible /usr/libx32/ when searching for -lpthread
/usr/lib/gcc/x86_64-gentoo-linux-gnu/4.7.1/../../../../x86_64-gentoo-linux-gnu/bin/ld: skipping incompatible /usr/libx32/libpthread.a when searching for -lpthread
collect2: error: ld returned 1 exit status
distcc[16773] ERROR: compile (null) on localhost failed
make[2]: *** [Linux3.4_x86_x86_64-gentoo-linux-gnu-gcc_glibc_PTH_OPT.OBJ/] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.13.5/work/nss-3.13.5/mozilla/security/nss/lib/util'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.13.5/work/nss-3.13.5/mozilla/security/nss/lib'
make: *** [libs] Error 2
emake failed

Reproducible: Always
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2012-06-18 17:58:22 UTC
emerge --info '=dev-libs/nss-3.13.5'
Portage 2.2.0_alpha110 (default/linux/amd64/10.0/x32, gcc-4.7.1, glibc-2.15-r2, 3.4.0-gentoo x86_64)
                        System Settings
System uname: Linux-3.4.0-gentoo-x86_64-AMD_Athlon-tm-64_X2_Dual_Core_Processor_4400+-with-gentoo-2.1
Timestamp of tree: Mon, 18 Jun 2012 15:35:01 +0000
distcc 3.1 x86_64-gentoo-linux-gnu [enabled]
app-shells/bash:          4.2_p29
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.7.1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo local pandaboard pd-overlay proaudio
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
EMERGE_DEFAULT_OPTS="--with-bdeps y --buildpkg --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy collision-protect config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/overlay /var/lib/layman/pandaboard /var/lib/layman/pd-overlay /var/lib/layman/pro-audio"
USE="3dnow 3dnowext X aac acl alsa amd64 amr apng branding btrfs bzip2 cairo cdda cddb cli consolekit cracklib crypt cups cxx dbus device-mapper dri dssi encode exif fat ffmpeg fftw flac fortran gif gpm gstreamer gt3 gtk gudev hwdb iconv id3tag jack jpeg ladspa lame libsamplerate lxde mmx modules mp3 mpeg mudflap multilib ncurses nls nptl ntfs ogg opengl openmp osc pam pcre pdf png policykit pppd qt qt3support qt4 readline rubberband samba sdl session sqlite sse sse2 ssl svg tcpd threads tiff truetype udev unicode usb vorbis wmf x264 xcb xetex xorg xvid zlib" ALSA_CARDS="ice1712 hda-intel usb-audio virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-af9015" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 2 Xavier Miller (RETIRED) gentoo-dev 2012-06-18 17:59:10 UTC
Created attachment 315683 [details]
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-19 12:23:10 UTC
*** Bug 421875 has been marked as a duplicate of this bug. ***
Comment 4 Xavier Miller (RETIRED) gentoo-dev 2012-06-19 12:28:42 UTC
Sorry for the double post. I was adding some bugs yesterday, and introduced this one twice in a row.
Comment 5 Ambroz Bizjak 2012-06-20 13:28:36 UTC
Created attachment 315847 [details, diff]
patch for x32 support

Patch for x32 support. This makes it treat x32 the same as x86, except that it disables assembly optimizations in the mpi library (tried the x86 and the amd64 assembly, and neither works).

With this patch, I have succeeded in establishing both client ans server SSL connections using some custom software of mine.
Comment 6 Ambroz Bizjak 2012-06-20 13:29:13 UTC
Created attachment 315849 [details]
updated ebuild

Updated ebuild to properly pass USE_x32 to the build system.
Comment 7 Ambroz Bizjak 2012-06-20 13:29:45 UTC
For this to work, NSPR needs to be fixed first; see bug 422625.
Comment 8 Ambroz Bizjak 2012-06-20 13:34:16 UTC
Created attachment 315851 [details]
updated ebuild

Oops, some debug code was left in.
Comment 9 Jory A. Pratt gentoo-dev 2012-06-22 13:07:50 UTC
Is avaliable in overlay at moment, please use diffs for ebuilds as well, mozilla products should use 8 lines of context when creating your patches as well makes it easier to review.
Comment 10 Xavier Miller (RETIRED) gentoo-dev 2012-06-22 13:10:56 UTC
Which overlay ?
Comment 11 Jory A. Pratt gentoo-dev 2012-06-22 13:13:45 UTC
Everything related to mozilla always starts out in the mozilla overlay, I have just finished committing it to main tree as well so should be avaliable in an hour or so.