Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611834 - net-misc/openvswitch-2.7.0 fails to compile with python3
Summary: net-misc/openvswitch-2.7.0 fails to compile with python3
Status: RESOLVED DUPLICATE of bug 596206
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-06 01:35 UTC by Carlos Konstanski
Modified: 2017-06-10 13:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info,7.79 KB, text/plain)
2017-03-09 17:07 UTC, Carlos Konstanski
Details
the better emerge --info : ignore the other one (emerge_info,6.06 KB, text/plain)
2017-03-09 17:22 UTC, Carlos Konstanski
Details
ovsdb-idlc.in with the three single-quotes (ovsdb-idlc.in,43.57 KB, text/plain)
2017-03-09 19:18 UTC, Carlos Konstanski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Konstanski 2017-03-06 01:35:13 UTC
SyntaxError: invalid syntax
make: *** [Makefile:6354: tests/idltest.ovsidl] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:6181: lib/vswitch-idl.ovsidl] Error 1
make: *** [Makefile:6525: vtep/vtep-idl.ovsidl] Error 1
  File "./ovsdb/ovsdb-idlc.in", line 138
    #include "uuid.h"''' % {'prefix': prefix.upper()}
Comment 1 Carlos Konstanski 2017-03-06 01:39:09 UTC
Cannot attach files. The CGI is broken. I think this should be easy to reproduce.

USE flags I used:

[ebuild     U ~] net-misc/openvswitch-2.7.0::gentoo [2.6.1::gentoo] USE="ssl -debug -modules -monitor" PYTHON_TARGETS="python2_7 python3_4 python3_5" 0 KiB
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-03-09 16:54:14 UTC
I did test this so I'm not sure why this is happening.  Can you provide more info about your environment?
Comment 3 Carlos Konstanski 2017-03-09 17:07:32 UTC
Created attachment 466410 [details]
emerge --info
Comment 4 Carlos Konstanski 2017-03-09 17:08:26 UTC
Looks like attachments are working today. Uploaded emerge --info.
Comment 5 Carlos Konstanski 2017-03-09 17:10:10 UTC
However my environment has changed since the last time I tried upgrading openvswitch. I just upgraded to gcc 5.4.0. That upgrade is still in progress. I will try openvswitch again once my machine is done with its current task. Which means tomorrow most likely.
Comment 6 Carlos Konstanski 2017-03-09 17:21:07 UTC
Reproduced on another computer. Adding emerge --info for that machine. This will be a true snapshot of the state of the machine at the time of the failure.
Comment 7 Carlos Konstanski 2017-03-09 17:22:48 UTC
Created attachment 466458 [details]
the better emerge --info : ignore the other one

Reproduced the issue on a 2nd computer and immediately got an emerge --info from it.
Comment 8 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-03-09 17:43:11 UTC
I wonder if it is gcc that's the cause, I'm on 5.4.0 so if that fixes it that'd be nice, though still odd.
Comment 9 Carlos Konstanski 2017-03-09 17:54:10 UTC
Negative. My first attempt was on gcc 4.9. The second one (a half hour ago) was on gcc 5.4.
Comment 10 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-03-09 19:02:00 UTC
Do you have the uuid header?

find /usr/include/ | grep uuid.h
Comment 11 Carlos Konstanski 2017-03-09 19:13:57 UTC
/usr/include/qt4/Qt/quuid.h
/usr/include/qt4/QtCore/quuid.h
/usr/include/qt5/QtCore/quuid.h
/usr/include/uuid/uuid.h
/usr/include/apr-1/apr_uuid.h
/usr/include/boost/uuid/uuid.hpp
/usr/include/linux/uuid.h
/usr/include/postgresql-9.6/server/utils/uuid.h
/usr/include/syslog-ng/uuid.h
/usr/include/openvswitch/uuid.h
/usr/include/gupnp-1.0/libgupnp/gupnp-uuid.h
/usr/include/libmbim-glib/mbim-uuid.h
Comment 12 Carlos Konstanski 2017-03-09 19:18:22 UTC
Created attachment 466468 [details]
ovsdb-idlc.in with the three single-quotes

The error is:

SyntaxError: invalid syntax
  File "./ovsdb/ovsdb-idlc.in", line 138
    #include "uuid.h"''' % {'prefix': prefix.upper()}

The attached file contains this syntax error. Pulled from /var/tmp/portage/net-misc/openvswitch-2.7.0/work/openvswitch-2.7.0/ovsdb/ovsdb-idlc.in
Comment 13 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-03-09 19:35:06 UTC
could you try with 'eselect python set python2.7'  not sure why that'd matter right now, but someone else ran into it as well...
Comment 14 Carlos Konstanski 2017-03-09 20:12:26 UTC
Good call. Trying it...
Comment 15 Carlos Konstanski 2017-03-09 20:16:56 UTC
That worked! Would be nice if the ebuild could choose python2 on its own...
Comment 16 Michael Mair-Keimberger (iamnr3) 2017-04-06 18:26:30 UTC
I can confirm this bug and also the workaround with selecting python2.7 over python3.4
Comment 17 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-04-07 03:13:38 UTC
Can you try 2.7.0-r1 with newer python (3.4 or 3.5)?  not sure it'll help, as only twisted got changed out.
Comment 18 Carlos Konstanski 2017-04-07 03:38:17 UTC
Sorry, I can't. I cannot upgrade twisted because of tornado (a dependency of salt). Someone else will have to step up.
Comment 19 Agostino Sarubbo gentoo-dev 2017-06-10 13:19:29 UTC
Unless I'm missing something, this appear to be a duplicate of 596206

*** This bug has been marked as a duplicate of bug 596206 ***