Opened 7 years ago

Closed 7 years ago

#54928 closed defect (fixed)

webkit2-gtk @2.14.2: build failing under High Sierra due to error: delegating constructors are permitted only in C++11

Reported by: pmetzger (Perry E. Metzger) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: highsierra Cc: dbevans (David B. Evans)
Port: webkit2-gtk

Description (last modified by kencu (Ken))

My build is dying with:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/webkitgtk-2.14.2/Source/ThirdParty/ANGLE/src/com/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/webkitgtk-2.14.2/Source/ThirdParty/ANGLE/src/common/mathutil.h:562:20: error: delegating constructors are permitted only in C++11
    IndexRange() : IndexRange(0, 0, 0) {}
                   ^~~~~~~~~~
11 warnings and 1 error generated.

Change History (11)

comment:1 Changed 7 years ago by kencu (Ken)

Most likely a duplicate of 54798

To build webkit2-gtk with the system clang on many systems, I had to add configure.cxxflags-append -std=c++14 to the Portfile.

Alternatively, you can most likely build webkit2-gtk-devel as the issue seems fixed in that newer version. (Pretty soon we'll make that webkit2-gtk I think.) In most cases, webkit2-gtk-devel will satisfy the dependency.

Finally, if no happiness is coming your way, you can most most likely build webkit2-gtk using clang-4.0 which seems happier building it. First you have to install it sudo port -v install clang-4.0, and then when that is done, sudo port -v install webkit2-gtk configure.compiler=macports-clang-4.0.

If you're impatient, that last option is the most reliable way to get going.

comment:2 Changed 7 years ago by kencu (Ken)

Keywords: highsierra added
Owner: set to jeremyhu
Status: newassigned
Summary: webkit2-gtk build failing under High Sierrawebkit2-gtk @2.14.2: build failing under High Sierra due to error: delegating constructors are permitted only in C++11

comment:3 Changed 7 years ago by kencu (Ken)

Cc: dbevans added

comment:4 Changed 7 years ago by kencu (Ken)

Description: modified (diff)

comment:5 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Priority: HighNormal

comment:6 Changed 7 years ago by pmetzger (Perry E. Metzger)

If adding

configure.cxxflags-append -std=c++14

to the Portfile fixes it, couldn't we just do that, at least conditionalized for High Sierra? I set my build that way and it is now proceeding very well, though it hasn't finished yet.

I think this is high priority, as without webkit2-gtk, a lot of packages just can't be built.

comment:7 Changed 7 years ago by kencu (Ken)

indeed. Just need to see which systems (maybe all?) will accept it. Another user said it didn't work for him..

Webkit2-gtk is an all-day build, as you know, so test cycles are long. But perhaps that is what we will do. . Pls report back your final success/failure.

Last edited 7 years ago by kencu (Ken) (previous) (diff)

comment:8 Changed 7 years ago by pmetzger (Perry E. Metzger)

Succeeded just fine under High Sierra given the configure.cxxflags-append -std=c++14 setting.

comment:9 Changed 7 years ago by pmetzger (Perry E. Metzger)

(Might not work on other systems, but one could temporarily conditionalize it on 10.13 and above?)

comment:10 Changed 7 years ago by kencu (Ken)

OK - good to hear. I'll spin up some VMs over the next day or two and see how many system versions can tolerate adding that setting.

comment:11 Changed 7 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 3f759c8b29e91bc64b0a397fa67dbd1f60f31600/macports-ports:

webkit2-gtk: add std=c++14 to fix build with newer clangs

closes: #54798
closes: #54928

Note: See TracTickets for help on using tickets.