Linux Test Project
 help / color / mirror / Atom feed
From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] ld failed to link numa while compiling migrate_pages01
Date: Wed, 23 Mar 2016 08:35:26 -0400 (EDT)	[thread overview]
Message-ID: <288636028.13490388.1458736526587.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CANKSX+GSJ2c+1wyrEELkYvWDhYrxCthwJujAV=M-NwqsA+0wrw@mail.gmail.com>





----- Original Message -----
> From: "$rik@nth" <srikanth007m@gmail.com>
> To: "Cyril Hrubis" <chrubis@suse.cz>
> Cc: ltp@lists.linux.it
> Sent: Wednesday, 23 March, 2016 12:45:23 PM
> Subject: [LTP]  ld failed to link numa while compiling migrate_pages01
> 
> Hi Cyril/LTP Devs,
> 
> Today i pulled few fixes from master branch [1] on top of last LTP
> release. While compiling i am getting below exception at
> migrate_pages01. Can you help in look into the issue once?

I don't see anything suspicious in git log. If you go back to few commits
does the problem go away? Any chance you could bisect?

Other than that, I'd try following:

diff --git a/testcases/kernel/include/lib.mk b/testcases/kernel/include/lib.mk
index f79a1c0197e3..5c97ae2c9edf 100644
--- a/testcases/kernel/include/lib.mk
+++ b/testcases/kernel/include/lib.mk
@@ -23,7 +23,7 @@ KERNEL_DIR            := $(abs_top_builddir)/testcases/kernel
 LIBKERNTEST_DIR                := $(KERNEL_DIR)/lib
 LIBKERNTEST            := $(LIBKERNTEST_DIR)/libkerntest.a
 CPPFLAGS               += $(NUMA_CPPFLAGS) -I$(KERNEL_SRCDIR)/include
-LDLIBS                 += $(NUMA_LIBS) -lkerntest -lltp
+LDLIBS                 += -lkerntest -lltp $(NUMA_LIBS)
 LDFLAGS                        += -L$(LIBKERNTEST_DIR)

 $(LIBKERNTEST_DIR):

Regards,
Jan


> 
> make[4]: Entering directory
> '/home/linaro/ltp-master/testcases/kernel/syscalls/migrate_pages'
> gcc -static -g -O2 -fno-strict-aliasing -pipe -Wall -W
> -Wold-style-definition -static
> -I/home/linaro/ltp-master/testcases/kernel/include
> -I/home/linaro/ltp-master/testcases/kernel/syscalls/migrate_pages/../utils/
> -DNUMA_VERSION1_COMPATIBILITY
> -I/home/linaro/ltp-master/testcases/kernel/include
> -I../../../../include -I../../../../include  -c -o migrate_pages01.o
> migrate_pages01.c
> gcc -static -g -O2 -fno-strict-aliasing -pipe -Wall -W
> -Wold-style-definition -static
> -I/home/linaro/ltp-master/testcases/kernel/include
> -I/home/linaro/ltp-master/testcases/kernel/syscalls/migrate_pages/../utils/
> -DNUMA_VERSION1_COMPATIBILITY
> -I/home/linaro/ltp-master/testcases/kernel/include
> -I../../../../include -I../../../../include  -c -o
> migrate_pages_common.o migrate_pages_common.c
> make -C "/home/linaro/Srikanth/ltp-master/testcases/kernel/include" -f
> "/home/linaro/ltp-master/testcases/kernel/include/Makefile" all
> make[5]: Entering directory
> '/home/linaro/ltp-master/testcases/kernel/include'
> make[5]: Nothing to be done for 'all'.
> make[5]: Leaving directory '/home/linaro/ltp-master/testcases/kernel/include'
> gcc -static -pthread  -L/home/linaro/ltp-master/testcases/kernel/lib
> -L../../../../lib  migrate_pages01.o migrate_pages_common.o   -lltp
> -lnuma -lkerntest -lltp -o migrate_pages01
> migrate_pages01.o: In function `test_invalid_perm':
> /home/linaro/ltp-master/testcases/kernel/syscalls/migrate_pages/migrate_pages01.c:183:
> warning: Using 'getpwnam' in statically linked applications requires
> at runtime the shared libraries from the glibc version used for
> linking
> /home/linaro/ltp-master/testcases/kernel/lib/libkerntest.a(numa_helper.o):
> In function `get_max_node':
> /home/linaro/ltp-master/testcases/kernel/lib/numa_helper.c:53:
> undefined reference to `numa_max_possible_node'
> /home/linaro/ltp-master/testcases/kernel/lib/libkerntest.a(numa_helper.o):
> In function `get_allowed_nodes_arr':
> /home/linaro/ltp-master/testcases/kernel/lib/numa_helper.c:177:
> undefined reference to `numa_available'
> /home/linaro/ltp-master/testcases/kernel/lib/libkerntest.a(numa_helper.o):
> In function `get_max_node':
> /home/linaro/ltp-master/testcases/kernel/lib/numa_helper.c:53:
> undefined reference to `numa_max_possible_node'
> /home/linaro/ltp-master/testcases/kernel/lib/libkerntest.a(numa_helper.o):
> In function `get_allowed_nodes_arr':
> /home/linaro/ltp-master/testcases/kernel/lib/numa_helper.c:177:
> undefined reference to `numa_available'
> /home/linaro/ltp-master/testcases/kernel/lib/libkerntest.a(numa_helper.o):
> In function `get_max_node':
> /home/linaro/ltp-master/testcases/kernel/lib/numa_helper.c:53:
> undefined reference to `numa_max_possible_node'
> collect2: error: ld returned 1 exit status
> <builtin>: recipe for target 'migrate_pages01' failed
> make[4]: *** [migrate_pages01] Error 1
> 
> 
> [1] https://github.com/linux-test-project/ltp.git
> 
> --
> Thanks & Regards,
> M.Srikanth Kumar.
> 
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
> 

  reply	other threads:[~2016-03-23 12:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-23 11:45 [LTP] ld failed to link numa while compiling migrate_pages01 $rik
2016-03-23 12:35 ` Jan Stancek [this message]
2016-03-23 13:22   ` $rik
2016-03-23 13:44     ` Jan Stancek
2016-03-24  9:53       ` $rik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=288636028.13490388.1458736526587.JavaMail.zimbra@redhat.com \
    --to=jstancek@redhat.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox