public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] LTP build issues
@ 2017-08-01 21:39 Yury Norov
  2017-08-02  6:43 ` Jan Stancek
  2017-08-02  6:50 ` Maxim Kuvyrkov
  0 siblings, 2 replies; 6+ messages in thread
From: Yury Norov @ 2017-08-01 21:39 UTC (permalink / raw)
  To: ltp

Hi all,

I just pulled latest LTP sources and try to build it for the arm64/ilp32 with
toolchain provided by Linaro.
http://people.linaro.org/~maxim.kuvyrkov/experimental/preview-cross-aarch64-linux-gnu_ilp32.tar.xz

And I see that build fails due to multiple reasons. At first I had to revert
patches 817d8095f (Rename linux_syscall_numbers.h to lapi/syscalls.h)
and 4d0d149c4 (Remove linux_syscall_numbers.h Makefile)
because there'ds no lapi/syscalls.h file, and so build becomes broken.

There are also other reasons for build failures that dirty-fixed in patch
below. Could someone comment it and/or share proper fix?

Yury

diff --git a/testcases/cve/cve-2016-7117.c b/testcases/cve/cve-2016-7117.c
index 42e90da10..9f5d649b9 100644
--- a/testcases/cve/cve-2016-7117.c
+++ b/testcases/cve/cve-2016-7117.c
@@ -64,6 +64,7 @@
 #define RECV_TIMEOUT 1
 #define ATTEMPTS 0x1FFFFF
 
+#define HAVE_STRUCT_MMSGHDR
 #ifndef HAVE_STRUCT_MMSGHDR
 struct mmsghdr {
 	struct msghdr msg_hdr;
diff --git a/testcases/kernel/syscalls/fstatat/fstatat01.c b/testcases/kernel/syscalls/fstatat/fstatat01.c
index 840d7b60e..038577327 100644
--- a/testcases/kernel/syscalls/fstatat/fstatat01.c
+++ b/testcases/kernel/syscalls/fstatat/fstatat01.c
@@ -58,6 +58,7 @@ static const char *filenames[TEST_CASES];
 static const int expected_errno[] = { 0, 0, ENOTDIR, EBADF, EINVAL, 0 };
 static const int flags[] = { 0, 0, 0, 0, 9999, 0 };
 
+#define HAVE_FSTATAT
 #if !defined(HAVE_FSTATAT)
 #if (__NR_fstatat64 > 0)
 int fstatat(int dirfd, const char *filename, struct stat64 *statbuf, int flags)
diff --git a/testcases/kernel/syscalls/keyctl/Makefile b/testcases/kernel/syscalls/keyctl/Makefile
index bb3d3a41d..654503e37 100644
--- a/testcases/kernel/syscalls/keyctl/Makefile
+++ b/testcases/kernel/syscalls/keyctl/Makefile
@@ -18,8 +18,8 @@
 
 top_srcdir		?= ../../../..
 
-keyctl02: LDLIBS	+=-lpthread $(KEYUTILS_LIBS)
-keyctl03: LDLIBS	+=$(KEYUTILS_LIBS)
+keyctl02: LDLIBS	+=-lpthread #$(KEYUTILS_LIBS)
+#keyctl03: LDLIBS	+=$(KEYUTILS_LIBS)
 
 include $(top_srcdir)/include/mk/testcases.mk
 
diff --git a/testcases/kernel/syscalls/preadv/preadv.h b/testcases/kernel/syscalls/preadv/preadv.h
index f3ac30db3..b00138983 100644
--- a/testcases/kernel/syscalls/preadv/preadv.h
+++ b/testcases/kernel/syscalls/preadv/preadv.h
@@ -21,6 +21,7 @@
 #include "config.h"
 #include "linux_syscall_numbers.h"
 
+#define HAVE_PREADV
 #if !defined(HAVE_PREADV)
 int preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset)
 {
diff --git a/testcases/kernel/syscalls/pwritev/pwritev.h b/testcases/kernel/syscalls/pwritev/pwritev.h
index 4970036ef..6fd01ad4c 100644
--- a/testcases/kernel/syscalls/pwritev/pwritev.h
+++ b/testcases/kernel/syscalls/pwritev/pwritev.h
@@ -21,6 +21,7 @@
 #include "config.h"
 #include "linux_syscall_numbers.h"
 
+#define HAVE_PWRITEV
 #if !defined(HAVE_PWRITEV)
 int pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset)
 {
diff --git a/testcases/kernel/syscalls/request_key/Makefile b/testcases/kernel/syscalls/request_key/Makefile
index 9add429d4..4f3d6bbc6 100644
--- a/testcases/kernel/syscalls/request_key/Makefile
+++ b/testcases/kernel/syscalls/request_key/Makefile
@@ -19,6 +19,7 @@ top_srcdir		?= ../../../..
 
 include $(top_srcdir)/include/mk/testcases.mk
 
-LDLIBS		+= $(KEYUTILS_LIBS)
+#LDLIBS		+= $(KEYUTILS_LIBS)
+#LDLIBS		+= -lkeyutils
 
 include $(top_srcdir)/include/mk/generic_leaf_target.mk

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

* [LTP] LTP build issues
  2017-08-01 21:39 [LTP] LTP build issues Yury Norov
@ 2017-08-02  6:43 ` Jan Stancek
  2017-08-02  8:20   ` Richard Palethorpe
  2017-08-02  6:50 ` Maxim Kuvyrkov
  1 sibling, 1 reply; 6+ messages in thread
From: Jan Stancek @ 2017-08-02  6:43 UTC (permalink / raw)
  To: ltp



----- Original Message -----
> Hi all,
> 
> I just pulled latest LTP sources and try to build it for the arm64/ilp32 with
> toolchain provided by Linaro.
> http://people.linaro.org/~maxim.kuvyrkov/experimental/preview-cross-aarch64-linux-gnu_ilp32.tar.xz
> 
> And I see that build fails due to multiple reasons. At first I had to revert
> patches 817d8095f (Rename linux_syscall_numbers.h to lapi/syscalls.h)
> and 4d0d149c4 (Remove linux_syscall_numbers.h Makefile)
> because there'ds no lapi/syscalls.h file, and so build becomes broken.

Did you re-run "make autotools" and "./configure"?
./include/lapi/syscalls.h should be generated during configure.

If that still doesn't work, you can try it by hand:
cd ./include/lapi/syscalls
./regen.sh

> 
> There are also other reasons for build failures that dirty-fixed in patch
> below. Could someone comment it and/or share proper fix?

Can you also post build error messages?

Regards,
Jan

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

* [LTP] LTP build issues
  2017-08-01 21:39 [LTP] LTP build issues Yury Norov
  2017-08-02  6:43 ` Jan Stancek
@ 2017-08-02  6:50 ` Maxim Kuvyrkov
  2017-08-02 13:44   ` Yury Norov
  1 sibling, 1 reply; 6+ messages in thread
From: Maxim Kuvyrkov @ 2017-08-02  6:50 UTC (permalink / raw)
  To: ltp

> On Aug 2, 2017, at 12:39 AM, Yury Norov <ynorov@caviumnetworks.com> wrote:
> 
> Hi all,
> 
> I just pulled latest LTP sources and try to build it for the arm64/ilp32 with
> toolchain provided by Linaro.
> http://people.linaro.org/~maxim.kuvyrkov/experimental/<REDACTED>

Please do not share the above link.  This toolchain is not "provided by Linaro", it is uploaded by a developer working at Linaro for early experiments by other developers.  This toolchain was not tested as usual Linaro-released toolchains are.

There is going to be an official "ILP32 preview" cross-toolchain release from Linaro later this month.  We will call it "ILP32 preview" or some such until ILP32 kernel and glibc branches are merged in upstream master branches.

--
Maxim Kuvyrkov
www.linaro.org




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

* [LTP] LTP build issues
  2017-08-02  6:43 ` Jan Stancek
@ 2017-08-02  8:20   ` Richard Palethorpe
  2017-08-02 13:41     ` Yury Norov
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Palethorpe @ 2017-08-02  8:20 UTC (permalink / raw)
  To: ltp


Hello,

Jan Stancek writes:

> ----- Original Message -----
>> Hi all,
>>
>> I just pulled latest LTP sources and try to build it for the arm64/ilp32 with
>> toolchain provided by Linaro.
>> http://people.linaro.org/~maxim.kuvyrkov/experimental/preview-cross-aarch64-linux-gnu_ilp32.tar.xz
>>
>> And I see that build fails due to multiple reasons. At first I had to revert
>> patches 817d8095f (Rename linux_syscall_numbers.h to lapi/syscalls.h)
>> and 4d0d149c4 (Remove linux_syscall_numbers.h Makefile)
>> because there'ds no lapi/syscalls.h file, and so build becomes broken.
>
> Did you re-run "make autotools" and "./configure"?
> ./include/lapi/syscalls.h should be generated during configure.

Maybe also try 'make distclean' first, then 'make autotools' etc. I
should have put that in the commit message as it is a change to the
build system itself.

>
> If that still doesn't work, you can try it by hand:
> cd ./include/lapi/syscalls
> ./regen.sh
>
>>
>> There are also other reasons for build failures that dirty-fixed in patch
>> below. Could someone comment it and/or share proper fix?
>
> Can you also post build error messages?
>
> Regards,
> Jan

--
Thank you,
Richard.

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

* [LTP] LTP build issues
  2017-08-02  8:20   ` Richard Palethorpe
@ 2017-08-02 13:41     ` Yury Norov
  0 siblings, 0 replies; 6+ messages in thread
From: Yury Norov @ 2017-08-02 13:41 UTC (permalink / raw)
  To: ltp

> > Did you re-run "make autotools" and "./configure"?
> > ./include/lapi/syscalls.h should be generated during configure.
> 
> Maybe also try 'make distclean' first, then 'make autotools' etc. I
> should have put that in the commit message as it is a change to the
> build system itself.

'git clean -f', 'make autotools' and './configure' did help. And all
other failures did also disappear. Thank you, and sorry for the noise.

Yury

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

* [LTP] LTP build issues
  2017-08-02  6:50 ` Maxim Kuvyrkov
@ 2017-08-02 13:44   ` Yury Norov
  0 siblings, 0 replies; 6+ messages in thread
From: Yury Norov @ 2017-08-02 13:44 UTC (permalink / raw)
  To: ltp

On Wed, Aug 02, 2017 at 09:50:23AM +0300, Maxim Kuvyrkov wrote:
> > On Aug 2, 2017, at 12:39 AM, Yury Norov <ynorov@caviumnetworks.com> wrote:
> > 
> > Hi all,
> > 
> > I just pulled latest LTP sources and try to build it for the arm64/ilp32 with
> > toolchain provided by Linaro.
> > http://people.linaro.org/~maxim.kuvyrkov/experimental/<REDACTED>
> 
> Please do not share the above link.  This toolchain is not "provided by Linaro", it is uploaded by a developer working at Linaro for early experiments by other developers.  This toolchain was not tested as usual Linaro-released toolchains are.
> 
> There is going to be an official "ILP32 preview" cross-toolchain release from Linaro later this month.  We will call it "ILP32 preview" or some such until ILP32 kernel and glibc branches are merged in upstream master branches.

Sorry for it. 

Yury

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

end of thread, other threads:[~2017-08-02 13:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-01 21:39 [LTP] LTP build issues Yury Norov
2017-08-02  6:43 ` Jan Stancek
2017-08-02  8:20   ` Richard Palethorpe
2017-08-02 13:41     ` Yury Norov
2017-08-02  6:50 ` Maxim Kuvyrkov
2017-08-02 13:44   ` Yury Norov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox