Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Sep 2010 14:21:51 +0200
From:      Bartosz Stec <admin@kkip.pl>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Roman Divacky <rdivacky@freebsd.org>, current@freebsd.org
Subject:   Re: Clang now builds world and kernel, on i386 and amd64
Message-ID:  <4C9F3ADF.7070903@kkip.pl>
In-Reply-To: <4C9CB702.50004@FreeBSD.org>
References:  <4C99A53E.7060707@FreeBSD.org>	<AANLkTi=_ZpYZ7XwHJOYuRMOFCGebRwD=YEYORKnMmC0s@mail.gmail.com>	<4C9A32B8.60204@kkip.pl>	<4C9A6A38.4080307@freebsd.org>	<4C9A7203.8010701@kkip.pl>	<20100923065134.GA31455@freebsd.org>	<4C9B3207.2070302@kkip.pl>	<4C9B383A.6080008@FreeBSD.org>	<4C9B38E2.7010403@kkip.pl>	<4C9B6804.3070102@FreeBSD.org>	<4C9C8A64.3000103@kkip.pl>	<4C9C8FD9.1030305@FreeBSD.org> <4C9C95D7.40600@kkip.pl> <4C9CB702.50004@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
  W dniu 2010-09-24 16:34, Dimitry Andric pisze:
> On 2010-09-24 14:13, Bartosz Stec wrote:
>>> Could you please try to rename this make.conf to e.g. 
>>> make.conf.disable,
>>> and retry the world build?
>> Still the same without make.conf. My personal guess is, that clang
>> builded by clang with CPUTYPE=athlon-xp is somehow broken. I don't think
>> CFLAGS=-O2 -pipe could do any harm, and also note that clang builded by
>> GCC with exactly the same make.conf has no problems with world 
>> building :)
>
> I still cannot reproduce your issue...  To check, I have built world
> with CPUTYPE=athlon-xp, verified it used "-O2 -pipe -march=athlon-xp" as
> compilation flags for the world stage, and installed the resulting clang
> executables.
>
> Those clang executables do not exhibit the same problem as yours do;
> they can build tblgen (during the bootstrap-tools stage) fine.
>
> I suggest you comment out the CPUTYPE macro in make.conf for now,
> rebuild your world with gcc, and then rebuild it with clang again, to
> see if the issue goes away.

Indeed, I was right. Problem is gone after hashing out CPUTYPE line, 
building world with GCC, and with clang after that. Now world is 
building without problems.

But hey, i just realized that:

    # dmesg | grep -i cpu
    CPU: mobile AMD Athlon(tm) XP 2200+ (1800.11-MHz 686-class CPU)

I simply forgot that about a year ago I changed Athlon XP in this BOX to 
Athlon MP and I didn't changed CPUTYPE in make.conf...
So maybe clang in fact did exactly what it should and created binary 
designed to other CPUTYPE ;) I don't know exact differences between 
Athlon XP/MP architecture (registers specially) but I just started 
another try with CPUTYPE=Athlon-mp and I will post results :)

-- 
Bartosz Stec



-- 
IT4Pro Bartosz Stec
http://www.it4pro.pl
tel: 607041002
E-Mail: bartosz.stec@it4pro.pl




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C9F3ADF.7070903>