update failed for security/nss-3.14.3

Florian Smeets flo at smeets.im
Wed Feb 20 16:48:31 UTC 2013


> Am 20.02.2013 11:18, schrieb Alex Dupre:
>> joerg_surmann wrote:
>>> hi all,
> 
>>> can't update security/nss.
> 
>> INTEL_GCM option of nss is quite flawed.
> 
>> ifdef INTEL_GCM
>> #
>> # GCM binary needs -mssse3
>> #
>> $(OBJDIR)/$(PROG_PREFIX)intel-gcm-wrap$(OBJ_SUFFIX): CFLAGS += -mssse3
> 
>> # The integrated assembler in Clang 3.2 does not support % in the
>> # expression of a .set directive. intel-gcm.s uses .set to give
>> # symbolic names to registers, for example,
>> # .set Htbl, %rdi
>> # So we can't use Clang's integrated assembler with intel-gcm.s.
>> ifneq (,$(findstring clang,$(AS)))
>> $(OBJDIR)/$(PROG_PREFIX)intel-gcm$(OBJ_SUFFIX): ASFLAGS +=
>> -no-integrated-as
>> endif
>> endif
> 
> 
>> It requires -mssse3 flag, so it cannot be built on 8.x with base gcc:
> 
>> cc1: error: unrecognized command line option "-mssse3"
> 
>> It uses assembly code not recognized by clang.
> 
>> I'd say we should disable it to start.
> 

It works fine on anything >= 8.3. The problem seems to be that people
installed binutils on say 9.0 and have them installed in

/usr/local/x86_64-portbld-freebsd9.0

But they upgraded to 9.1 so the port looks for them in

/usr/local/x86_64-portbld-freebsd9.1

the thing is that -B to gcc falls back to "well known paths" in case it
doesn't find anything useful in the specified path (this is even
documented). Thus using our base linker that's not able to deal with the
new instructions.

I will probably commit something like this later.

Index: Makefile
===================================================================
--- Makefile	(revision 312608)
+++ Makefile	(working copy)
@@ -54,7 +54,11 @@

 .if ${ARCH} == amd64
 USE_BINUTILS=	# intel-gcm.s
+.if exists(${LOCALBASE}/${CONFIGURE_TARGET:S/amd64/x86_64/}/bin)
 CFLAGS+=	-B${LOCALBASE}/${CONFIGURE_TARGET:S/amd64/x86_64/}/bin
+.else
+IGNORE=		please reinstall devel/binutils and try again
+.endif
 .if defined(WITH_CLANG_IS_CC) || ${CC:Mcc} && ${OSVERSION} > 1000023
 EXTRA_PATCHES+=	${FILESDIR}/extra-bug835050
 .endif

Florian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130220/c95329ea/attachment.sig>


More information about the freebsd-ports mailing list