Re: [LTP] Syscall/io_* tests failing to compile

2015-09-03 Thread Cyril Hrubis
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
chru...@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=/4140
___
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list


Re: [LTP] Syscall/io_* tests failing to compile

2015-09-03 Thread $rik@nth
I haven't modified any of the config files at all. Even i cross
checked on couple machines and faced similar issues.

On Thu, Sep 3, 2015 at 4:45 PM, Cyril Hrubis  wrote:
> 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
> chru...@suse.cz



-- 
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=/4140
___
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list


Re: [LTP] Syscall/io_* tests failing to compile

2015-09-03 Thread Cyril Hrubis
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
chru...@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=/4140
___
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list


Re: [LTP] Syscall/io_* tests failing to compile

2015-09-03 Thread $rik@nth
Yes i am trying to cross compile it for ARM and installed libaio-dev
on hostmachine.

Ok.. i will try cross compiling libaio and try to compile it again by
pointing to the right path.

On Thu, Sep 3, 2015 at 5:47 PM, Cyril Hrubis  wrote:
> 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
> chru...@suse.cz



-- 
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=/4140
___
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list