DPDK patches and discussions
 help / color / Atom feed
* [dpdk-dev] [PATCH] ci: remove LTO job
@ 2019-11-08 19:32 David Marchand
  2019-11-08 19:55 ` Thomas Monjalon
  0 siblings, 1 reply; 7+ messages in thread
From: David Marchand @ 2019-11-08 19:32 UTC (permalink / raw)
  To: dev; +Cc: aostruszka, bruce.richardson, Aaron Conole, Michael Santana

The LTO job using gcc-7 has two issues at the moment:
- warnings about implicit fallthroughs trigger build errors:

In file included from ...common/include/rte_memory.h:22:0,
                 from ...linux/eal/eal_hugepage_info.c:24:
...common/include/rte_common.h: In function ‘rte_str_to_size’:
...common/include/rte_common.h:744:27: error: this statement may
  fall through [-Werror=implicit-fallthrough=]
  case 'G': case 'g': size *= 1024; /* fall-through */
                      ~~~~~^~~~~~~

- if we disable this warning, linking the binaries takes too much time
  and the job is terminated by Travis because it reaches the maximum
  time limit

Fixes: 098cc0fea3be ("build: add option to enable LTO")

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 .travis.yml | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index a1c31d4..3d6ef29 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -105,15 +105,6 @@ matrix:
       apt:
         packages:
           - *extra_packages
-  - env: DEF_LIB="static" OPTS="-Db_lto=true" EXTRA_PACKAGES=1 CC=gcc-7
-    compiler: gcc
-    addons:
-      apt:
-        sources:
-            - ubuntu-toolchain-r-test
-        packages:
-          - *extra_packages
-          - gcc-7
 
 
 script: ./.ci/${TRAVIS_OS_NAME}-build.sh
-- 
1.8.3.1


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

* Re: [dpdk-dev] [PATCH] ci: remove LTO job
  2019-11-08 19:32 [dpdk-dev] [PATCH] ci: remove LTO job David Marchand
@ 2019-11-08 19:55 ` Thomas Monjalon
  2019-11-08 20:07   ` David Marchand
  2019-11-11 11:31   ` Bruce Richardson
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Monjalon @ 2019-11-08 19:55 UTC (permalink / raw)
  To: David Marchand
  Cc: dev, aostruszka, bruce.richardson, Aaron Conole, Michael Santana

08/11/2019 20:32, David Marchand:
> The LTO job using gcc-7 has two issues at the moment:
> - warnings about implicit fallthroughs trigger build errors:
> 
> In file included from ...common/include/rte_memory.h:22:0,
>                  from ...linux/eal/eal_hugepage_info.c:24:
> ...common/include/rte_common.h: In function ‘rte_str_to_size’:
> ...common/include/rte_common.h:744:27: error: this statement may
>   fall through [-Werror=implicit-fallthrough=]
>   case 'G': case 'g': size *= 1024; /* fall-through */
>                       ~~~~~^~~~~~~
> 
> - if we disable this warning, linking the binaries takes too much time
>   and the job is terminated by Travis because it reaches the maximum
>   time limit
> 
> Fixes: 098cc0fea3be ("build: add option to enable LTO")
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>

Acked-by: Thomas Monjalon <thomas@monjalon.net>

Thank you, I should have tested it in Travis before merging.



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

