FYI: security/nss (as of -r480180) fails to build on powerpc64: error: incompatible pointer types passing 'int *' to parameter of type 'size_t *'

Mark Millard marklmi at yahoo.com
Thu Oct 11 03:19:02 UTC 2018


The following is on a powerpc64 machine (old PowerMac G5 so-called
"Quad Core") running a personal build of head -r339076 that was
built via devel/powerpc64-xtoolchain-gcc and such (no gcc 4.2.1).
The compiler is system-clang (so clang 6 as cc). [I experiment
with more modern compilers and toolchains for some powerpc family
members.]

-r339076 predates the openssl update in head.

The port build is via ports-mgmt/poudriere-devel .

Note: size_t is unsigned long (64 bits) while int is
32 bits for powerpc64.

I've no clue if this is supposed to work, be blocked as
broken, or what. (I've been without access to the powerpc
machines for some time and it is even longer since I'd
built updated ports. So this might be a long-standing
issue without my knowing it.)

For now this is just an FYI.

=>> Building security/nss
build started at Wed Oct 10 18:50:10 PDT 2018
port directory: /usr/ports/security/nss
package name: nss-3.39
building for: FreeBSD FBSDG5L 12.0-ALPHA8 FreeBSD 12.0-ALPHA8 powerpc
maintained by: gecko at FreeBSD.org
Makefile ident:      $FreeBSD: head/security/nss/Makefile 478586 2018-08-31 14:44:13Z jbeich $
Poudriere version: 3.2.99.20180511
Host OSVERSION: 1200084
Jail OSVERSION: 1200084
Job Id: 04
. . .
gmake[3]: Entering directory '/wrkdirs/usr/ports/security/nss/work/nss-3.39/nss/lib/freebl'
. . .
mpi/mpcpucache.c:728:23: error: incompatible pointer types passing 'int *' to parameter of type 'size_t *' (aka 'unsigned long *') [-Werror,-Wincompatible-pointer-types]
            &cacheline_size, &clen, NULL, 0) < 0 || !cacheline_size)
                             ^~~~~
/usr/include/sys/sysctl.h:1062:48: note: passing argument to parameter here
int     sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
                                                   ^
1 error generated.
gmake[4]: *** [../../coreconf/rules.mk:393: FreeBSD12.0_OPT.OBJ/FreeBSD_SINGLE_SHLIB/mpcpucache.o] Error 1
gmake[4]: Leaving directory '/wrkdirs/usr/ports/security/nss/work/nss-3.39/nss/lib/freebl'
gmake[3]: *** [Makefile:629: libs] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/security/nss/work/nss-3.39/nss/lib/freebl'
gmake[2]: *** [../coreconf/rules.mk:101: libs] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/security/nss/work/nss-3.39/nss/lib'
gmake[1]: *** [coreconf/rules.mk:101: libs] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/security/nss/work/nss-3.39/nss'
*** Error code 1

Stop.
make: stopped in /usr/ports/security/nss
=>> Cleaning up wrkdir
===>  Cleaning for nss-3.39
build of security/nss | nss-3.39 ended at Wed Oct 10 18:55:35 PDT 2018
build time: 00:05:25
!!! build failure encountered !!!


For reference:

[04:59:20] [04] [00:05:16] Saved security/nss | nss-3.39 wrkdir to: /usr/local/poudriere/data/wrkdirs/FBSDpowerpc64-default/default/nss-3.39.tbz
[04:59:29] [04] [00:05:25] Finished security/nss | nss-3.39: Failed: build
[04:59:30] [04] [00:05:26] Skipping x11/lumina | lumina-1.4.1,3: Dependent port security/nss | nss-3.39 failed
[04:59:30] [04] [00:05:26] Skipping deskutils/lumina-pdf | lumina-pdf-1.4.1: Dependent port security/nss | nss-3.39 failed
[04:59:30] [04] [00:05:26] Skipping graphics/poppler | poppler-0.57.0_1: Dependent port security/nss | nss-3.39 failed
[04:59:30] [04] [00:05:26] Skipping graphics/poppler-qt5 | poppler-qt5-0.57.0_1: Dependent port security/nss | nss-3.39 failed


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-ports mailing list