problems building new clamav because of march i386

Renato Botelho rbgarga at gmail.com
Wed Jan 27 14:51:20 UTC 2010


On Wed, Jan 27, 2010 at 11:04 AM, John Baldwin <jhb at freebsd.org> 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+=-march=i486
>
> It was merged to 7 as well.  It seems 6.x should use a newer gcc version
> for the llvm support anyway.  You should probably only add -march=i486 to
> CFLAGS if it isn't already present.

I added it and it built fine. For 6.x i added a USE_GCC=4.2+ which fixed the
problem too.

Thank you and rdivacky
-- 
Renato Botelho


More information about the freebsd-arch mailing list