Bug#699185: nspr: FTBFS on x32: Tries to compile using -m32

Daniel Schepler dschepler at gmail.com
Mon Jan 28 17:21:39 UTC 2013


Source: nspr
Version: 2:4.9.4-2
Severity: wishlist
Tags: patch
User: debian-x32 at lists.debian.org
Usertags: port-x32 ftbfs-x32

When building on x32, I get this failure:

<URL:http://buildd.debian-ports.org/status/fetch.php?pkg=nspr&arch=x32&ver=2%3A4.9.4-2&stamp=1358279518>:
...
   dh_auto_build -a -O--sourcedirectory=mozilla/nsprpub
make[1]: Entering directory
`/build/buildd-nspr_4.9.4-2-x32-fFdP3a/nspr-4.9.4/mozilla/nsprpub'
make -C config export
make[2]: Entering directory
`/build/buildd-nspr_4.9.4-2-x32-fFdP3a/nspr-4.9.4/mozilla/nsprpub/config'
gcc -m32 -o now.o -c    -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -pipe
-Wall -O2 -g -fno-inline -fPIC  -UDEBUG  -DNDEBUG=1
-DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE_VISIBILITY_PRAGMA=1
-DXP_UNIX=1 -D_GNU_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1
-Di386=1 -D_REENTRANT=1  -DFORCE_PR_LOG -D_PR_PTHREADS
-UHAVE_CVAR_BUILT_ON_SEM   now.c
In file included from /usr/include/features.h:341:0,
                 from /usr/include/stdio.h:27,
                 from now.c:6:
/usr/include/stdc-predef.h:30:26: fatal error: bits/predefs.h: No such
file or directory
compilation terminated.
make[2]: *** [now.o] Error 1
make[2]: Leaving directory
`/build/buildd-nspr_4.9.4-2-x32-fFdP3a/nspr-4.9.4/mozilla/nsprpub/config'
make[1]: *** [export] Error 2
make[1]: Leaving directory
`/build/buildd-nspr_4.9.4-2-x32-fFdP3a/nspr-4.9.4/mozilla/nsprpub'
dh_auto_build: make -j1 returned exit code 2
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2

It should be using -mx32, not -m32 (if it must use a specific target
flag).  I'm attaching a debdiff of the changes I used to be able to
compile, so I can upload to debian-ports/unreleased.  (It's strange
that there seems to be no way to configure for compiling to an x32
target in upstream when the x32 support is definitely there in
pr/include/md/_linux.cfg.)
-- 
Daniel Schepler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nspr.debdiff
Type: application/octet-stream
Size: 45330 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mozilla-maintainers/attachments/20130128/5a61d675/attachment-0001.obj>


More information about the pkg-mozilla-maintainers mailing list