* Re: [dpdk-dev] [PATCH] ci: remove LTO job
  2019-11-08 19:55 ` Thomas Monjalon
@ 2019-11-08 20:07   ` David Marchand
  2019-11-11 11:31   ` Bruce Richardson
  1 sibling, 0 replies; 7+ messages in thread
From: David Marchand @ 2019-11-08 20:07 UTC (permalink / raw)
  To: Thomas Monjalon
  Cc: dev, aostruszka, Bruce Richardson, Aaron Conole, Michael Santana

On Fri, Nov 8, 2019 at 8:56 PM Thomas Monjalon <thomas@monjalon.net> wrote:
>
> 08/11/2019 20:32, David Marchand:
> > The LTO job using gcc-7 has two issues at the moment:
> > - warnings about implicit fallthroughs trigger build errors:
> >
> > In file included from ...common/include/rte_memory.h:22:0,
> >                  from ...linux/eal/eal_hugepage_info.c:24:
> > ...common/include/rte_common.h: In function ‘rte_str_to_size’:
> > ...common/include/rte_common.h:744:27: error: this statement may
> >   fall through [-Werror=implicit-fallthrough=]
> >   case 'G': case 'g': size *= 1024; /* fall-through */
> >                       ~~~~~^~~~~~~
> >
> > - if we disable this warning, linking the binaries takes too much time
> >   and the job is terminated by Travis because it reaches the maximum
> >   time limit
> >
> > Fixes: 098cc0fea3be ("build: add option to enable LTO")
> >
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
>
> Acked-by: Thomas Monjalon <thomas@monjalon.net>

Thanks, applied.

> Thank you, I should have tested it in Travis before merging.

Well, the robot could have helped, but I can't find the job for the
7128 series, and the job for the 7333 series is still pending.


-- 
David Marchand

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

* Re: [dpdk-dev] [PATCH] ci: remove LTO job
  2019-11-08 19:55 ` Thomas Monjalon
  2019-11-08 20:07   ` David Marchand
@ 2019-11-11 11:31   ` Bruce Richardson
  2019-11-11 12:27     ` David Marchand
  1 sibling, 1 reply; 7+ messages in thread
From: Bruce Richardson @ 2019-11-11 11:31 UTC (permalink / raw)
  To: Thomas Monjalon
  Cc: David Marchand, dev, aostruszka, Aaron Conole, Michael Santana

On Fri, Nov 08, 2019 at 08:55:52PM +0100, Thomas Monjalon wrote:
> 08/11/2019 20:32, David Marchand:
> > The LTO job using gcc-7 has two issues at the moment:
> > - warnings about implicit fallthroughs trigger build errors:
> > 
> > In file included from ...common/include/rte_memory.h:22:0,
> >                  from ...linux/eal/eal_hugepage_info.c:24:
> > ...common/include/rte_common.h: In function ‘rte_str_to_size’:
> > ...common/include/rte_common.h:744:27: error: this statement may
> >   fall through [-Werror=implicit-fallthrough=]
> >   case 'G': case 'g': size *= 1024; /* fall-through */
> >                       ~~~~~^~~~~~~
> > 
> > - if we disable this warning, linking the binaries takes too much time
> >   and the job is terminated by Travis because it reaches the maximum
> >   time limit
> > 
> > Fixes: 098cc0fea3be ("build: add option to enable LTO")
> > 
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> 
> Acked-by: Thomas Monjalon <thomas@monjalon.net>
> 
> Thank you, I should have tested it in Travis before merging.
> 
I'm also interested in whether someone can give steps to reproduce this
issue outside of the Travis environment. I've tested with gcc-7 on both
Ubuntu 16.04 (as used by Travis) and Ubuntu 18.04, and the builds I tested
all worked fine, without any warnings being seen. I am therefore wondering
what is special about the travis setup that causes it to fail.

/Bruce

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

* Re: [dpdk-dev] [PATCH] ci: remove LTO job
  2019-11-11 11:31   ` Bruce Richardson
@ 2019-11-11 12:27     ` David Marchand
  2019-11-11 13:57       ` Bruce Richardson
  0 siblings, 1 reply; 7+ messages in thread
From: David Marchand @ 2019-11-11 12:27 UTC (permalink / raw)
  To: Bruce Richardson
  Cc: Thomas Monjalon, dev, aostruszka, Aaron Conole, Michael Santana

On Mon, Nov 11, 2019 at 12:32 PM Bruce Richardson
<bruce.richardson@intel.com> wrote:
>
> On Fri, Nov 08, 2019 at 08:55:52PM +0100, Thomas Monjalon wrote:
> > 08/11/2019 20:32, David Marchand:
> > > The LTO job using gcc-7 has two issues at the moment:
> > > - warnings about implicit fallthroughs trigger build errors:
> > >
> > > In file included from ...common/include/rte_memory.h:22:0,
> > >                  from ...linux/eal/eal_hugepage_info.c:24:
> > > ...common/include/rte_common.h: In function ‘rte_str_to_size’:
> > > ...common/include/rte_common.h:744:27: error: this statement may
> > >   fall through [-Werror=implicit-fallthrough=]
> > >   case 'G': case 'g': size *= 1024; /* fall-through */
> > >                       ~~~~~^~~~~~~
> > >
> > > - if we disable this warning, linking the binaries takes too much time
> > >   and the job is terminated by Travis because it reaches the maximum
> > >   time limit
> > >
> > > Fixes: 098cc0fea3be ("build: add option to enable LTO")
> > >
> > > Signed-off-by: David Marchand <david.marchand@redhat.com>
> >
> > Acked-by: Thomas Monjalon <thomas@monjalon.net>
> >
> > Thank you, I should have tested it in Travis before merging.
> >
> I'm also interested in whether someone can give steps to reproduce this
> issue outside of the Travis environment. I've tested with gcc-7 on both
> Ubuntu 16.04 (as used by Travis) and Ubuntu 18.04, and the builds I tested
> all worked fine, without any warnings being seen. I am therefore wondering
> what is special about the travis setup that causes it to fail.

