> It builds here (Linux x86_64), I use the following configure line: > ../llvm-gcc4.2/configure > --prefix=/home/edwin/llvm-svn/obj42/../install --program-prefix=llvm- > --enable-llvm=/home/edwin/llvm-svn/llvm/ --disable-multilib > --enable-checking=release --enable-languages=c,c++I'm using (x86-64 linux, gcc 4.3) ../gcc-4.2.llvm/configure --prefix=/usr/local/gnat-llvm --enable-languages=c,c++ --enable-checking --enable-llvm=$HOME/LLVM/llvm-objects --disable-shared --disable-bootstrap --disable-multilib Ciao, Duncan.
On 2008-10-01 17:36, Duncan Sands wrote:>> It builds here (Linux x86_64), I use the following configure line: >> ../llvm-gcc4.2/configure >> --prefix=/home/edwin/llvm-svn/obj42/../install --program-prefix=llvm- >> --enable-llvm=/home/edwin/llvm-svn/llvm/ --disable-multilib >> --enable-checking=release --enable-languages=c,c++ >> > > I'm using (x86-64 linux, gcc 4.3) >Yep, same here: gcc version 4.3.2 (Debian 4.3.2-1)> ../gcc-4.2.llvm/configure --prefix=/usr/local/gnat-llvm --enable-languages=c,c++ --enable-checking --enable-llvm=$HOME/LLVM/llvm-objects --disable-shared --disable-bootstrap --disable-multilib >With those flags it fails for me too: /home/edwin/llvm-svn/objnew/./gcc/xgcc -B/home/edwin/llvm-svn/objnew/./gcc/ -B/usr/local/gnat-llvm/x86_64-unknown-linux-gnu/bin/ -B/usr/local/gnat-llvm/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/gnat-llvm/x86_64-unknown-linux-gnu/include -isystem /usr/local/gnat-llvm/x86_64-unknown-linux-gnu/sys-include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I../../../llvm-gcc4.2/libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes -Wc++-compat ../../../llvm-gcc4.2/libiberty/cplus-dem.c -o cplus-dem.o ../../../llvm-gcc4.2/libiberty/cplus-dem.c:55: warning: function declaration isn’t a prototype ../../../llvm-gcc4.2/libiberty/cplus-dem.c:55: error: conflicting types for ‘malloc’ ../../../llvm-gcc4.2/libiberty/cplus-dem.c:56: warning: function declaration isn’t a prototype ../../../llvm-gcc4.2/libiberty/cplus-dem.c: In function ‘code_for_qualifier’: ../../../llvm-gcc4.2/libiberty/cplus-dem.c:582: warning: implicit declaration of function ‘abort’ ../../../llvm-gcc4.2/libiberty/cplus-dem.c:582: warning: incompatible implicit declaration of built-in function ‘abort’ ../../../llvm-gcc4.2/libiberty/cplus-dem.c: In function ‘qualifier_string’: ../../../llvm-gcc4.2/libiberty/cplus-dem.c:622: warning: incompatible implicit declaration of built-in function ‘abort’ ../../../llvm-gcc4.2/libiberty/cplus-dem.c: In function ‘squangle_mop_up’: ../../../llvm-gcc4.2/libiberty/cplus-dem.c:1082: warning: implicit declaration of function ‘free’ ../../../llvm-gcc4.2/libiberty/cplus-dem.c: In function ‘demangle_qualified’: ../../../llvm-gcc4.2/libiberty/cplus-dem.c:3177: warning: implicit declaration of function ‘atoi’ make[2]: *** [cplus-dem.o] Error 1 make[2]: Leaving directory `/home/edwin/llvm-svn/objnew/x86_64-unknown-linux-gnu/libiberty' make[1]: *** [all-target-libiberty] Error 2
On Wednesday 01 October 2008 16:44:11 Török Edwin wrote:> On 2008-10-01 17:36, Duncan Sands wrote: > >> It builds here (Linux x86_64), I use the following configure line: > >> ../llvm-gcc4.2/configure > >> --prefix=/home/edwin/llvm-svn/obj42/../install --program-prefix=llvm- > >> --enable-llvm=/home/edwin/llvm-svn/llvm/ --disable-multilib > >> --enable-checking=release --enable-languages=c,c++ > >> > > > > I'm using (x86-64 linux, gcc 4.3) > > > > Yep, same here: gcc version 4.3.2 (Debian 4.3.2-1) > > ../gcc-4.2.llvm/configure --prefix=/usr/local/gnat-llvm --enable-languages=c,c++ --enable-checking --enable-llvm=$HOME/LLVM/llvm-objects --disable-shared --disable-bootstrap --disable-multilib > > > > With those flags it fails for me too:I can't get it to not fail: even if I use the flags that worked for you it fails for me... Maybe the difference is in how llvm was built? I configured using only default values, i.e. without passing any parameters to configure. Ciao, Duncan.