Opened 8 years ago

Closed 5 years ago

Last modified 5 years ago

#51543 closed defect (fixed)

nss @3.23: comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always true

Reported by: dgonyier (Dwaine Gonyier) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: powerpc haspatch Cc: ballapete (Peter "Pete" Dyballa), ryandesign (Ryan Carsten Schmidt)
Port: nss

Description (last modified by mf2k (Frank Schima))

$ uname -mprsv
Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh powerpc

Attachments (1)

nss.log (105.5 KB) - added by dgonyier (Dwaine Gonyier) 8 years ago.
port log nss

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by dgonyier (Dwaine Gonyier)

Attachment: nss.log added

port log nss

comment:1 Changed 8 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting.

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: powerpc added

comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

The log says:

error: comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
    if (addend < MP_DIGIT_MAX) {

This sounds like a bug on nss code. Could you report it to the developers of nss?

comment:4 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ballapete added
Keywords: haspatch added
Summary: Unable to build nss on OSX Leopard / PPCnss @3.23: comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always true

Duplicate #51709 proposes a patch. If this problem remains with the latest version of nss, we need to communicate with the developers to see if that's an appropriate fix.

comment:5 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added
Resolution: fixed
Status: newclosed

This problem may only have been occurring for you because you were using clang on PowerPC, which is known not to work. See #55473. That problem has been fixed; MacPorts will no longer try to use clang on PowerPC.

It also might only have been appearing because you were building with -Werror. The nss port was changed to no longer use -Werror.

nss 3.42 builds fine for me on 32-bit Tiger PowerPC. If you are still seeing this problem with that version or later, please reopen this ticket.

comment:6 Changed 5 years ago by dgonyier (Dwaine Gonyier)

I was able to port install nss 3.42 on Leopard PowerPC. Looks like port pulled down a pre-built package. Seems to be OK now.

Last edited 5 years ago by dgonyier (Dwaine Gonyier) (previous) (diff)
Note: See TracTickets for help on using tickets.