Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 May 2010 13:20:55 -0700
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        Robert Noland <rnoland@FreeBSD.org>
Cc:        Demelier David <demelier.david@gmail.com>, "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: graphics/dri fails to build.
Message-ID:  <E00B7CC7-77F1-48AF-8AAB-6B93ECD07E2C@gmail.com>
In-Reply-To: <1272830304.2613.17.camel@balrog.2hip.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <rnoland@FreeBSD.org> =
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=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E00B7CC7-77F1-48AF-8AAB-6B93ECD07E2C>