Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#63281 closed defect (fixed)

macports-gcc-7 is not selected on libstdc++ systems with compiler.cxx_standard 2017

Reported by: evanmiller (Evan Miller) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone: MacPorts 2.7.2
Component: base Version: 2.7.1
Keywords: Cc: kencu (Ken)
Port: webkit2-gtk gcc7

Description (last modified by ryandesign (Ryan Carsten Schmidt))

 --->  Configuring webkit2-gtk
Failed to configure webkit2-gtk: Invalid value for configure.compiler:

It appears that the GCC7 installed on my system is not recognized as supporting C++17 (contrary to CompilerSelection). Manually setting the compiler

sudo port configure webkit2-gtk configure.compiler=macports-gcc-7

allows configuration to proceed.

Attachments (1)

webkit2-gtk-main.log (27.8 KB) - added by evanmiller (Evan Miller) 3 years ago.
Build log

Download all attachments as: .zip

Change History (9)

Changed 3 years ago by evanmiller (Evan Miller)

Attachment: webkit2-gtk-main.log added

Build log

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

This error comes from MacPorts, and it seems to think you have set configure.compiler to ""

270     :error:configure Failed to configure webkit2-gtk: Invalid value for configure.compiler:
271	:debug:configure Error code: NONE

Can you clean and try again, in case you might have accidentally left a space around the "=" sign or something?

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

oh, is this log coming from your first attempt, before you forced configure.compiler on the command line?

If so, that is weird. But not impossible. This pathway is not well travelled, and there could be hiccups in it.

configure.compiler, as chosen by base, should never be empty....but ....

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

I was able to get webkit2-gtk working as far back as 10.6 with several days worth of efforts.

I can't recall just now if I ever got it working on 10.5 Intel.

It would be a very pleasant and unexpected surprise if it builds on anything before that!

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

comment:4 Changed 3 years ago by evanmiller (Evan Miller)

Yes, the error appears before forcing configure.compiler on the command line. FWIW I don't see this error with any other packages. But any command involving webkit2-gtk produces the warning:

Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option

comment:5 Changed 3 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In 087ce29788c7ada01324163c2248ff05e49dd8f4/macports-base (master):

Fix values returned by portconfigure::get_min_gcc

These need to match the final segment of a configure.compiler value.
For example, macports-gcc-4.8 yields a version of 4.8, and
macports-gcc-7 yields 7. So 8.1 would not match macports-gcc-8 even
though the gcc8 port in fact provides a newer version than that. Also,
vercmp treats n.0 as greater than n, not equal.

Fixes: #63281

comment:6 Changed 3 years ago by jmroot (Joshua Root)

Component: portsbase
Summary: webkit2-gtk @2.28.2_2+minibrowser+x11: Failed to configure webkit2-gtkmacports-gcc-7 is not selected on libstdc++ systems with compiler.cxx_standard 2017

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

Description: modified (diff)

comment:8 Changed 2 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.7.2
Note: See TracTickets for help on using tickets.