From owner-freebsd-ports@FreeBSD.ORG Sun May 2 20:21:04 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B931106564A; Sun, 2 May 2010 20:21:04 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id E3A0F8FC13; Sun, 2 May 2010 20:21:03 +0000 (UTC) Received: by pvb32 with SMTP id 32so378370pvb.13 for ; Sun, 02 May 2010 13:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=HSKi3QF7537V7QOhdFbunDupxISsyXK+gxLichN06HA=; b=M25hsf5ajjMgOL7l5z3SN8uQTSmAxnDtUpVI/w/E/xE5MiF9A3ardWy06dyMUPPlsP wii3i58Qw3pODOmMAtRpwkdVT/mpi/FYrK2jddMva3nNufpZez737oyJCQaLysuiybF5 OMLo5hGFsrTXXEr+vvknc4XhYt3PpPpL2NFoU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=tfUQ3lxSRNauyW9eYZ+WtTgec1NyYDFmk6vE3sSyTjLwdbJ9GYF8wMmGir11xXk2NS UT5SAznE677k0uYKmDU5j+EnRtCV+YlpGAnAmQpTX3bFkr/uF5nAErQjRHjVbtYNA/G+ 7GrBxCUfbGeoRnZXhceYYgVF3/Mbky2bnzXl8= Received: by 10.115.66.8 with SMTP id t8mr14058243wak.81.1272831658078; Sun, 02 May 2010 13:20:58 -0700 (PDT) Received: from [192.168.0.204] (deviant.freebsdgirl.com [173.8.183.73]) by mx.google.com with ESMTPS id n32sm20869647wae.10.2010.05.02.13.20.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 02 May 2010 13:20:57 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Garrett Cooper In-Reply-To: <1272830304.2613.17.camel@balrog.2hip.net> Date: Sun, 2 May 2010 13:20:55 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20100502090442.GA2548@Abricot.malikania.fr> <20100502092610.GA50721@Abricot.malikania.fr> <1272803451.2452.17.camel@balrog.2hip.net> <28390E7D-8ED1-42F0-9476-537A9128D3E5@gmail.com> <1272830304.2613.17.camel@balrog.2hip.net> To: Robert Noland X-Mailer: Apple Mail (2.1078) Cc: Demelier David , "freebsd-ports@freebsd.org" Subject: Re: graphics/dri fails to build. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2010 20:21:04 -0000 On May 2, 2010, at 12:58 PM, Robert Noland wrote: > On Sun, 2010-05-02 at 11:46 -0700, Garrett Cooper wrote: >> On May 2, 2010, at 5:30 AM, Robert Noland = wrote: >>=20 >>> On Sun, 2010-05-02 at 11:26 +0200, Demelier David wrote: >>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D143723 >>>>=20 >>>> It seems adding CFLAGS+=3D-march-=3Dnative solved the problem but I = =20 >>>> don't want to >>>> keep this flag everytime in my make.conf >>>>=20 >>>> How this flag could solve the problem ? I can't understand. >>>=20 >>> This actually stems from libdrm. Intel requires certain atomics = that >>> are not available on pure i386. They are present in code built for =20= >>> i486 >>> +. The default cpu was changed to i486 some time . >>=20 >> Should the port be marked broken with -march=3Di386 then? >=20 > Well, I'm not sure quite how we would do that... but if your > kernel/world is not really old, it should just work unless you force = gcc > to produce code that will run on i386. Something like this? .if ${CPUTYPE} =3D=3D i386 || ${ARCH} =3D=3D i386 && ${CPUTYPE} =3D=3D = native BROKEN :=3D this port requires i486+ CPU support .endif Can't protect against someone using the non-supported means of = compiling things and putting -m{arch,cpu,tune}=3Dnative in CFLAGS, et = all. Thanks, -Garrett=