svadev AT lists.siebelschool.illinois.edu
Subject: Svadev mailing list
List archive
- From: Umesh Kalappa <umesh.kalappa0 AT gmail.com>
- To: Fábio Resner <fabiusks AT gmail.com>
- Cc: svadev AT cs.uiuc.edu
- Subject: Re: [svadev] SAFECode's whole-program analysis features
- Date: Wed, 9 May 2012 11:34:54 +0530
- List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev>
- List-id: <svadev.cs.uiuc.edu>
Hi Resener,
May be i'm thinking loud here ,Please can you try to link with static libraries i.e something like
clang -g -fmemsafety -o test test.c /usr/local/lib/libsc_dbg_rt.a
/usr/local/lib/libpoolalloc_bitmap.a -lstdc++
Thanks
~Umesh
On Tue, May 8, 2012 at 7:45 PM, Fábio Resner <fabiusks AT gmail.com> wrote:
Hi,I'm having some trouble now while trying to compile with:clang -flto -use-gold-plugin -fmemsafety -o file file1.o file2.o ... -L$PREFIX/lib/usr/bin/ld: error: cannot find -lsc_dbg_rt/usr/bin/ld: error: cannot find -lpoolalloc_bitmap/usr/bin/ld: error: cannot find -lgdtoalto-llvm.o-2wLqPD:ld-temp.o:function main: error: undefined reference to 'poolargvregister'lto-llvm.o-2wLqPD:ld-temp.o:function main: error: undefined reference to 'pool_register_stack_debug'lto-llvm.o-2wLqPD:ld-temp.o:function main: error: undefined reference to 'boundscheckui_debug'lto-llvm.o-2wLqPD:ld-temp.o:function main: error: undefined reference to 'poolcheckui_debug'lto-llvm.o-2wLqPD:ld-temp.o:function main: error: undefined reference to 'pool_register_debug'lto-llvm.o-2wLqPD:ld-temp.o:function main: error: undefined reference to 'exactcheck2_debug'lto-llvm.o-2wLqPD:ld-temp.o:function main: error: undefined reference to 'fastlscheck_debug'lto-llvm.o-2wLqPD:ld-temp.o:function main: error: undefined reference to 'boundscheckui_debug'lto-llvm.o-2wLqPD:ld-temp.o:function main: error: undefined reference to 'poolcheckui_debug'lto-llvm.o-2wLqPD:ld-temp.o:function main: error: undefined reference to 'exactcheck2_debug'lto-llvm.o-2wLqPD:ld-temp.o:function main: error: undefined reference to 'fastlscheck_debug'lto-llvm.o-2wLqPD:ld-temp.o:function pool_ctor: error: undefined reference to 'pool_init_runtime'clang: error: linker command failed with exit code 1 (use -v to see invocation)where ld is the ld-new.How do I get those libraries installed?Thanks,--On Mon, May 7, 2012 at 5:30 PM, Fábio Resner <fabiusks AT gmail.com> wrote:
It's working.I've done the process again with the newest version of Bison and it runs fine.Maybe I've done something with the old version which is running into problems.Thanks,--On Mon, May 7, 2012 at 4:26 PM, Fábio Resner <fabiusks AT gmail.com> wrote:
No problems hehe,maybe I'm doing something wrong!And if it is really some kind of issue I'll report later!Thanks,--On Mon, May 7, 2012 at 4:14 PM, John Criswell <criswell AT illinois.edu> wrote:
On 5/7/12 2:08 PM, Fábio Resner wrote:Sorry I couldn't solve the gold problem.I'm pretty sure that I've done everything like the gold-plugin document,
but anyways I'll try the hole process again from the beginning and if I get to the same errorI'll try to post to llvmdev.
Thanks for your support!
-- John T.
On Mon, May 7, 2012 at 3:56 PM, John Criswell <criswell AT illinois.edu> wrote:
On 5/7/12 1:35 PM, Fábio Resner wrote:I'm not sure what's wrong. Did you use --enable-gold and --enable-plugins on the configure command line?Now I'm having problems while running $make all-gold
Here is the error message:
cc1plus: warnings being treated as errorsIn file included from ../../src/gold/_expression_.cc:33:../../src/gold/script-c.h:221: error: ‘yylex’ initialized and declared ‘extern’../../src/gold/script-c.h:221: error: ‘YYSTYPE’ was not declared in this scope../../src/gold/script-c.h:221: error: expected primary-_expression_ before ‘,’ token../../src/gold/script-c.h:221: error: expected primary-_expression_ before ‘void’../../src/gold/script-c.h:221: error: initializer _expression_ list treated as compound _expression_make[3]: *** [_expression_.o] Error 1make[3]: Leaving directory `/home/fabio/safecode/binutils/build/gold'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/home/fabio/safecode/binutils/build/gold'make[1]: *** [all] Error 2make[1]: Leaving directory `/home/fabio/safecode/binutils/build/gold'make: *** [all-gold] Error 2
I think you should ask on llvmdev what might be wrong. I can't tell what else might be the problem (as I don't recall having seen this error message before).
-- John T.
--
Fabio Resner.
Fabio Resner.
Fabio Resner.
Fabio Resner.
_______________________________________________
svadev mailing list
svadev AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/svadev
- Re: [svadev] SAFECode's whole-program analysis features, (continued)
- Re: [svadev] SAFECode's whole-program analysis features, Fábio Resner, 05/07/2012
- Re: [svadev] SAFECode's whole-program analysis features, John Criswell, 05/07/2012
- Re: [svadev] SAFECode's whole-program analysis features, Fábio Resner, 05/07/2012
- Re: [svadev] SAFECode's whole-program analysis features, John Criswell, 05/07/2012
- Re: [svadev] SAFECode's whole-program analysis features, Fábio Resner, 05/07/2012
- Re: [svadev] SAFECode's whole-program analysis features, Fábio Resner, 05/07/2012
- Re: [svadev] SAFECode's whole-program analysis features, Fábio Resner, 05/08/2012
- Re: [svadev] SAFECode's whole-program analysis features, John Criswell, 05/08/2012
- Re: [svadev] SAFECode's whole-program analysis features, Fábio Resner, 05/08/2012
- Re: [svadev] SAFECode's whole-program analysis features, John Criswell, 05/08/2012
- Re: [svadev] SAFECode's whole-program analysis features, John Criswell, 05/07/2012
- Re: [svadev] SAFECode's whole-program analysis features, Umesh Kalappa, 05/09/2012
- Re: [svadev] SAFECode's whole-program analysis features, Fábio Resner, 05/07/2012
Archive powered by MHonArc 2.6.16.