But while trying to do the make on lttng-modules i am getting the following error<div><br></div><div><div>root@lttng:/home/meher/ltt/lttng-modules-2.0.4# make</div><div>make -C /lib/modules/3.1.10-00085-gc7ae3c9/build M=/home/meher/ltt/lttng-modules-2.0.4 modules</div>
<div>make: *** /lib/modules/3.1.10-00085-gc7ae3c9/build: No such file or directory. Stop.</div><div>make: *** [default] Error 2</div><div><br></div><div>Thanks & Regards</div><div>Meher</div><div><br></div><div><br></div>
<div><br></div><br><div class="gmail_quote">On Tue, Sep 25, 2012 at 12:06 AM, meher chaitanya <span dir="ltr"><<a href="mailto:meher.146@gmail.com" target="_blank">meher.146@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi I followed the way you specified ./configure ran successfully . But when i am trying to do the make its reporting the following errors <br>
</blockquote><div> </div><div>Making all in hello</div><div>make[3]: Entering directory `/home/nvidia/ltt/lttng-ust-2.0.4/tests/hello'</div><div>make[3]: Warning: File `.deps/tp.Po' has modification time 1.6e+04 s in the future</div>
<div> CC tp.o</div><div> CCLD hello</div><div>../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_object_table_append'</div><div>../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `align_shm'</div>
<div>../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_object_table_create'</div><div>../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `_get_num_possible_cpus'</div><div>../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `zalloc_shm'</div>
<div>../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `__num_possible_cpus'</div><div>../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_object_table_append_shadow'</div><div>../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_object_table_destroy'</div>
<div>collect2: ld returned 1 exit status</div><div>make[3]: *** [hello] Error 1</div><div>make[3]: Leaving directory `/home/nvidia/ltt/lttng-ust-2.0.4/tests/hello'</div><div>make[2]: *** [all-recursive] Error 1</div>
<div>
make[2]: Leaving directory `/home/nvidia/ltt/lttng-ust-2.0.4/tests'</div><div>make[1]: *** [all-recursive] Error 1</div><div>make[1]: Leaving directory `/home/nvidia/ltt/lttng-ust-2.0.4'</div><div>make: *** [all] Error 2</div>
<div><br></div><div>can you kindly help me with this error. </div><div class="im"><div><br></div><div><br></div><div>Thanks & Regards </div><div>Meher Chaitanya</div><div><br></div><div><br></div><div> </div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The change that you applied to your lttng-ust <a href="http://configure.ac" target="_blank">configure.ac</a> should look<div><div class="h5"><br>
like this:<br>
<br>
diff --git a/<a href="http://configure.ac" target="_blank">configure.ac</a> b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
index ea73243..efb16d4 100644<br>
--- a/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
+++ b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
@@ -209,6 +209,7 @@ changequote([,])dnl<br>
s390) LIBFORMAT="elf32-s390"; NO_UNALIGNED_ACCESS=1 ;;<br>
s390x) LIBFORMAT="elf64-s390"; NO_UNALIGNED_ACCESS=1 ;;<br>
armv5) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;;<br>
+ armv7l) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;;<br>
arm) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;;<br>
mips*) LIBFORMAT=""; NO_UNALIGNED_ACCESS=1;;<br>
*) AC_MSG_ERROR([unable to detect library format (unsupported<br>
architecture ($host_cpu)?)]) ;;<br>
<br>
Make sure after making this change that you run the autoreconf command<br>
like this:<br>
<br>
autoreconf -i -v<br>
<br>
And then rerun ./configure with your platform specific flags.<br>
The configure test should now pass without problem :).<br>
<br>
Thanks,<br>
<br>
Christian<br>
<div><div><br>
On Mon, Sep 24, 2012 at 12:31 PM, meher chaitanya <<a href="mailto:meher.146@gmail.com" target="_blank">meher.146@gmail.com</a>> wrote:<br>
> 1) I am using NFS file system and i am directly trying to set up the lttng<br>
> tool on my target ( its 3.1 kernel ) ( NO CROSS COMPILING : downloading it<br>
> on target and trying to set up )<br>
> a) downloaded and extracted the files<br>
> b) userspace-rcu was successfully installed ,<br>
> configured and compiled using make and make install<br>
> c) But for Lttng-ust i am getting the error "<br>
> checking library format for the host system... configure: error: unable to<br>
><br>
><br>
> detect library format (unsupported architecture (armv7l)? "<br>
> I tried to change the <a href="http://configure.ac" target="_blank">configure.ac</a> file to make a<br>
> new entry for armv7l . but even then this issue reproduces.<br>
><br>
> can you help me with this as i am new to LTTNG and this is very much needed<br>
> for my project . Thanks in advance.<br>
><br>
><br>
> Thanks & Regards<br>
><br>
> On Mon, Sep 24, 2012 at 3:46 PM, meher chaitanya <<a href="mailto:meher.146@gmail.com" target="_blank">meher.146@gmail.com</a>><br>
> wrote:<br>
>><br>
>> root@lttng:/home/ltt/lttng-ust-2.0.4# ./configure<br>
>> checking build system type... armv7l-unknown-linux-gnueabi<br>
>> checking host system type... armv7l-unknown-linux-gnueabi<br>
>> checking target system type... armv7l-unknown-linux-gnueabi<br>
>> checking for a BSD-compatible install... /usr/bin/install -c<br>
>> checking whether build environment is sane... yes<br>
>> checking for a thread-safe mkdir -p... /bin/mkdir -p<br>
>> checking for gawk... no<br>
>> checking for mawk... mawk<br>
>> checking whether make sets $(MAKE)... yes<br>
>> checking whether make supports nested variables... yes<br>
>> checking for a sed that does not truncate output... /bin/sed<br>
>> checking for gcc... gcc<br>
>> checking whether the C compiler works... yes<br>
>> checking for C compiler default output file name... a.out<br>
>> checking for suffix of executables...<br>
>> checking whether we are cross compiling... no<br>
>> checking for suffix of object files... o<br>
>> checking whether we are using the GNU C compiler... yes<br>
>> checking whether gcc accepts -g... yes<br>
>> checking for gcc option to accept ISO C89... none needed<br>
>> checking for style of include used by make... GNU<br>
>> checking dependency style of gcc... gcc3<br>
>> checking for g++... g++<br>
>> checking whether we are using the GNU C++ compiler... yes<br>
>> checking whether g++ accepts -g... yes<br>
>> checking dependency style of g++... gcc3<br>
>> checking whether make sets $(MAKE)... (cached) yes<br>
>> checking how to print strings... printf<br>
>> checking for a sed that does not truncate output... (cached) /bin/sed<br>
>> checking for grep that handles long lines and -e... /bin/grep<br>
>> checking for egrep... /bin/grep -E<br>
>> checking for fgrep... /bin/grep -F<br>
>> checking for ld used by gcc... /usr/bin/ld<br>
>> checking if the linker (/usr/bin/ld) is GNU ld... yes<br>
>> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B<br>
>> checking the name lister (/usr/bin/nm -B) interface... BSD nm<br>
>> checking whether ln -s works... yes<br>
>> checking the maximum length of command line arguments... 1572864<br>
>> checking whether the shell understands some XSI constructs... yes<br>
>> checking whether the shell understands "+="... yes<br>
>> checking how to convert armv7l-unknown-linux-gnueabi file names to<br>
>> armv7l-unknown-linux-gnueabi format... func_convert_file_noop<br>
>> checking how to convert armv7l-unknown-linux-gnueabi file names to<br>
>> toolchain format... func_convert_file_noop<br>
>> checking for /usr/bin/ld option to reload object files... -r<br>
>> checking for objdump... objdump<br>
>> checking how to recognize dependent libraries... pass_all<br>
>> checking for dlltool... no<br>
>> checking how to associate runtime and link libraries... printf %s\n<br>
>> checking for ar... ar<br>
>> checking for archiver @FILE support... @<br>
>> checking for strip... strip<br>
>> checking for ranlib... ranlib<br>
>> checking command to parse /usr/bin/nm -B output from gcc object... ok<br>
>> checking for sysroot... no<br>
>> checking for mt... mt<br>
>> checking if mt is a manifest tool... no<br>
>> checking how to run the C preprocessor... gcc -E<br>
>> checking for ANSI C header files... yes<br>
>> checking for sys/types.h... yes<br>
>> checking for sys/stat.h... yes<br>
>> checking for stdlib.h... yes<br>
>> checking for string.h... yes<br>
>> checking for memory.h... yes<br>
>> checking for strings.h... yes<br>
>> checking for inttypes.h... yes<br>
>> checking for stdint.h... yes<br>
>> checking for unistd.h... yes<br>
>> checking for dlfcn.h... yes<br>
>> checking for objdir... .libs<br>
>> checking if gcc supports -fno-rtti -fno-exceptions... no<br>
>> checking for gcc option to produce PIC... -fPIC -DPIC<br>
>> checking if gcc PIC flag -fPIC -DPIC works... yes<br>
>> checking if gcc static flag -static works... yes<br>
>> checking if gcc supports -c -o file.o... yes<br>
>> checking if gcc supports -c -o file.o... (cached) yes<br>
>> checking whether the gcc linker (/usr/bin/ld) supports shared libraries...<br>
>> yes<br>
>> checking whether -lc should be explicitly linked in... no<br>
>> checking dynamic linker characteristics... GNU/Linux ld.so<br>
>> checking how to hardcode library paths into programs... immediate<br>
>> checking whether stripping libraries is possible... yes<br>
>> checking if libtool supports shared libraries... yes<br>
>> checking whether to build shared libraries... yes<br>
>> checking whether to build static libraries... yes<br>
>> checking how to run the C++ preprocessor... g++ -E<br>
>> checking for ld used by g++... /usr/bin/ld<br>
>> checking if the linker (/usr/bin/ld) is GNU ld... yes<br>
>> checking whether the g++ linker (/usr/bin/ld) supports shared libraries...<br>
>> yes<br>
>> checking for g++ option to produce PIC... -fPIC -DPIC<br>
>> checking if g++ PIC flag -fPIC -DPIC works... yes<br>
>> checking if g++ static flag -static works... yes<br>
>> checking if g++ supports -c -o file.o... yes<br>
>> checking if g++ supports -c -o file.o... (cached) yes<br>
>> checking whether the g++ linker (/usr/bin/ld) supports shared libraries...<br>
>> yes<br>
>> checking dynamic linker characteristics... (cached) GNU/Linux ld.so<br>
>> checking how to hardcode library paths into programs... immediate<br>
>> checking for dlopen in -ldl... yes<br>
>> checking for pthread_create in -lpthread... yes<br>
>> checking for uuid_generate in -luuid... yes<br>
>> checking for inline... inline<br>
>> checking for stdlib.h... (cached) yes<br>
>> checking for GNU libc compatible malloc... yes<br>
>> checking for gettimeofday... yes<br>
>> checking for munmap... yes<br>
>> checking for socket... yes<br>
>> checking for strerror... yes<br>
>> checking for strtol... yes<br>
>> checking for sched_getcpu... yes<br>
>> checking for sysconf... yes<br>
>> checking for makeinfo... yes<br>
>> checking urcu-bp.h usability... yes<br>
>> checking urcu-bp.h presence... yes<br>
>> checking for urcu-bp.h... yes<br>
>> checking caa_likely()... yes<br>
>> checking for synchronize_rcu_bp in -lurcu-bp... yes<br>
>> checking for call_rcu_bp in -lurcu-bp... yes<br>
>> checking library format for the host system... configure: error: unable to<br>
>> detect library format (unsupported architecture (armv7l)?)<br>
>><br>
>><br>
>> In the <a href="http://configure.ac" target="_blank">configure.ac</a> file i had made an entry for arm7l but even then i am<br>
>> seeing this error . I am doing this on my target machine . can anyone help<br>
>> me with this??<br>
>><br>
><br>
><br>
</div></div><div><div>> _______________________________________________<br>
> lttng-dev mailing list<br>
> <a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br>
> <a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
><br>
</div></div></div></div></blockquote></div><br>
</blockquote></div><br></div>