From owner-freebsd-sparc64@FreeBSD.ORG Sun Aug 28 19:56:26 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35FA3106566B for ; Sun, 28 Aug 2011 19:56:26 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id EFF848FC0A for ; Sun, 28 Aug 2011 19:56:25 +0000 (UTC) Received: by qyk4 with SMTP id 4so1458750qyk.13 for ; Sun, 28 Aug 2011 12:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=Pin9xMA7hl8p0dxJbghWJ7XXUcl39asjVkR4e+T9Afc=; b=LEvbFW0w/ZjaGxS6iArraezsZrdKNVW5JiTDoHIGVwS0HdKFv3F16xFbxHpAH3P0FV RUsmLWWM1tl8/OIMO4tVlsQvlho/dURmBnUb2wPYS/mkDBB/m3irnfqvKyrD6VZSZm05 UVMw/4MbBfbqoogmdV8bV7wJ/TkkRo0rIJETw= Received: by 10.229.189.10 with SMTP id dc10mr4221678qcb.112.1314559737067; Sun, 28 Aug 2011 12:28:57 -0700 (PDT) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.229.94.148 with HTTP; Sun, 28 Aug 2011 12:28:37 -0700 (PDT) From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Sun, 28 Aug 2011 21:28:37 +0200 X-Google-Sender-Auth: mPaOxvOQCBFzXIgT_OYX3j_sM34 Message-ID: To: freebsd-sparc64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Can't compile tools/netrate/[netblast|netsend] X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 19:56:26 -0000 Hi all, I'm trying to compile netblast on my Sun Blade 150, but I can't because there is alignement error in the code: [root@sparc64]/usr/src/tools/tools/netrate/netblast#make Warning: Object directory not changed from original /usr/src/tools/tools/netrate/netblast cc -O2 -pipe -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args -Werror -c netblast.c cc1: warnings being treated as errors netblast.c: In function 'blast_loop': netblast.c:115: warning: cast increases required alignment of target type *** Error code 1 Stop in /usr/src/tools/tools/netrate/netblast As I'm not a C coder, and googling about alignment, I've learn that only x86 platform "hide" this problem, but I didn't find dummy patch for fix this kind of problem. Does anyone have a solution ? Thanks, Olivier