[LLVMdev] llvm-gcc linux build broken

Török Edwin edwintorok at gmail.com
Wed Oct 1 07:44:11 PDT 2008


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





More information about the llvm-dev mailing list