All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP]  Syscall/io_* tests failing to compile
@ 2015-09-03  4:32 $rik@nth 
  2015-09-03 11:15 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: $rik@nth  @ 2015-09-03  4:32 UTC (permalink / raw)
  To: ltp-list

Hi All,


I am seeing below errors while compiling syscalls from the latest
available LTP tar ball from sourceforge. My system is having latest
libaio-dev library as well.

the same issue even observed for other io syscalls(io_getevents etc..)
as well. Do i need to setup any other environment to compile it
successfully.

/usr/bin/arm-linux-gnueabihf-gcc -static -g -O2 -fno-strict-aliasing
-pipe -Wall -W -static -Wold-style-definition
-I/home/LTP/ltp-full-20150420/testcases/kernel/include
-I../../../../include -I../../../../include -static -pthread
-L../../../../lib  io_destroy01.c   -lltp  -o io_destroy01
/tmp/cc0f3RO7.o: In function `main':
/home/LTP/ltp-full-20150420/testcases/kernel/syscalls/io_destroy/io_destroy01.c:77:
undefined reference to `io_destroy'
collect2: ld returned 1 exit status
make: *** [io_destroy01] Error 1

-- 
Thanks & Regards,
M.Srikanth Kumar.

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] Syscall/io_* tests failing to compile
  2015-09-03  4:32 [LTP] Syscall/io_* tests failing to compile $rik@nth 
@ 2015-09-03 11:15 ` Cyril Hrubis
       [not found]   ` <CANKSX+EGOtjDKHhX3sHRcxgeJRZbQDwSYoLa7zh64V3GROqnYA@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2015-09-03 11:15 UTC (permalink / raw)
  To: $rik@nth ; +Cc: ltp-list

Hi!
> I am seeing below errors while compiling syscalls from the latest
> available LTP tar ball from sourceforge. My system is having latest
> libaio-dev library as well.
> 
> the same issue even observed for other io syscalls(io_getevents etc..)
> as well. Do i need to setup any other environment to compile it
> successfully.
> 
> /usr/bin/arm-linux-gnueabihf-gcc -static -g -O2 -fno-strict-aliasing
> -pipe -Wall -W -static -Wold-style-definition
> -I/home/LTP/ltp-full-20150420/testcases/kernel/include
> -I../../../../include -I../../../../include -static -pthread
> -L../../../../lib  io_destroy01.c   -lltp  -o io_destroy01
> /tmp/cc0f3RO7.o: In function `main':
> /home/LTP/ltp-full-20150420/testcases/kernel/syscalls/io_destroy/io_destroy01.c:77:
> undefined reference to `io_destroy'
> collect2: ld returned 1 exit status
> make: *** [io_destroy01] Error 1

The -laio is missing from the command line, but since you are seeing the
failure the HAVE_LIBAIO_H must be defined in config.h.

So it's looks like you have hand edited config.h (which is wrong thing
to do) after installing the library instead of reruning configure.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] Syscall/io_* tests failing to compile
       [not found]   ` <CANKSX+EGOtjDKHhX3sHRcxgeJRZbQDwSYoLa7zh64V3GROqnYA@mail.gmail.com>
@ 2015-09-03 12:17     ` Cyril Hrubis
  0 siblings, 0 replies; 3+ messages in thread
From: Cyril Hrubis @ 2015-09-03 12:17 UTC (permalink / raw)
  To: $rik@nth ; +Cc: ltp-list

Hi!
> I haven't modified any of the config files at all. Even i cross
> checked on couple machines and faced similar issues.

Hmm, you are cross compiling right? Have you installed the libaio-dev on
the host machine? Because that will not work since that contains native
binaries and you cannot link against them.

If that is the case you can either cross compile the libaio and set
right path for linker etc. or set up an arm virtual machine or chroot
with qemu arm emulation and compile LTP there.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-03 12:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-03  4:32 [LTP] Syscall/io_* tests failing to compile $rik@nth 
2015-09-03 11:15 ` Cyril Hrubis
     [not found]   ` <CANKSX+EGOtjDKHhX3sHRcxgeJRZbQDwSYoLa7zh64V3GROqnYA@mail.gmail.com>
2015-09-03 12:17     ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.