From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Sep 16 12:00:19 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52B7610656D1 for ; Wed, 16 Sep 2009 12:00:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2E7728FC23 for ; Wed, 16 Sep 2009 12:00:19 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8GC0JWA002730 for ; Wed, 16 Sep 2009 12:00:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8GC0Ji5002729; Wed, 16 Sep 2009 12:00:19 GMT (envelope-from gnats) Resent-Date: Wed, 16 Sep 2009 12:00:19 GMT Resent-Message-Id: <200909161200.n8GC0Ji5002729@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Beat Gätzi Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CC5C1065676 for ; Wed, 16 Sep 2009 11:58:56 +0000 (UTC) (envelope-from beat@FreeBSD.org) Received: from marvin.chruetertee.ch (marvin.chruetertee.ch [217.150.245.55]) by mx1.freebsd.org (Postfix) with ESMTP id D3FD78FC20 for ; Wed, 16 Sep 2009 11:58:54 +0000 (UTC) Received: from _HOSTNAME_ (82-69-84-233.dsl.in-addr.zen.co.uk [82.69.84.233]) (authenticated bits=0) by marvin.chruetertee.ch (8.14.3/8.14.3) with ESMTP id n8GBhPYj099882 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Wed, 16 Sep 2009 11:43:26 GMT (envelope-from beat@FreeBSD.org) Received: by _HOSTNAME_ (sSMTP sendmail emulation); Wed, 16 Sep 2009 13:45:21 +0200 Message-Id: <200909161143.n8GBhPYj099882@marvin.chruetertee.ch> Date: Wed, 16 Sep 2009 13:45:21 +0200 From: Beat Gätzi To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/138877: [PATCH] security/nss: Fix build on sparc64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Beat Gätzi List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2009 12:00:19 -0000 >Number: 138877 >Category: ports >Synopsis: [PATCH] security/nss: Fix build on sparc64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Sep 16 12:00:18 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Beat Gätzi >Release: FreeBSD 8.0-BETA2 i386 >Organization: >Environment: System: FreeBSD daedalus.network.local 8.0-BETA2 FreeBSD 8.0-BETA2 #13 r196420: Fri Aug 21 14:49:22 CEST 2009 root@daedalus.network.local:/usr/obj/usr/src/sys/BEASTIE i386 >Description: - Current nss version try to invoke X86 asm on sparc64: cc -o FreeBSD8.0_OPT.OBJ/FreeBSD_SINGLE_SHLIB/sha_fast.o -c -O2 -pipe -I/usr/local/include/nspr -L/usr/local/lib -fno-strict-aliasing -O -fPIC -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I../../dist/FreeBSD8.0_OPT.OBJ/include -I../../dist/public/ -I../../dist/private/ -O -fPIC -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I../../../dist/FreeBSD8.0_OPT.OBJ/include -I../../../dist/public/ -I../../../dist/private/ -O -fPIC -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -DSHLIB_SUFFIX=\"so.1\"i -DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -DNSS_X86_OR_X64 -DNSS_X86 -DMP_API_COMPATIBLE -I../../../../dist/FreeBSD8.0_OPT.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -Impi -Iecl -O -fPIC -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -DSHLIB_SUFFIX=\"so.1\" -DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -DNSS_X86_OR_X64 -DNSS_X86 -DMP_API_COMPATIBLE -I../../../../dist/FreeBSD8.0_OPT.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss -Impi -Iecl sha_fast.c {standard input}: Assembler messages: {standard input}:53: Error: Unknown opcode: `bswap' {standard input}:74: Error: Unknown opcode: `bswap' {standard input}:93: Error: Unknown opcode: `bswap' >How-To-Repeat: - Build security/nss on sparc64 >Fix: - Attached patch fix build on sparc64. - sparc64 Tinderbox log: http://zaphod.chruetertee.ch/tb/logs/8-FreeBSD/nss-3.12.4.log --- nss-sparc64.patch begins here --- Index: files/patch-mozilla-security-coreconf-FreeBSD.mk =================================================================== RCS file: files/patch-mozilla-security-coreconf-FreeBSD.mk diff -N files/patch-mozilla-security-coreconf-FreeBSD.mk --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-mozilla-security-coreconf-FreeBSD.mk 16 Sep 2009 11:15:26 -0000 @@ -0,0 +1,20 @@ +--- ../../security/coreconf/FreeBSD.mk.orig 2009-09-16 13:02:04.000000000 +0200 ++++ ../../security/coreconf/FreeBSD.mk 2009-09-16 13:15:11.000000000 +0200 +@@ -48,12 +48,17 @@ + ifeq ($(OS_TEST),powerpc) + CPU_ARCH = powerpc + else ++ifeq ($(OS_TEST),sparc64) ++CPU_ARCH = sparc64 ++USE_64 = 1 ++else + ifeq ($(OS_TEST),amd64) + USE_64 = 1 + endif + CPU_ARCH = x86 + endif + endif ++endif + + OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK + --- nss-sparc64.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: