Chris,
Thanks for your answer
Here is the verbose output:
==========================gmake tools-only VERBOSE=1 TOOL_VERBOSE=1
for dir in lib/System lib/Support utils lib tools ; do \
if [ ! -f $dir/Makefile ]; then \
/home/myuser/LLVM/objdir/../srcdir/autoconf/mkinstalldirs $dir; \
cp /home/myuser/LLVM/objdir/../srcdir//$dir/Makefile $dir/Makefile; \
fi; \
(gmake -C $dir all ) || exit 1; \
done
gmake[1]: Entering directory `/home/myuser/LLVM/objdir/lib/System'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/home/myuser/LLVM/objdir/lib/System'
gmake[1]: Entering directory `/home/myuser/LLVM/objdir/lib/Support'
if [ ! -f bzip2/Makefile ]; then \
/home/myuser/LLVM/objdir/../srcdir/autoconf/mkinstalldirs bzip2; \
cp /home/myuser/LLVM/objdir/../srcdir/lib/Support/bzip2/Makefile
bzip2/Makefile; \
fi; \
gmake -C bzip2 all
gmake[2]: Entering directory `/home/myuser/LLVM/objdir/lib/Support/bzip2'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/home/myuser/LLVM/objdir/lib/Support/bzip2'
gmake[1]: Leaving directory `/home/myuser/LLVM/objdir/lib/Support'
gmake[1]: Entering directory `/home/myuser/LLVM/objdir/utils'
for dir in Burg TableGen fpcmp; do \
if [ ! -f $dir/Makefile ]; then \
/home/myuser/LLVM/objdir/../srcdir/autoconf/mkinstalldirs $dir; \
cp /home/myuser/LLVM/objdir/../srcdir/utils/$dir/Makefile $dir/Makefile; \
fi; \
(gmake -C $dir all ) || exit 1; \
done
gmake[2]: Entering directory `/home/myuser/LLVM/objdir/utils/Burg'
llvm[2]: Compiling zalloc.c for Release build
if gcc -I/home/myuser/LLVM/objdir/utils/Burg
-I/home/myuser/LLVM/objdir/../srcdir/utils/Burg
-I/home/myuser/LLVM/objdir/../srcdir/include -I/home/myuser/LLVM/objdir/include
-I/home/myuser/LLVM/objdir/include -I/home/myuser/LLVM/objdir/../srcdir/include
-D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -Wall -W -Wwrite-strings -Wno-unused -c -O3 -DNDEBUG
-fomit-frame-pointer
-v -MD -MT /home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.o -MP -MF
/home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.Cd
/home/myuser/LLVM/objdir/../srcdir/utils/Burg/zalloc.c -o
/home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.o ; \
then /bin/mv -f
"/home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.Cd"
"/home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.d"; \
else /bin/rm -f
"/home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.Cd"; exit 1; fi
Reading specs from
/home/myuser/gcc.3.4.1/lib/../lib/gcc/ia64-unknown-linux-gnu/3.4.1/specs
Configured with: ../gccsrc/gcc-3.4.1/configure --prefix=/home/myuser/gcc.3.4.1
Thread model: posix
gcc version 3.4.1
/home/myuser/gcc.3.4.1/lib/../libexec/gcc/ia64-unknown-linux-gnu/3.4.1/cc1
-quiet -v
-I/home/myuser/LLVM/objdir/utils/Burg
-I/home/myuser/LLVM/objdir/../srcdir/utils/Burg
-I/home/myuser/LLVM/objdir/../srcdir/include -I/home/myuser/LLVM/objdir/include
-I/home/myuser/LLVM/objdir/include -I/home/myuser/LLVM/objdir/../srcdir/include
-iprefix
/home/myuser/gcc.3.4.1/lib/../lib/gcc/ia64-unknown-linux-gnu/3.4.1/ -MD
/home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.d -MF
/home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.Cd -MP -MT
/home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.o -MQ
/home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.o -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -DNDEBUG
/home/myuser/LLVM/objdir/../srcdir/utils/Burg/zalloc.c -quiet -dumpbase zalloc.c
-auxbase-strip
/home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.o -O3 -Wall -W
-Wwrite-strings -Wno-unused
-version -fomit-frame-pointer -o
/tmp/ccqWeqhS.s
ignoring nonexistent directory
"/home/myuser/gcc.3.4.1/lib/../lib/gcc/ia64-unknown-linux-gnu/3.4.1/../../../../ia64-unknown-linux-gnu/include"
ignoring duplicate directory
"/home/myuser/gcc.3.4.1/lib/gcc/ia64-unknown-linux-gnu/3.4.1/include"
ignoring nonexistent directory
"/home/myuser/gcc.3.4.1/lib/gcc/ia64-unknown-linux-gnu/3.4.1/../../../../ia64-unknown-linux-gnu/include"
ignoring duplicate directory "/home/myuser/LLVM/objdir/include"
ignoring duplicate directory
"/home/myuser/LLVM/objdir/../srcdir/include"
#include "..." search starts here:
#include <...> search starts here:
/home/myuser/LLVM/objdir/utils/Burg
/home/myuser/LLVM/objdir/../srcdir/utils/Burg
/home/myuser/LLVM/objdir/../srcdir/include
/home/myuser/LLVM/objdir/include
/home/myuser/gcc.3.4.1/lib/../lib/gcc/ia64-unknown-linux-gnu/3.4.1/include
/usr/local/include
/home/myuser/gcc.3.4.1/include
/usr/include
End of search list.
GNU C version 3.4.1 (ia64-unknown-linux-gnu)
compiled by GNU C version 3.4.1.
GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=125828
/home/myuser/LLVM/objdir/../srcdir/utils/Burg/zalloc.c:9: error: conflicting
types for 'malloc'
/home/myuser/LLVM/objdir/../srcdir/utils/Burg/zalloc.c:9: error: conflicting
types for 'malloc'
gmake[2]: *** [/home/myuser/LLVM/objdir/utils/Burg/Release/zalloc.o] Error 1
gmake[2]: Leaving directory `/home/myuser/LLVM/objdir/utils/Burg'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/home/myuser/LLVM/objdir/utils'
gmake: *** [all] Error 1
==========================
The release I am using is 1.4 and it works fine with the pre compiled front end
under Linux x86,
but it is giving me errors with RedHat for Itanium 2 when I try to build the
tools following the
instructions on the page I mentioned before
Thanks for your help
--- Chris Lattner <sabre at nondot.org> wrote:> On Sat, 12 Mar 2005, xavier wrote:
> > llvm[2]: Compiling zalloc.c for Release build
> > /homes/myuser/LLVM/llvmobj/../llvmsrc/utils/Burg/zalloc.c:9: error:
conflictin
> > g types for 'malloc'
> > /homes/myuser/LLVM/llvmobj/../llvmsrc/utils/Burg/zalloc.c:9: error:
conflictin
> > g types for 'malloc'
> > gmake[2]: *** [/homes/myuser/LLVM/llvmobj/utils/Burg/Release/zalloc.o]
Error 1
> > gmake[2]: Leaving directory
`/homes/myuser/LLVM/llvmobj/utils/Burg'
> > gmake[1]: *** [all] Error 1
> > gmake[1]: Leaving directory `/homes/myuser/LLVM/llvmobj/utils'
> > =======================> >
> > Any help on this will be greatly appreciated
>
> Ok, that is very wierd: line 9 is: fatal(const char *name, int line)
>
> Are you using an up-to-date check out from CVS or LLVM 1.4? Can you send
> the output of "make VERBOSE=1" in that directory?
>
> -Chris
>
> --
> http://nondot.org/sabre/
> http://llvm.cs.uiuc.edu/
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com