Re: Can't buildworld since Clang update

From: Olivier Smedts <olivier_at_gid0.org>
Date: Tue, 1 Mar 2011 14:52:23 +0100
2011/2/28 Dimitry Andric <dim_at_freebsd.org>:
> On 2011-02-28 15:35, Olivier Smedts wrote:
>>
>> I now have problems building gnu/lib/libobjc. When using Clang, gcc is
>> still used to build gnu/lib/libobjc (see "XXX: clang cannot compile
>> libobjc yet"), but gcc core dumps at this stage on two different
>> computers, using the same CFLAGS "-O2 -pipe -march=native" :
>> pid 38850 (gcc), uid 0: exited on signal 11 (core dumped)
>
> Hm, I have never seen this... Can you try removing the "-march=native"?

buildworld OK with the same make.conf and the following hack...err,
diff. I tried with -march=core2 (for a Core i7) and it didn't work,
neither with "-march=native -mno-mmx -mno-sse -mno-sse2 -mno-sse3".

Index: gnu/lib/libobjc/Makefile
===================================================================
--- gnu/lib/libobjc/Makefile    (révision 219096)
+++ gnu/lib/libobjc/Makefile    (copie de travail)
_at__at_ -1,5 +1,5 _at__at_
 # $FreeBSD$
-
+CFLAGS=-O2 -pipe -march=nocona
 .include <bsd.own.mk>

 OBJCDIR=${.CURDIR}/../../../contrib/libobjc

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier_at_gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."
Received on Tue Mar 01 2011 - 12:52:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:12 UTC