Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2011 16:10:04 +0200
From:      Olivier Smedts <olivier@gid0.org>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: Clang error make buildworld
Message-ID:  <BANLkTin0n9q%2BMjaFqLRZ9F8NwEjQJYuL%2Bw@mail.gmail.com>
In-Reply-To: <20110505135458.GA79622@freebsd.org>
References:  <201105040107.p4417NTR048534@pozo.com> <4DC0F46C.3020806@FreeBSD.org> <201105041344.p44DiOId032272@pozo.com> <4DC160B9.5060004@FreeBSD.org> <4DC2A0E5.5040602@zedat.fu-berlin.de> <BANLkTimiU42U0m5nCo=hSdaUF50rwnOk4w@mail.gmail.com> <20110505135458.GA79622@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

2011/5/5 Roman Divacky <rdivacky@freebsd.org>:
>> Because with clang, -march=native often breaks buildworld, while
>> -march=core2 is ok.
>
> Can you be more specific about this claim? On what CPU are seeing
> this breakage?

On a Core2 Quad Q9450 and a Core i7 860.
I use "core2" on both because that's the most approaching values
supported in bsd.cpu.mk and gcc in HEAD.
I reverted from "-march=native" to "-march=core2" for two reasons, the
first beeing that gcc didn't use the right "-mtune" when using
"-march=native" (I think it was using internally "-mtune=generic").
I'll try to be more specific if I can find the tests I was using at
that time. The second reason is that with "-march=native", my
buildworld often failed with clang, and since I use "-march=core2" I
had no issues. I'll try to buildworld with "-march=native" and report
back.

> Anyway, can you compile and run on that machine this:
>
>        http://lev.vlakno.cz/~rdivacky/Host.cpp

Compiled with gcc and clang, both output (on one of the two computers
I use most) :
roman = corei7

> It's the LLVM CPU autodetection code, it will print the name of
> your CPU. I wonder whats the difference to "core2".
>
> Thank you. roman

Cheers

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier@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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTin0n9q%2BMjaFqLRZ9F8NwEjQJYuL%2Bw>