Did you try with the custom apt repository that the LTO job was using ?
-      apt:
-        sources:
-            - ubuntu-toolchain-r-test


-- 
David Marchand


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

* Re: [dpdk-dev] [PATCH] ci: remove LTO job
  2019-11-11 12:27     ` David Marchand
@ 2019-11-11 13:57       ` Bruce Richardson
  2019-11-12  8:55         ` Andrzej Ostruszka
  0 siblings, 1 reply; 7+ messages in thread
From: Bruce Richardson @ 2019-11-11 13:57 UTC (permalink / raw)
  To: David Marchand
  Cc: Thomas Monjalon, dev, aostruszka, Aaron Conole, Michael Santana

On Mon, Nov 11, 2019 at 01:27:23PM +0100, David Marchand wrote:
> On Mon, Nov 11, 2019 at 12:32 PM Bruce Richardson
> <bruce.richardson@intel.com> wrote:
> >
> > On Fri, Nov 08, 2019 at 08:55:52PM +0100, Thomas Monjalon wrote:
> > > 08/11/2019 20:32, David Marchand:
> > > > The LTO job using gcc-7 has two issues at the moment:
> > > > - warnings about implicit fallthroughs trigger build errors:
> > > >
> > > > In file included from ...common/include/rte_memory.h:22:0,
> > > >                  from ...linux/eal/eal_hugepage_info.c:24:
> > > > ...common/include/rte_common.h: In function ‘rte_str_to_size’:
> > > > ...common/include/rte_common.h:744:27: error: this statement may
> > > >   fall through [-Werror=implicit-fallthrough=]
> > > >   case 'G': case 'g': size *= 1024; /* fall-through */
> > > >                       ~~~~~^~~~~~~
> > > >
> > > > - if we disable this warning, linking the binaries takes too much time
> > > >   and the job is terminated by Travis because it reaches the maximum
> > > >   time limit
> > > >
> > > > Fixes: 098cc0fea3be ("build: add option to enable LTO")
> > > >
> > > > Signed-off-by: David Marchand <david.marchand@redhat.com>
> > >
> > > Acked-by: Thomas Monjalon <thomas@monjalon.net>
> > >
> > > Thank you, I should have tested it in Travis before merging.
> > >
> > I'm also interested in whether someone can give steps to reproduce this
> > issue outside of the Travis environment. I've tested with gcc-7 on both
> > Ubuntu 16.04 (as used by Travis) and Ubuntu 18.04, and the builds I tested
> > all worked fine, without any warnings being seen. I am therefore wondering
> > what is special about the travis setup that causes it to fail.
> 
> Did you try with the custom apt repository that the LTO job was using ?
> -      apt:
> -        sources:
> -            - ubuntu-toolchain-r-test
> 
Yes, that repo was needed to get gcc-7 on Ubuntu 16.04, IIRC

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

* Re: [dpdk-dev] [PATCH] ci: remove LTO job
  2019-11-11 13:57       ` Bruce Richardson
@ 2019-11-12  8:55         ` Andrzej Ostruszka
  0 siblings, 0 replies; 7+ messages in thread
From: Andrzej Ostruszka @ 2019-11-12  8:55 UTC (permalink / raw)
  To: dev

On 11/11/19 2:57 PM, Bruce Richardson wrote:
> On Mon, Nov 11, 2019 at 01:27:23PM +0100, David Marchand wrote:
[...]
>> Did you try with the custom apt repository that the LTO job was using ?
>> -      apt:
>> -        sources:
>> -            - ubuntu-toolchain-r-test
>>
> Yes, that repo was needed to get gcc-7 on Ubuntu 16.04, IIRC

That is correct - Travis build env was said to be Ubuntu 16.04 and in
order to install gcc 7 package from this PPA is used.  I tested this on
a fresh VM with that version and it worked, so I'm a bit curious what is
the difference too.

However I'm fine with removing of travis build entry for LTO - the build
time problems are enough of a reason for me.

Regards
Andrzej

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

end of thread, back to index

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-08 19:32 [dpdk-dev] [PATCH] ci: remove LTO job David Marchand
2019-11-08 19:55 ` Thomas Monjalon
2019-11-08 20:07   ` David Marchand
2019-11-11 11:31   ` Bruce Richardson
2019-11-11 12:27     ` David Marchand
2019-11-11 13:57       ` Bruce Richardson
2019-11-12  8:55         ` Andrzej Ostruszka

DPDK patches and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ http://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/ public-inbox