Hi These are: ======================= llvm[2]: Linking Release Object Library LLVMbzip2.o gmake[2]: Leaving directory `/homes/myuser/LLVM/llvmobj/lib/Support/bzip2' gmake[1]: Leaving directory `/homes/myuser/LLVM/llvmobj/lib/Support' gmake[1]: Entering directory `/homes/myuser/LLVM/llvmobj/utils' gmake[2]: Entering directory `/homes/myuser/LLVM/llvmobj/utils/Burg' llvm[2]: Compiling be.c for Release build llvm[2]: Compiling burs.c for Release build llvm[2]: Compiling closure.c for Release build llvm[2]: Compiling delta.c for Release build llvm[2]: Compiling fe.c for Release build llvm[2]: Compiling gram.tab.c for Release build /usr/lib/bison.simple: In function `yyparse': /usr/lib/bison.simple:361: warning: implicit declaration of function `free' llvm[2]: Compiling item.c for Release build llvm[2]: Compiling lex.c for Release build llvm[2]: Compiling list.c for Release build llvm[2]: Compiling main.c for Release build llvm[2]: Compiling map.c for Release build llvm[2]: Compiling nonterminal.c for Release build llvm[2]: Compiling operator.c for Release build llvm[2]: Compiling pattern.c for Release build llvm[2]: Compiling plank.c for Release build llvm[2]: Compiling queue.c for Release build llvm[2]: Compiling rule.c for Release build llvm[2]: Compiling string.c for Release build llvm[2]: Compiling symtab.c for Release build llvm[2]: Compiling table.c for Release build llvm[2]: Compiling trim.c for Release build 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 Thanks --- Chris Lattner <sabre at nondot.org> wrote:> On Sat, 12 Mar 2005, xavier wrote: > > Hi > > I am trying to build the llvm tools following the instructions here: > > http://llvm.cs.uiuc.edu/docs/CFEBuildInstrs.html > > But I get this error: > > /zalloc.c:9: error: conflicting types for 'malloc' > > I am using gcc 3.4.1 > > What can be the problem? > > Can you give us more details? When does that occur? Can you send about > 10 lines of output from before that? > > -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
Chris Lattner
2005-Mar-12 20:18 UTC
[LLVMdev] GCC 3.4.1 and conflicting types for 'malloc'
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 appreciatedOk, 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/
Apparently Analagous Threads
- [LLVMdev] GCC 3.4.1 and conflicting types for 'malloc' (2)
- [LLVMdev] GCC 3.4.1 and conflicting types for 'malloc' (2)
- [LLVMdev] GCC 3.4.1 and conflicting types for 'malloc'
- [LLVMdev] GCC 3.4.1 and conflicting types for 'malloc' (2)
- [LLVMdev] PATCH: Use size reduction -- wave1