[LLVMdev] Compiling llvm and Clang on Linux

Sitvanit Ruah RUAH at il.ibm.com
Sun Jul 15 00:34:56 PDT 2012


I tried

 CC=gcc44 CXX=g++44 ../llvm/configure

and got

CC=gcc44: Command not found

So the syntax is indeed as wriiten in the help.

Sitvanit Ruah
Formal Verification Group
IBM Haifa Research Laboratory
Tel:  972-4-828-1249




From:	Duncan Sands <baldrick at free.fr>
To:	Sitvanit Ruah/Haifa/IBM at IBMIL,
Cc:	Konstantin Tokarev <annulen at yandex.ru>, llvmdev at cs.uiuc.edu,
            llvmdev-bounces at cs.uiuc.edu
Date:	13/07/2012 08:50 AM
Subject:	Re: [LLVMdev] Compiling llvm and Clang on Linux
Sent by:	Duncan Sands <duncan.sands at gmail.com>



Hi Sitvanit,

On 12/07/12 22:18, Sitvanit Ruah wrote:
> I ran "configure -help " and it says
>
> usage: configure  [OPTION]..... [VAR=VALUE]
>
> So I assume configure CC=... is the right syntax. Isn't it?

while you might think so, try it the other way round.  Also, by doing
   make VERBOSE=1
you can see which compiler is really being used.

Ciao, Duncan.

>
> Regard,
> Sitvanit
>
>
>
>
>
>
>
> From:		 Konstantin Tokarev <annulen at yandex.ru>
> To:		 Sitvanit Ruah/Haifa/IBM at IBMIL,
> Cc:		 llvmdev-bounces at cs.uiuc.edu, llvmdev at cs.uiuc.edu, Duncan Sands
>              <baldrick at free.fr>
> Date:		 12/07/2012 05:09 PM
> Subject:		 Re:[LLVMdev] Compiling llvm and Clang on Linux
>
>
>
>
>
>> Yes, it is the same error referring to 4.1.2.
>>
>> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c+
>> +/4.1.2/i386-redhat-linux/bits/gthr-default.h:114:1: error: weakref
>> declaration must have internal
>> linkage
>> __gthrw(pthread_key_delete)
>>
>> There are several such errors.
>
> Are you sure you are usin gcc44? Don't you need to run CC=gcc44 CXX=g+
> +44 ../llvm/configure instead?
>
>   --
> Regards,
> Konstantin
>
>
>







More information about the llvm-dev mailing list