Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Dec 2014 19:47:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 196031] [patch] unbreak www/webkit-gtk3 build on FreeBSD 8
Message-ID:  <bug-196031-6497-Qtqnk1LV97@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-196031-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-196031-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196031

--- Comment #3 from Don Lewis <truckman@FreeBSD.org> ---
(In reply to Antoine Brodin from comment #2)
> (In reply to Don Lewis from comment #0)
> > NOTE: When building with gcc from ports on i386, CPUTYPE must be set to
> > a value that specifies an architecture that has 8 byte atomic op support
> > (i686 or higher?).  If CPUTYPE is not set, the build will fail with an
> > undefined reference to __atomic_fetch_add_8.
> 
> I think you have to add this kind of hack (untested, not sure about i586):
> 
> .if ${ARCH} == i386 && ! ${CFLAGS:M-march=*}
> # Needed for __atomic_fetch_add_8
> CFLAGS+=       -march=i586
> .endif

Definitely a bit hackish, but it seems to work.  An online search didn't turn
up any info on what the minimum CPU is for atomic_fetch_add_8, but i586 seems
to be sufficient.  I suspect that it is pretty unlikely for anyone to want to
use webkit-gtk3 on an i386 or i486.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196031-6497-Qtqnk1LV97>