[illumos-Discuss] clang -integrated-as compiles all of FreeBSD (was Re: Clang builds a working Linux Kernel)

Antonio Vieiro antonio at antonioshome.net
Sun Oct 31 04:13:43 PDT 2010


Hi all,

As promised a quick report on my advances. I got to compile the whole
llvm/clang, but it core dumps. Basic instructions are (as from
http://clang.llvm.org/get_started.html) like so:

cd /code
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ../..
mkdir build && cd build

Now, instead of
../llvm/configure
You should add some extra stuff, like so:
../llvm/configure --enable-optimized --prefix=/opt/llvm NM=/usr/sfw/bin/gnm
(as per http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-March/030392.html).

After that a "gmake" should build everything.

"gmake install" fails (due to some Makefile problems).

The resulting "clang" core-dumps when compiling a simple file. I'll
try to contact llvm/clang guys to see what's going on, but that must
be deferred to another future weekend.

Cheers,
Antonio


2010/10/30 Antonio Vieiro <antonio at antonioshome.net>:
> I will try to compile llvm/clang during this weekend, if time permits.
> I'll post my findings here (if you consider this an appropriate list
> for these sort of things).
>
> It seems that the built-in assembler is able now to compile the whole FreeBSD
>
> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-October/011813.html
>
> Cheers,
> Antonio
>
> 2010/10/26 Jesus Cea <jcea at jcea.es>:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 26/10/10 17:48, Joerg Schilling wrote:
>>> If you get it compiled please write a short instruction on what you did.
>>> I am interested to do tests with clang on Solaris.
>>
>> +1. Same here. I am very interested in being able to replace GCC with
>> CLANG. Better code, faster compilation and a "hard dependency" less (the
>> code should be able to be compiled with ANY C compiler, beside bugs in
>> the compiler or wrong asumptions in Illumos).
>>
>> - --
>> Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
>> jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
>> jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
>> .                              _/_/  _/_/    _/_/          _/_/  _/_/
>> "Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
>> "My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
>> "El amor es poner tu felicidad en la felicidad de otro" - Leibniz
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iQCVAwUBTMcBd5lgi5GaxT1NAQLW/wP9E12tFT+hfle9yLrlZOsRFfJgc/nkW+oK
>> +K3Hxw2UFF/oMRJto/AfT+7ypxXl9od3QdbIk7znoqas60LrD8zd+STkwbzAL/IV
>> NbAuWXAm+9oTUrWmWG0jty2dy7XQ5ArPSkWbk76u0WA7VJeoSkOGKATZZCtYORdo
>> Pfk15TntVRQ=
>> =pmWI
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> Discuss mailing list
>> Discuss at lists.illumos.org
>> http://lists.illumos.org/m/listinfo/discuss
>>
>



More information about the Discuss mailing list