Bug#699217: nss: FTBFS on x32: Using -m32

Daniel Schepler dschepler at gmail.com
Tue Jan 29 07:25:04 UTC 2013


Source: nss
Version: 2:3.14.1.with.ckbi.1.93-1
Severity: wishlist
Tags: patch
User: debian-x32 at lists.debian.org
Usertags: port-x32 ftbfs-x32

The nss source package is getting a build failure on x32:

<URL:http://buildd.debian-ports.org/status/fetch.php?pkg=nss&arch=x32&ver=2%3A3.14.1.with.ckbi.1.93-1&stamp=1359406833>
...
cd nsinstall; /usr/bin/make libs
make[4]: Entering directory
`/build/buildd-nss_3.14.1.with.ckbi.1.93-1-x32-quS2VQ/nss-3.14.1.with.ckbi.1.93/mozilla/security/coreconf/nsinstall'
gcc -o Linux3.6_x86_glibc_PTH_OPT.OBJ/nsinstall.o -c -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -Wall -pipe -D_FORTIFY_SOURCE=2 -ansi
-D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -Di386 -DLINUX2_1
-m32 -Wall -Werror-implicit-function-declaration -Wno-switch -pipe
-DHAVE_STRERROR -DLINUX -Dlinux -DXP_UNIX -UDEBUG -DNDEBUG
-D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr
-I/build/buildd-nss_3.14.1.with.ckbi.1.93-1-x32-quS2VQ/nss-3.14.1.with.ckbi.1.93/mozilla/dist/include
-I../../../dist/public/coreconf -I../../../dist/private/coreconf
nsinstall.c
In file included from /usr/include/features.h:341:0,
                 from /usr/include/stdio.h:27,
                 from nsinstall.c:8:
/usr/include/stdc-predef.h:30:26: fatal error: bits/predefs.h: No such
file or directory
compilation terminated.
make[4]: *** [Linux3.6_x86_glibc_PTH_OPT.OBJ/nsinstall.o] Error 1
make[4]: Leaving directory
`/build/buildd-nss_3.14.1.with.ckbi.1.93-1-x32-quS2VQ/nss-3.14.1.with.ckbi.1.93/mozilla/security/coreconf/nsinstall'
...

It should be using -mx32 instead of -m32.  I'm attaching a debdiff for
changes I applied to get the package to build on x32, for an upload to
debian-ports/unreleased.  (It's very loosely based on the patch from
Gentoo, except I made it based on an amd64 build where they made it
based on an i386 build.)
-- 
Daniel Schepler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nss.debdiff
Type: application/octet-stream
Size: 4249 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mozilla-maintainers/attachments/20130128/fb0bd771/attachment.obj>


More information about the pkg-mozilla-maintainers mailing list