Hi,
Last night's attempt to build llvmgcc4 with svn head ends in this .
This is on an x86 FC5 environment.
/home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/build-llvmgcc/gcc/xgcc
-B/home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/build-llvmgcc/gcc/
-B/home/ramana/llvm/install-llvm/i686-pc-linux-gnu/bin/
-B/home/ramana/llvm/install-llvm/i686-pc-linux-gnu/lib/
-isystem /home/ramana/llvm/install-llvm/i686-pc-linux-gnu/include
-isystem /home/ramana/llvm/install-llvm/i686-pc-linux-gnu/sys-include -c
-DHAVE_CONFIG_H -O2 -g -O2 -I.
-I/home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/libiberty/../include -W
-Wall -Wtraditional -pedantic
/home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/libiberty/strsignal.c -o
strsignal.o
/home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/libiberty/strsignal.c: In
function ‘psignal’:
/home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/libiberty/strsignal.c:562:
error: argument ‘signo’ doesn’t match prototype
/usr/include/signal.h:141: error: prototype declaration
/home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/libiberty/strsignal.c:562:
error: argument ‘message’ doesn’t match prototype
/usr/include/signal.h:141: error: prototype declaration
/home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/libiberty/strsignal.c:567:
warning: comparison between signed and unsigned
make[1]: *** [strsignal.o] Error 1
Configured with the following options.
/home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/configure
--enable-languages=c,c++ --prefix=/home/ramana/llvm/install-llvm
--disable-shared --with-newlib
--enable-llvm=/home/ramana/llvm/llvm/build-llvm/builddir
--enable-checking
For some strange reason the prototype of psignal is different from the
headers .
extern void psignal (int __sig, __const char *__s);
# 153 "/usr/include/signal.h" 3 4
void
psignal (signo, message)
unsigned signo;
char *message;
I see that there is a patch for this here.
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01359.html
Should be simple enough to commit ?
--
cheers
Ramana
Ramana Radhakrishnan
GNU Tools
Celunite Inc (www.celunite.com)
3rd Floor, Business Avenue
Lane 6 North Main Road
Koregaon Park
Pune 411001
Phone (work) - +912026051367
(mobile) - +919890040009