Discussion:
[MacPorts] #57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
MacPorts
2018-11-30 00:14:24 UTC
Permalink
#57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
------------------------+----------------------
Reporter: ryandesign | Owner: yan12125
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: quazip
------------------------+----------------------
[https://build.macports.org/builders/ports-10.8_x86_64_legacy-
builder/builds/80063/steps/install-port/logs/stdio quazip fails to build
on older systems] that need to use a MacPorts clang compiler for C++11
support:

{{{
-- The C compiler identification is Clang 5.0.2
-- The CXX compiler identification is Clang 5.0.2
-- Check for working C compiler: /opt/local/bin/clang-mp-5.0
-- Check for working C compiler: /opt/local/bin/clang-mp-5.0 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/local/bin/clang++-mp-5.0
-- Check for working CXX compiler: /opt/local/bin/clang++-mp-5.0 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /opt/local/lib/libz.dylib (found version "1.2.11")
-- Configuring done
CMake Error in quazip/CMakeLists.txt:
No known features for CXX compiler

"Clang"

version 5.0.2.
}}}

If desired, you can reproduce this problem on newer systems by forcing the
use of a MacPorts clang compiler, for example:

{{{
sudo port configure quazip configure.compiler=macports-clang-6.0
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57700>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 01:05:51 UTC
Permalink
#57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
-------------------------+----------------------
Reporter: ryandesign | Owner: yan12125
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: quazip |
-------------------------+----------------------

Comment (by yan12125):

Thanks for the hint!

As a side note, ticket:57167 should be fixed, too, or texstudio is still
broken on 10.8.
--
Ticket URL: <https://trac.macports.org/ticket/57700#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 01:11:21 UTC
Permalink
#57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
-------------------------+----------------------
Reporter: ryandesign | Owner: yan12125
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: quazip |
-------------------------+----------------------

Comment (by ryandesign):

Yeah this may be a general problem with anything that uses a MacPorts
clang compiler with qt5, and if so maybe the fix needs to go into the qt5
portgroup. But I don't know what the fix is.
--
Ticket URL: <https://trac.macports.org/ticket/57700#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 01:24:09 UTC
Permalink
#57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
-------------------------+----------------------
Reporter: ryandesign | Owner: yan12125
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: quazip |
-------------------------+----------------------

Comment (by kencu):

I've seen this before. You usually have to change the compiler test from
something like "equals" clang to "matches" clang, if it is the same issue.
--
Ticket URL: <https://trac.macports.org/ticket/57700#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 02:07:08 UTC
Permalink
#57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
-------------------------+----------------------
Reporter: ryandesign | Owner: yan12125
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: quazip |
-------------------------+----------------------

Comment (by kencu):

Not in this case tho.

you get pretty close if you delete PG cmake and qt5, and go with PG qmake5
instead, though.

{{{
PortGroup cxx11 1.1
PortGroup github 1.0
PortGroup qmake5 1.0
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57700#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 03:12:14 UTC
Permalink
#57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
-------------------------+----------------------
Reporter: ryandesign | Owner: yan12125
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: quazip |
-------------------------+----------------------
Post by MacPorts
I've seen this before. You usually have to change the compiler test from
something like "equals" clang to "matches" clang, if it is the same issue.

I do not think that issue is related. That issue arises because the cmake
portgroups request
[https://cmake.org/cmake/help/latest/policy/CMP0025.html CMP0025] which
causes Apple's Clang to be identified as "AppleClang" to distinguish it
from open-source Clang. Projects that assume that any Clang compiler is
identified as "Clang" need to be patched as you suggest. That's not
applicable here, because the problem is occurring not with Apple Clang but
with open-source Clang.
--
Ticket URL: <https://trac.macports.org/ticket/57700#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 03:24:49 UTC
Permalink
#57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
-------------------------+----------------------
Reporter: ryandesign | Owner: yan12125
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: quazip |
-------------------------+----------------------

Comment (by yan12125):

In [changeset:"98445d69fc13be9c968abe4c597de8324b0ceee6/macports-ports"
98445d69fc13be9c968abe4c597de8324b0ceee6/macports-ports] (master):
{{{
#!ConfigurableCommitTicketReference repository="macports-ports"
revision="98445d69fc13be9c968abe4c597de8324b0ceee6"
quazip: fix building on 10.8

That's a very long story...

1. On 10.8, Qt 5.7 is used, and in this version cxx_decltype feature is
requested [1]
2. Compiler features detection requires CMAKE_*_STANDARD_COMPILE_OPTION
(Modules/Compiler/CMakeCommonCompilerMacros.cmake)
3. CMAKE_*_STANDARD_COMPILE_OPTION are defined in
Modules/Compiler/Clang-CXX.cmake. However, those definitions are
skipped if the system is Apple and CMP0025 is not NEW
4. We have -DCMAKE_POLICY_DEFAULT_CMP0025=NEW. Why doesn't it work?
That's because CMAKE_POLICY_DEFAULT_* variables are handled in the
cmake_minimum_required() command [2], while compiler feature
detection occurs in the project() command.

Now the conclusion - cmake_minimum_required() should be before project()

Ref: https://trac.macports.org/ticket/57700

[1] https://bugreports.qt.io/browse/QTBUG-57886
[2]
https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57700#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 03:32:28 UTC
Permalink
#57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
-------------------------+----------------------
Reporter: ryandesign | Owner: yan12125
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: fixed | Keywords:
Port: quazip |
-------------------------+----------------------
Changes (by yan12125):

* status: assigned => closed
* resolution: => fixed


Comment:

The 10.8 builder is happy, closing.

https://build.macports.org/builders/ports-10.8_x86_64_legacy-
builder/builds/80067
--
Ticket URL: <https://trac.macports.org/ticket/57700#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-30 04:07:56 UTC
Permalink
#57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
-------------------------+----------------------
Reporter: ryandesign | Owner: yan12125
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: fixed | Keywords:
Port: quazip |
-------------------------+----------------------

Comment (by ryandesign):

Amazing, thanks for figuring this out!
--
Ticket URL: <https://trac.macports.org/ticket/57700#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...