<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 23, 2016 at 6:05 PM, Jan Stancek <span dir="ltr"><<a href="mailto:jstancek@redhat.com" target="_blank">jstancek@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
<br>
<br>
----- Original Message -----<br>
> From: "$rik@nth" <<a href="mailto:srikanth007m@gmail.com">srikanth007m@gmail.com</a>><br>
> To: "Cyril Hrubis" <<a href="mailto:chrubis@suse.cz">chrubis@suse.cz</a>><br>
> Cc: <a href="mailto:ltp@lists.linux.it">ltp@lists.linux.it</a><br>
> Sent: Wednesday, 23 March, 2016 12:45:23 PM<br>
> Subject: [LTP] ld failed to link numa while compiling migrate_pages01<br>
><br>
> Hi Cyril/LTP Devs,<br>
><br>
> Today i pulled few fixes from master branch [1] on top of last LTP<br>
> release. While compiling i am getting below exception at<br>
> migrate_pages01. Can you help in look into the issue once?<br>
<br>
</span>I don't see anything suspicious in git log. If you go back to few commits<br>
does the problem go away? Any chance you could bisect?<br>
<br>
Other than that, I'd try following:<br>
<br>
diff --git a/testcases/kernel/include/<a href="http://lib.mk" rel="noreferrer" target="_blank">lib.mk</a> b/testcases/kernel/include/<a href="http://lib.mk" rel="noreferrer" target="_blank">lib.mk</a><br>
index f79a1c0197e3..5c97ae2c9edf 100644<br>
--- a/testcases/kernel/include/<a href="http://lib.mk" rel="noreferrer" target="_blank">lib.mk</a><br>
+++ b/testcases/kernel/include/<a href="http://lib.mk" rel="noreferrer" target="_blank">lib.mk</a><br>
@@ -23,7 +23,7 @@ KERNEL_DIR := $(abs_top_builddir)/testcases/kernel<br>
LIBKERNTEST_DIR := $(KERNEL_DIR)/lib<br>
LIBKERNTEST := $(LIBKERNTEST_DIR)/libkerntest.a<br>
CPPFLAGS += $(NUMA_CPPFLAGS) -I$(KERNEL_SRCDIR)/include<br>
-LDLIBS += $(NUMA_LIBS) -lkerntest -lltp<br>
+LDLIBS += -lkerntest -lltp $(NUMA_LIBS)<br>
LDFLAGS += -L$(LIBKERNTEST_DIR)<br>
<br></blockquote><div>Thanks Jan, This revert change helped to continue the compilation. Haven't you faced any issue without this patch? Just want to bisect my problem. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$(LIBKERNTEST_DIR):<br>
<br>
Regards,<br>
Jan<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
><br>
> make[4]: Entering directory<br>
> '/home/linaro/ltp-master/testcases/kernel/syscalls/migrate_pages'<br>
> gcc -static -g -O2 -fno-strict-aliasing -pipe -Wall -W<br>
> -Wold-style-definition -static<br>
> -I/home/linaro/ltp-master/testcases/kernel/include<br>
> -I/home/linaro/ltp-master/testcases/kernel/syscalls/migrate_pages/../utils/<br>
> -DNUMA_VERSION1_COMPATIBILITY<br>
> -I/home/linaro/ltp-master/testcases/kernel/include<br>
> -I../../../../include -I../../../../include -c -o migrate_pages01.o<br>
> migrate_pages01.c<br>
> gcc -static -g -O2 -fno-strict-aliasing -pipe -Wall -W<br>
> -Wold-style-definition -static<br>
> -I/home/linaro/ltp-master/testcases/kernel/include<br>
> -I/home/linaro/ltp-master/testcases/kernel/syscalls/migrate_pages/../utils/<br>
> -DNUMA_VERSION1_COMPATIBILITY<br>
> -I/home/linaro/ltp-master/testcases/kernel/include<br>
> -I../../../../include -I../../../../include -c -o<br>
> migrate_pages_common.o migrate_pages_common.c<br>
> make -C "/home/linaro/Srikanth/ltp-master/testcases/kernel/include" -f<br>
> "/home/linaro/ltp-master/testcases/kernel/include/Makefile" all<br>
> make[5]: Entering directory<br>
> '/home/linaro/ltp-master/testcases/kernel/include'<br>
> make[5]: Nothing to be done for 'all'.<br>
> make[5]: Leaving directory '/home/linaro/ltp-master/testcases/kernel/include'<br>
> gcc -static -pthread -L/home/linaro/ltp-master/testcases/kernel/lib<br>
> -L../../../../lib migrate_pages01.o migrate_pages_common.o -lltp<br>
> -lnuma -lkerntest -lltp -o migrate_pages01<br>
> migrate_pages01.o: In function `test_invalid_perm':<br>
> /home/linaro/ltp-master/testcases/kernel/syscalls/migrate_pages/migrate_pages01.c:183:<br>
> warning: Using 'getpwnam' in statically linked applications requires<br>
> at runtime the shared libraries from the glibc version used for<br>
> linking<br>
> /home/linaro/ltp-master/testcases/kernel/lib/libkerntest.a(numa_helper.o):<br>
> In function `get_max_node':<br>
> /home/linaro/ltp-master/testcases/kernel/lib/numa_helper.c:53:<br>
> undefined reference to `numa_max_possible_node'<br>
> /home/linaro/ltp-master/testcases/kernel/lib/libkerntest.a(numa_helper.o):<br>
> In function `get_allowed_nodes_arr':<br>
> /home/linaro/ltp-master/testcases/kernel/lib/numa_helper.c:177:<br>
> undefined reference to `numa_available'<br>
> /home/linaro/ltp-master/testcases/kernel/lib/libkerntest.a(numa_helper.o):<br>
> In function `get_max_node':<br>
> /home/linaro/ltp-master/testcases/kernel/lib/numa_helper.c:53:<br>
> undefined reference to `numa_max_possible_node'<br>
> /home/linaro/ltp-master/testcases/kernel/lib/libkerntest.a(numa_helper.o):<br>
> In function `get_allowed_nodes_arr':<br>
> /home/linaro/ltp-master/testcases/kernel/lib/numa_helper.c:177:<br>
> undefined reference to `numa_available'<br>
> /home/linaro/ltp-master/testcases/kernel/lib/libkerntest.a(numa_helper.o):<br>
> In function `get_max_node':<br>
> /home/linaro/ltp-master/testcases/kernel/lib/numa_helper.c:53:<br>
> undefined reference to `numa_max_possible_node'<br>
> collect2: error: ld returned 1 exit status<br>
> <builtin>: recipe for target 'migrate_pages01' failed<br>
> make[4]: *** [migrate_pages01] Error 1<br>
><br>
><br>
> [1] <a href="https://github.com/linux-test-project/ltp.git" rel="noreferrer" target="_blank">https://github.com/linux-test-project/ltp.git</a><br>
><br>
> --<br>
> Thanks & Regards,<br>
> M.Srikanth Kumar.<br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
> Mailing list info: <a href="https://lists.linux.it/listinfo/ltp" rel="noreferrer" target="_blank">https://lists.linux.it/listinfo/ltp</a><br>
><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Thanks & Regards,<br>M.Srikanth Kumar.</div>
</div></div>