#57700 closed defect (fixed)
quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | yan12125 (Chih-Hsuan Yen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | quazip |
Description
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
Change History (8)
comment:1 Changed 6 years ago by yan12125 (Chih-Hsuan Yen)
comment:2 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)
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.
comment:3 follow-up: 5 Changed 6 years ago by kencu (Ken)
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.
comment:4 Changed 6 years ago by kencu (Ken)
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
comment:5 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to 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.
I do not think that issue is related. That issue arises because the cmake portgroups request 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.
comment:6 Changed 6 years ago by yan12125 (Chih-Hsuan Yen)
comment:7 Changed 6 years ago by yan12125 (Chih-Hsuan Yen)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
The 10.8 builder is happy, closing.
https://build.macports.org/builders/ports-10.8_x86_64_legacy-builder/builds/80067
comment:8 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)
Amazing, thanks for figuring this out!
Thanks for the hint!
As a side note, ticket:57167 should be fixed, too, or texstudio is still broken on 10.8.