From: Nikita Andreev (lestat_at_kemsu.ru)
Date: Mon Feb 15 2010 - 01:16:38 PST
Hello Paul and everyone. Today I've ran into some strange upcc script behaviour. I've got my own GASP analysis tool and when I try to compile sample code this way: /opt/bupc-runtime-2.8.0-gasp/bin/upcc --network=udp --inst-toolname=trace-mod /opt/trace-mod-1.0.0/share/upcall.c -L/opt/trace-mod-1.0.0/lib -ltracer --inst test.c everything go fine. But when I invoke: /opt/bupc-runtime-2.8.0-gasp/bin/upcc --inst-toolname=trace-mod /opt/trace-mod-1.0.0/share/upcall.c -L/opt/trace-mod-1.0.0/lib -ltracer --inst test.c I get the following errors: upcc: error running '/usr/bin/gmake --no-print-directory' to link application: /opt/bupc-runtime-2.8.0-gasp/opt_inst/lib/libupcr-smp-seq.a(upcr_globfiles-smp-seq.o): In function `upcri_pevt_endfn': upcr_globfiles.c:(.text+0x86c): undefined reference to `gasp_event_notify' /opt/bupc-runtime-2.8.0-gasp/opt_inst/lib/libupcr-smp-seq.a(upcr_globfiles-smp-seq.o): In function `_upcr_notify': upcr_globfiles.c:(.text+0x912): undefined reference to `gasp_event_notify' upcr_globfiles.c:(.text+0x949): undefined reference to `gasp_event_notify' /opt/bupc-runtime-2.8.0-gasp/opt_inst/lib/libupcr-smp-seq.a(upcr_globfiles-smp-seq.o): In function `upcri_convertandbin_ilist': upcr_globfiles.c:(.text+0xaa6): undefined reference to `gasp_event_notify' upcr_globfiles.c:(.text+0xfa7): undefined reference to `gasp_event_notify' ... I know compiling without network option doesn't make sense. But user can forget to pass this option to my wrapper script and will get this error which is misleading. From error log it looks like it can't link with GASP tool library. Is it a compiler bug or normal behaviour? Nikita