From owner-freebsd-arch@FreeBSD.ORG Wed Jan 27 14:51:20 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CAC5106566C; Wed, 27 Jan 2010 14:51:20 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id 8295A8FC14; Wed, 27 Jan 2010 14:51:19 +0000 (UTC) Received: by ewy10 with SMTP id 10so1339602ewy.3 for ; Wed, 27 Jan 2010 06:51:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=l7uqvn0TXJ3CEdxCkhMqs3pl8B+uL8hsytD0Lesq8mA=; b=fjrlTPem+y++y2B4bpg/4BtdLjrVa4dOwdCi9FDSUKAnbpxWs3m/cMe3GnyCz8EibH vf0KDgihH3vJ7tLMGobtAlRvv4kS66Y+S6zlx5fgis/s2j9xBMGeMWvpTmzikwQ+YHOV XyxLoBeNlLd6dIjA9rM7ySYsvLh1u2rrZ0iaQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=Aubg1bEA/2Y8GPMXdRLFnqzNQkZZ3OJ+wpYu2r1Jg6BCGLq2Z8N//S/q+gk6Yj3Nix g6MuAWROyFsTuUa/754cCNBoFYjAQIwpEoQIdfi/0nnUfcqbiImcxsYgKuHfJ7YCFylM oYE/aNcW9W71jtNt1HgnzdJTYd5cTEx51Mt2c= MIME-Version: 1.0 Received: by 10.216.171.207 with SMTP id r57mr926227wel.146.1264603878307; Wed, 27 Jan 2010 06:51:18 -0800 (PST) In-Reply-To: <201001270804.20670.jhb@freebsd.org> References: <747dc8f31001270405l4fc1e79ctb892ad92db96204d@mail.gmail.com> <20100127123422.GA30191@freebsd.org> <201001270804.20670.jhb@freebsd.org> From: Renato Botelho Date: Wed, 27 Jan 2010 12:50:58 -0200 Message-ID: <747dc8f31001270650k58653ffena3da8f6c19330144@mail.gmail.com> To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Roman Divacky , freebsd-arch@freebsd.org Subject: Re: problems building new clamav because of march i386 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2010 14:51:20 -0000 On Wed, Jan 27, 2010 at 11:04 AM, John Baldwin wrote: > On Wednesday 27 January 2010 7:34:22 am Roman Divacky wrote: >> On Wed, Jan 27, 2010 at 10:05:42AM -0200, Renato Botelho wrote: >> > I'm having some problem trying to update clamav-devel port to >> > a new snapshot. >> > >> > Since it's using llvm now, i didn't build on i386 arch, after some >> > changes, it builds now but without atomic build. >> > >> > The point is, the clamav team say since our march is i386-* the >> > binaries are built for old i386 arch, is it correct? >> > >> > Here is the thread under clamav-devel maillist, could someone >> > take a look and gimme some help to understand and maybe fix >> > the problem? >> >> I've already talked to Edwin Torok about this... the problem is that >> llvm needs atomic builtins which only i486 provides. The change >> of default target from i386 to i486 has been made on HEAD and I believe >> the commit was already MFCed to (at least) 8.x. >> >> I believe the port could be fixed by something like CFLAGS+=3D-march=3Di= 486 > > It was merged to 7 as well. =A0It seems 6.x should use a newer gcc versio= n > for the llvm support anyway. =A0You should probably only add -march=3Di48= 6 to > CFLAGS if it isn't already present. I added it and it built fine. For 6.x i added a USE_GCC=3D4.2+ which fixed = the problem too. Thank you and rdivacky --=20 Renato Botelho