Hi Sitvanit,> 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.actually, no, this just means that you are using a shell that doesn't support this syntax. What shell are you using? Try export CC=gcc44 export CXX=g++44 ../llvm/configure Ciao, Duncan.> > 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 >> >> >> > > > >
PS: Do you actually have gcc-4.4 installed and in your path? What do the commands gcc44 -v and g++44 -v output? On 15/07/12 10:59, Duncan Sands wrote:> Hi Sitvanit, > >> 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. > > actually, no, this just means that you are using a shell that doesn't support > this syntax. What shell are you using? Try > export CC=gcc44 > export CXX=g++44 > ../llvm/configure > > Ciao, Duncan.
In order to isolate the problem I am now running on a machine whose only
installation of gcc/g++ is gcc44, g++44
For this installation I am getting the following error:
COMPILE:
clang_linux/asan-i386/i386:
/gpfs/haifa-p4/00/pincette/sitvanit/LLVM/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc
/.../sitvanit/LLVM/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:19:10:
fatal error:
'new' file not found
#include <new>
^
1 error generated.
make[5]: ***
[/gpfs/haifa-p4/00/pincette/sitvanit/LLVM/build/tools/clang/runtime/compiler-rt/clang_linux/asan-i386/i386/SubDir.lib__asan/asan_new_delete.o]
Error 1
make[5]: Leaving directory
`/gpfs/haifa-p4/00/pincette/sitvanit/LLVM/llvm/projects/compiler-rt'
make[4]: *** [BuildRuntimeLibraries] Error 2
make[4]: Leaving directory
`/gpfs/haifa-p4/00/pincette/sitvanit/LLVM/build/tools/clang/runtime/compiler-rt'
make[3]: *** [compiler-rt/.makeall] Error 2
make[3]: Leaving directory
`/gpfs/haifa-p4/00/pincette/sitvanit/LLVM/build/tools/clang/runtime'
make[2]: *** [all] Error 1
make[2]: Leaving directory
`/gpfs/haifa-p4/00/pincette/sitvanit/LLVM/build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory
`/gpfs/haifa-p4/00/pincette/sitvanit/LLVM/build/tools'
make: *** [all] Error 1
=======================================================
The shell I am using is tcsh (it doesn't recognize the command
"export")
The outputs to the gcc44 -v, g++44 -c:
build> gcc44 -v
Using built-in specs.
Target: i386-redhat-linux6E
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --disable-gnu-unique-object
--with-as=/usr/libexec/binutils220/as --enable-languages=c,c++,fortran
--disable-libgcj
--with-mpfr=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/mpfr-install/
--with-ppl=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/ppl-install
--with-cloog=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/cloog-install
--with-tune=generic --with-arch=i586 --build=i386-redhat-linux6E
Thread model: posix
gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)
build> g++44 -v
Using built-in specs.
Target: i386-redhat-linux6E
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --disable-gnu-unique-object
--with-as=/usr/libexec/binutils220/as --enable-languages=c,c++,fortran
--disable-libgcj
--with-mpfr=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/mpfr-install/
--with-ppl=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/ppl-install
--with-cloog=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/cloog-install
--with-tune=generic --with-arch=i586 --build=i386-redhat-linux6E
Thread model: posix
gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)
Sitvanit Ruah
Formal Verification Group
IBM Haifa Research Laboratory
Tel: 972-4-828-1249
From: Duncan Sands <baldrick at free.fr>
To: llvmdev at cs.uiuc.edu,
Date: 15/07/2012 12:37 PM
Subject: Re: [LLVMdev] Compiling llvm and Clang on Linux
Sent by: llvmdev-bounces at cs.uiuc.edu
PS: Do you actually have gcc-4.4 installed and in your path? What do the
commands
gcc44 -v
and
g++44 -v
output?
On 15/07/12 10:59, Duncan Sands wrote:> Hi Sitvanit,
>
>> 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.
>
> actually, no, this just means that you are using a shell that doesn't
support> this syntax. What shell are you using? Try
> export CC=gcc44
> export CXX=g++44
> ../llvm/configure
>
> Ciao, Duncan.
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev