All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests
@ 2018-01-26 11:03 Baruch Siach
  2018-01-26 11:03 ` [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries Baruch Siach
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Baruch Siach @ 2018-01-26 11:03 UTC (permalink / raw)
  To: buildroot

The LTP_CHECK_SYSCALL_NUMA autoconf macro uses AC_RUN_IFELSE when it
detects the numaif.h header. This is incompatible with cross
compilation.

Fixes:
http://autobuild.buildroot.net/results/21a/21a6eeddbf5ccffc34c38527d0807305a5eb3917/
http://autobuild.buildroot.net/results/fc0/fc01921e8e8e1ea100461b29137c4219e6686c58/
http://autobuild.buildroot.net/results/962/96285d154abd65838ff5c66e96db309d9ac26c80/

Cc: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 package/ltp-testsuite/ltp-testsuite.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk
index 87854568d8a6..28dc24749ec8 100644
--- a/package/ltp-testsuite/ltp-testsuite.mk
+++ b/package/ltp-testsuite/ltp-testsuite.mk
@@ -56,7 +56,8 @@ LTP_TESTSUITE_CONF_ENV += \
 	CFLAGS="$(LTP_TESTSUITE_CFLAGS)" \
 	CPPFLAGS="$(LTP_TESTSUITE_CPPFLAGS)" \
 	LIBS="$(LTP_TESTSUITE_LIBS)" \
-	SYSROOT="$(STAGING_DIR)"
+	SYSROOT="$(STAGING_DIR)" \
+	have_numa_headers=no
 
 # Requires uClibc fts and bessel support, normally not enabled
 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
-- 
2.15.1

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

* [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries
  2018-01-26 11:03 [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests Baruch Siach
@ 2018-01-26 11:03 ` Baruch Siach
  2018-01-26 11:35   ` Petr Vorel
                     ` (2 more replies)
  2018-01-26 11:17 ` [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests Petr Vorel
  2018-01-27 10:18 ` Peter Korsgaard
  2 siblings, 3 replies; 12+ messages in thread
From: Baruch Siach @ 2018-01-26 11:03 UTC (permalink / raw)
  To: buildroot

BR2_TOOLCHAIN_HAS_SYNC_4 is enabled for all these architectures except
arc. There is no need to list them explicitly.

Cc: Romain Naour <romain.naour@gmail.com>
Cc: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 package/ltp-testsuite/Config.in | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/package/ltp-testsuite/Config.in b/package/ltp-testsuite/Config.in
index 4c00e40f330e..711c859e6caf 100644
--- a/package/ltp-testsuite/Config.in
+++ b/package/ltp-testsuite/Config.in
@@ -5,11 +5,6 @@ config BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
 	# provided in ltp-testsuite
 	default y if BR2_TOOLCHAIN_HAS_SYNC_4
 	default y if BR2_arc
-	default y if BR2_i386
-	default y if BR2_powerpc
-	default y if BR2_powepc64
-	default y if BR2_powerpc64le
-	default y if BR2_x86_64
 	# does not build on nios2, cachectl.h issue
 	depends on !BR2_nios2
 
-- 
2.15.1

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

* [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests
  2018-01-26 11:03 [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests Baruch Siach
  2018-01-26 11:03 ` [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries Baruch Siach
@ 2018-01-26 11:17 ` Petr Vorel
  2018-01-26 13:37   ` Baruch Siach
  2018-01-27 10:18 ` Peter Korsgaard
  2 siblings, 1 reply; 12+ messages in thread
From: Petr Vorel @ 2018-01-26 11:17 UTC (permalink / raw)
  To: buildroot

Hi Baruch,
> The LTP_CHECK_SYSCALL_NUMA autoconf macro uses AC_RUN_IFELSE when it
> detects the numaif.h header. This is incompatible with cross
> compilation.
Is it really about cross compilation or about out-of-tree building?
Any idea how to fix it in upstream? As we test both cross compilation and out out-of-tree
compilation with travis:
https://travis-ci.org/linux-test-project/ltp/builds/333338092

* aarch64 cross compilation
https://travis-ci.org/linux-test-project/ltp/jobs/333338103
* arm cross compilation
https://travis-ci.org/linux-test-project/ltp/jobs/333338102
* native out-of-tree compilation
https://travis-ci.org/linux-test-project/ltp/jobs/333338101

> Fixes:
> http://autobuild.buildroot.net/results/21a/21a6eeddbf5ccffc34c38527d0807305a5eb3917/
> http://autobuild.buildroot.net/results/fc0/fc01921e8e8e1ea100461b29137c4219e6686c58/
> http://autobuild.buildroot.net/results/962/96285d154abd65838ff5c66e96db309d9ac26c80/

> Cc: Petr Vorel <petr.vorel@gmail.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
>  package/ltp-testsuite/ltp-testsuite.mk | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

> diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk
> index 87854568d8a6..28dc24749ec8 100644
> --- a/package/ltp-testsuite/ltp-testsuite.mk
> +++ b/package/ltp-testsuite/ltp-testsuite.mk
> @@ -56,7 +56,8 @@ LTP_TESTSUITE_CONF_ENV += \
>  	CFLAGS="$(LTP_TESTSUITE_CFLAGS)" \
>  	CPPFLAGS="$(LTP_TESTSUITE_CPPFLAGS)" \
>  	LIBS="$(LTP_TESTSUITE_LIBS)" \
> -	SYSROOT="$(STAGING_DIR)"
> +	SYSROOT="$(STAGING_DIR)" \
> +	have_numa_headers=no

>  # Requires uClibc fts and bessel support, normally not enabled
>  ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)

Acked-by: Petr Vorel <petr.vorel@gmail.com>


Kind regards,
Petr

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

* [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries
  2018-01-26 11:03 ` [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries Baruch Siach
@ 2018-01-26 11:35   ` Petr Vorel
  2018-01-27 10:17   ` Peter Korsgaard
  2018-01-27 22:07   ` Thomas Petazzoni
  2 siblings, 0 replies; 12+ messages in thread
From: Petr Vorel @ 2018-01-26 11:35 UTC (permalink / raw)
  To: buildroot

> BR2_TOOLCHAIN_HAS_SYNC_4 is enabled for all these architectures except
> arc. There is no need to list them explicitly.

> Cc: Romain Naour <romain.naour@gmail.com>
> Cc: Petr Vorel <petr.vorel@gmail.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
>  package/ltp-testsuite/Config.in | 5 -----
>  1 file changed, 5 deletions(-)

> diff --git a/package/ltp-testsuite/Config.in b/package/ltp-testsuite/Config.in
> index 4c00e40f330e..711c859e6caf 100644
> --- a/package/ltp-testsuite/Config.in
> +++ b/package/ltp-testsuite/Config.in
> @@ -5,11 +5,6 @@ config BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
>  	# provided in ltp-testsuite
>  	default y if BR2_TOOLCHAIN_HAS_SYNC_4
>  	default y if BR2_arc
> -	default y if BR2_i386
> -	default y if BR2_powerpc
> -	default y if BR2_powepc64
> -	default y if BR2_powerpc64le
> -	default y if BR2_x86_64
>  	# does not build on nios2, cachectl.h issue
>  	depends on !BR2_nios2
Acked-by: Petr Vorel <petr.vorel@gmail.com>


Kind regards,
Petr

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

* [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests
  2018-01-26 11:17 ` [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests Petr Vorel
@ 2018-01-26 13:37   ` Baruch Siach
  2018-01-26 14:08     ` Baruch Siach
  2018-01-26 15:14     ` Petr Vorel
  0 siblings, 2 replies; 12+ messages in thread
From: Baruch Siach @ 2018-01-26 13:37 UTC (permalink / raw)
  To: buildroot

Hi Petr,

On Fri, Jan 26, 2018 at 12:17:04PM +0100, Petr Vorel wrote:
> Hi Baruch,
> > The LTP_CHECK_SYSCALL_NUMA autoconf macro uses AC_RUN_IFELSE when it
> > detects the numaif.h header. This is incompatible with cross
> > compilation.
> Is it really about cross compilation or about out-of-tree building?

As I understand this is about cross compilation, which is inherently 
incompatible with AC_RUN_IFELSE[1].

> Any idea how to fix it in upstream? As we test both cross compilation and out out-of-tree
> compilation with travis:
> https://travis-ci.org/linux-test-project/ltp/builds/333338092
> 
> * aarch64 cross compilation
> https://travis-ci.org/linux-test-project/ltp/jobs/333338103
> * arm cross compilation
> https://travis-ci.org/linux-test-project/ltp/jobs/333338102
> * native out-of-tree compilation
> https://travis-ci.org/linux-test-project/ltp/jobs/333338101

Do you nave libnuma (numactl) installed in these tests? If not, the 
AC_RUN_IFELSE test is skipped. You can reproduce this build failure in 
Buildroot by first building the numactl package, and then ltp-testsuite.

[1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Runtime

> > Fixes:
> > http://autobuild.buildroot.net/results/21a/21a6eeddbf5ccffc34c38527d0807305a5eb3917/
> > http://autobuild.buildroot.net/results/fc0/fc01921e8e8e1ea100461b29137c4219e6686c58/
> > http://autobuild.buildroot.net/results/962/96285d154abd65838ff5c66e96db309d9ac26c80/
> 
> > Cc: Petr Vorel <petr.vorel@gmail.com>
> > Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> > ---
> >  package/ltp-testsuite/ltp-testsuite.mk | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> > diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk
> > index 87854568d8a6..28dc24749ec8 100644
> > --- a/package/ltp-testsuite/ltp-testsuite.mk
> > +++ b/package/ltp-testsuite/ltp-testsuite.mk
> > @@ -56,7 +56,8 @@ LTP_TESTSUITE_CONF_ENV += \
> >  	CFLAGS="$(LTP_TESTSUITE_CFLAGS)" \
> >  	CPPFLAGS="$(LTP_TESTSUITE_CPPFLAGS)" \
> >  	LIBS="$(LTP_TESTSUITE_LIBS)" \
> > -	SYSROOT="$(STAGING_DIR)"
> > +	SYSROOT="$(STAGING_DIR)" \
> > +	have_numa_headers=no
> 
> >  # Requires uClibc fts and bessel support, normally not enabled
> >  ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
> 
> Acked-by: Petr Vorel <petr.vorel@gmail.com>

Thanks,
baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

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

* [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests
  2018-01-26 13:37   ` Baruch Siach
@ 2018-01-26 14:08     ` Baruch Siach
  2018-01-26 14:55       ` Petr Vorel
  2018-01-26 15:14     ` Petr Vorel
  1 sibling, 1 reply; 12+ messages in thread
From: Baruch Siach @ 2018-01-26 14:08 UTC (permalink / raw)
  To: buildroot

Hi Petr,

On Fri, Jan 26, 2018 at 03:37:00PM +0200, Baruch Siach wrote:
> On Fri, Jan 26, 2018 at 12:17:04PM +0100, Petr Vorel wrote:
> > > The LTP_CHECK_SYSCALL_NUMA autoconf macro uses AC_RUN_IFELSE when it
> > > detects the numaif.h header. This is incompatible with cross
> > > compilation.
> > Is it really about cross compilation or about out-of-tree building?
> 
> As I understand this is about cross compilation, which is inherently 
> incompatible with AC_RUN_IFELSE[1].
> 
> > Any idea how to fix it in upstream?

Thinking about this a little more, I think you can make the test into a 
compile time test instead of run-time with something like:

#if LIBNUMA_API_VERSION < 2
#error libnuma API version too old
#endif

baruch

> > As we test both cross compilation and out out-of-tree
> > compilation with travis:
> > https://travis-ci.org/linux-test-project/ltp/builds/333338092
> > 
> > * aarch64 cross compilation
> > https://travis-ci.org/linux-test-project/ltp/jobs/333338103
> > * arm cross compilation
> > https://travis-ci.org/linux-test-project/ltp/jobs/333338102
> > * native out-of-tree compilation
> > https://travis-ci.org/linux-test-project/ltp/jobs/333338101
> 
> Do you nave libnuma (numactl) installed in these tests? If not, the 
> AC_RUN_IFELSE test is skipped. You can reproduce this build failure in 
> Buildroot by first building the numactl package, and then ltp-testsuite.
> 
> [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Runtime
> 
> > > Fixes:
> > > http://autobuild.buildroot.net/results/21a/21a6eeddbf5ccffc34c38527d0807305a5eb3917/
> > > http://autobuild.buildroot.net/results/fc0/fc01921e8e8e1ea100461b29137c4219e6686c58/
> > > http://autobuild.buildroot.net/results/962/96285d154abd65838ff5c66e96db309d9ac26c80/
> > 
> > > Cc: Petr Vorel <petr.vorel@gmail.com>
> > > Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> > > ---
> > >  package/ltp-testsuite/ltp-testsuite.mk | 3 ++-
> > >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > > diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk
> > > index 87854568d8a6..28dc24749ec8 100644
> > > --- a/package/ltp-testsuite/ltp-testsuite.mk
> > > +++ b/package/ltp-testsuite/ltp-testsuite.mk
> > > @@ -56,7 +56,8 @@ LTP_TESTSUITE_CONF_ENV += \
> > >  	CFLAGS="$(LTP_TESTSUITE_CFLAGS)" \
> > >  	CPPFLAGS="$(LTP_TESTSUITE_CPPFLAGS)" \
> > >  	LIBS="$(LTP_TESTSUITE_LIBS)" \
> > > -	SYSROOT="$(STAGING_DIR)"
> > > +	SYSROOT="$(STAGING_DIR)" \
> > > +	have_numa_headers=no
> > 
> > >  # Requires uClibc fts and bessel support, normally not enabled
> > >  ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
> > 
> > Acked-by: Petr Vorel <petr.vorel@gmail.com>

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

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

* [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests
  2018-01-26 14:08     ` Baruch Siach
@ 2018-01-26 14:55       ` Petr Vorel
  0 siblings, 0 replies; 12+ messages in thread
From: Petr Vorel @ 2018-01-26 14:55 UTC (permalink / raw)
  To: buildroot

Hi Baruch,

> > As I understand this is about cross compilation, which is inherently 
> > incompatible with AC_RUN_IFELSE[1].

> > > Any idea how to fix it in upstream?

> Thinking about this a little more, I think you can make the test into a 
> compile time test instead of run-time with something like:

> #if LIBNUMA_API_VERSION < 2
> #error libnuma API version too old
> #endif
No, we had it, but we change it to the current state.  as we want to check for presence of
libnuma.so as well during build, as there is LTP library which is linked statically.
I know, this is very unusual, but that's how was LTP designed.

> baruch


Kind regards,
Petr

[1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Runtime

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

* [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests
  2018-01-26 13:37   ` Baruch Siach
  2018-01-26 14:08     ` Baruch Siach
@ 2018-01-26 15:14     ` Petr Vorel
  1 sibling, 0 replies; 12+ messages in thread
From: Petr Vorel @ 2018-01-26 15:14 UTC (permalink / raw)
  To: buildroot

Hi Baruch,

> On Fri, Jan 26, 2018 at 12:17:04PM +0100, Petr Vorel wrote:
> > Hi Baruch,
> > > The LTP_CHECK_SYSCALL_NUMA autoconf macro uses AC_RUN_IFELSE when it
> > > detects the numaif.h header. This is incompatible with cross
> > > compilation.
> > Is it really about cross compilation or about out-of-tree building?

> As I understand this is about cross compilation, which is inherently 
> incompatible with AC_RUN_IFELSE[1].
OK, doc really warn about using AC_RUN_IFELSE while cross compiling.

> > Any idea how to fix it in upstream? As we test both cross compilation and out out-of-tree
> > compilation with travis:
> > https://travis-ci.org/linux-test-project/ltp/builds/333338092

> > * aarch64 cross compilation
> > https://travis-ci.org/linux-test-project/ltp/jobs/333338103
> > * arm cross compilation
> > https://travis-ci.org/linux-test-project/ltp/jobs/333338102
> > * native out-of-tree compilation
> > https://travis-ci.org/linux-test-project/ltp/jobs/333338101

> Do you nave libnuma (numactl) installed in these tests? If not, the 
> AC_RUN_IFELSE test is skipped. You can reproduce this build failure in 
> Buildroot by first building the numactl package, and then ltp-testsuite.
In the third one [2] there is libnuma installed (ibnuma-dev package, so configure works:
/* Define to 1 if you have libnuma and it's headers version >= 2 installed. */
#define HAVE_NUMA_V2 1
The other two don't.
But all these 3 cross compile builds are build in-tree.
I tested to build cross compile out tree in our project and it's really broken.
Thanks for a bug report, I'll fix it.


Kind regards,
Petr

> [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Runtime

[2] https://api.travis-ci.org/v3/job/333338101/log.txt

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

* [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries
  2018-01-26 11:03 ` [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries Baruch Siach
  2018-01-26 11:35   ` Petr Vorel
@ 2018-01-27 10:17   ` Peter Korsgaard
  2018-01-27 22:07   ` Thomas Petazzoni
  2 siblings, 0 replies; 12+ messages in thread
From: Peter Korsgaard @ 2018-01-27 10:17 UTC (permalink / raw)
  To: buildroot

>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:

 > BR2_TOOLCHAIN_HAS_SYNC_4 is enabled for all these architectures except
 > arc. There is no need to list them explicitly.

 > Cc: Romain Naour <romain.naour@gmail.com>
 > Cc: Petr Vorel <petr.vorel@gmail.com>
 > Signed-off-by: Baruch Siach <baruch@tkos.co.il>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests
  2018-01-26 11:03 [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests Baruch Siach
  2018-01-26 11:03 ` [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries Baruch Siach
  2018-01-26 11:17 ` [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests Petr Vorel
@ 2018-01-27 10:18 ` Peter Korsgaard
  2 siblings, 0 replies; 12+ messages in thread
From: Peter Korsgaard @ 2018-01-27 10:18 UTC (permalink / raw)
  To: buildroot

>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:

 > The LTP_CHECK_SYSCALL_NUMA autoconf macro uses AC_RUN_IFELSE when it
 > detects the numaif.h header. This is incompatible with cross
 > compilation.

 > Fixes:
 > http://autobuild.buildroot.net/results/21a/21a6eeddbf5ccffc34c38527d0807305a5eb3917/
 > http://autobuild.buildroot.net/results/fc0/fc01921e8e8e1ea100461b29137c4219e6686c58/
 > http://autobuild.buildroot.net/results/962/96285d154abd65838ff5c66e96db309d9ac26c80/

 > Cc: Petr Vorel <petr.vorel@gmail.com>
 > Signed-off-by: Baruch Siach <baruch@tkos.co.il>
 > ---
 >  package/ltp-testsuite/ltp-testsuite.mk | 3 ++-
 >  1 file changed, 2 insertions(+), 1 deletion(-)

 > diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk
 > index 87854568d8a6..28dc24749ec8 100644
 > --- a/package/ltp-testsuite/ltp-testsuite.mk
 > +++ b/package/ltp-testsuite/ltp-testsuite.mk
 > @@ -56,7 +56,8 @@ LTP_TESTSUITE_CONF_ENV += \
 >  	CFLAGS="$(LTP_TESTSUITE_CFLAGS)" \
 >  	CPPFLAGS="$(LTP_TESTSUITE_CPPFLAGS)" \
 >  	LIBS="$(LTP_TESTSUITE_LIBS)" \
 > -	SYSROOT="$(STAGING_DIR)"
 > +	SYSROOT="$(STAGING_DIR)" \
 > +	have_numa_headers=no

Committed, thanks.

We can re-enable it again once it gets fixed upstream.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries
  2018-01-26 11:03 ` [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries Baruch Siach
  2018-01-26 11:35   ` Petr Vorel
  2018-01-27 10:17   ` Peter Korsgaard
@ 2018-01-27 22:07   ` Thomas Petazzoni
  2018-01-28  3:24     ` Baruch Siach
  2 siblings, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2018-01-27 22:07 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 26 Jan 2018 13:03:18 +0200, Baruch Siach wrote:
> BR2_TOOLCHAIN_HAS_SYNC_4 is enabled for all these architectures except
> arc. There is no need to list them explicitly.
> 
> Cc: Romain Naour <romain.naour@gmail.com>
> Cc: Petr Vorel <petr.vorel@gmail.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
>  package/ltp-testsuite/Config.in | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/package/ltp-testsuite/Config.in b/package/ltp-testsuite/Config.in
> index 4c00e40f330e..711c859e6caf 100644
> --- a/package/ltp-testsuite/Config.in
> +++ b/package/ltp-testsuite/Config.in
> @@ -5,11 +5,6 @@ config BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
>  	# provided in ltp-testsuite
>  	default y if BR2_TOOLCHAIN_HAS_SYNC_4
>  	default y if BR2_arc
> -	default y if BR2_i386
> -	default y if BR2_powerpc
> -	default y if BR2_powepc64
> -	default y if BR2_powerpc64le
> -	default y if BR2_x86_64

Is this really a correct patch ? It's not because
BR2_TOOLCHAIN_HAS_SYNC_4 already covers
i386/powerpc/powerpc64/powerpc64le/x86_64 that it makes sense to use
BR2_TOOLCHAIN_HAS_SYNC_4 instead.

What if an architecture gets added to BR2_TOOLCHAIN_HAS_SYNC_4, but
isn't supported by ltp-testsuite ?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries
  2018-01-27 22:07   ` Thomas Petazzoni
@ 2018-01-28  3:24     ` Baruch Siach
  0 siblings, 0 replies; 12+ messages in thread
From: Baruch Siach @ 2018-01-28  3:24 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Sat, Jan 27, 2018 at 11:07:07PM +0100, Thomas Petazzoni wrote:
> On Fri, 26 Jan 2018 13:03:18 +0200, Baruch Siach wrote:
> > BR2_TOOLCHAIN_HAS_SYNC_4 is enabled for all these architectures except
> > arc. There is no need to list them explicitly.
> > 
> > Cc: Romain Naour <romain.naour@gmail.com>
> > Cc: Petr Vorel <petr.vorel@gmail.com>
> > Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> > ---
> >  package/ltp-testsuite/Config.in | 5 -----
> >  1 file changed, 5 deletions(-)
> > 
> > diff --git a/package/ltp-testsuite/Config.in b/package/ltp-testsuite/Config.in
> > index 4c00e40f330e..711c859e6caf 100644
> > --- a/package/ltp-testsuite/Config.in
> > +++ b/package/ltp-testsuite/Config.in
> > @@ -5,11 +5,6 @@ config BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
> >  	# provided in ltp-testsuite
> >  	default y if BR2_TOOLCHAIN_HAS_SYNC_4
> >  	default y if BR2_arc
> > -	default y if BR2_i386
> > -	default y if BR2_powerpc
> > -	default y if BR2_powepc64
> > -	default y if BR2_powerpc64le
> > -	default y if BR2_x86_64
> 
> Is this really a correct patch ? It's not because
> BR2_TOOLCHAIN_HAS_SYNC_4 already covers
> i386/powerpc/powerpc64/powerpc64le/x86_64 that it makes sense to use
> BR2_TOOLCHAIN_HAS_SYNC_4 instead.
> 
> What if an architecture gets added to BR2_TOOLCHAIN_HAS_SYNC_4, but
> isn't supported by ltp-testsuite ?

My understanding, based on the commit log of 583f59702bdd 
(package/ltp-testsuite: refine architecture dependency), is that when the 
toolchain implements __sync_add_and_fetch() there is no need for the 
architecture specific fallback implementation that ltp-testsuite provides. 
This is the case already for e.g. ARM. So as long as the added architecture is 
covered by BR2_TOOLCHAIN_HAS_SYNC_4, we should be fine.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

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

end of thread, other threads:[~2018-01-28  3:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-26 11:03 [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests Baruch Siach
2018-01-26 11:03 ` [Buildroot] [PATCH 2/2] ltp-testsuite: drop redundant arch dependency entries Baruch Siach
2018-01-26 11:35   ` Petr Vorel
2018-01-27 10:17   ` Peter Korsgaard
2018-01-27 22:07   ` Thomas Petazzoni
2018-01-28  3:24     ` Baruch Siach
2018-01-26 11:17 ` [Buildroot] [PATCH 1/2] ltp-testsuite: disable numa tests Petr Vorel
2018-01-26 13:37   ` Baruch Siach
2018-01-26 14:08     ` Baruch Siach
2018-01-26 14:55       ` Petr Vorel
2018-01-26 15:14     ` Petr Vorel
2018-01-27 10:18 ` Peter Korsgaard

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.