cctools fails to install on my 10.7.5

Franco Vaccari vaccari at units.it
Wed Feb 26 21:33:43 UTC 2020


A little digging around and the “b” was associated to a supplemental update, and that shouldn’t matter much here.

And definitely I can’t compile anything there. I’m afraid Xcode update was not as smooth as it should have been. Will look how to clean that...

/usr/bin/clang++ -stdlib=libc++ hello.cpp
In file included from hello.cpp:1:
In file included from /usr/bin/../lib/c++/v1/iostream:38:
In file included from /usr/bin/../lib/c++/v1/ios:216:
In file included from /usr/bin/../lib/c++/v1/__locale:15:
In file included from /usr/bin/../lib/c++/v1/string:434:
In file included from /usr/bin/../lib/c++/v1/algorithm:591:
/usr/bin/../lib/c++/v1/type_traits:165:12: error: unknown type name '_LIBCPP_CONSTEXPR'
    static _LIBCPP_CONSTEXPR const _Tp      value = __v;
           ^
/usr/bin/../lib/c++/v1/type_traits:165:30: error: expected member name or ';' after
      declaration specifiers
    static _LIBCPP_CONSTEXPR const _Tp      value = __v;
    ~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/bin/../lib/c++/v1/type_traits:169:9: error: unknown type name '_LIBCPP_CONSTEXPR'
        _LIBCPP_CONSTEXPR operator value_type() const {return value;}
        ^
/usr/bin/../lib/c++/v1/type_traits:169:63: error: use of undeclared identifier 'value'
        _LIBCPP_CONSTEXPR operator value_type() const {return value;}
                                                              ^
/usr/bin/../lib/c++/v1/type_traits:173:1: error: unknown type name '_LIBCPP_CONSTEXPR'
_LIBCPP_CONSTEXPR const _Tp integral_constant<_Tp, __v>::value;
^
/usr/bin/../lib/c++/v1/type_traits:173:19: error: expected unqualified-id
_LIBCPP_CONSTEXPR const _Tp integral_constant<_Tp, __v>::value;
                  ^
/usr/bin/../lib/c++/v1/type_traits:730:2: error: is_base_of not implemented.
#error is_base_of not implemented.
 ^
/usr/bin/../lib/c++/v1/type_traits:400:56: error: no member named 'value' in
      'std::__1::is_integral<void>'
    : public integral_constant<bool, is_integral<_Tp>::value      ||
                                     ~~~~~~~~~~~~~~~~~~^
/usr/bin/../lib/c++/v1/type_traits:941:19: note: in instantiation of template class
      'std::__1::is_arithmetic<void>' requested here
                 (is_arithmetic<_A2>::value || is_void<_A2>::value) &&
                  ^
/usr/bin/../lib/c++/v1/type_traits:949:22: note: in instantiation of default argument for
      '__promote<type-parameter-0-0, void, void>' required here
    typedef typename __promote<_A1>::type __type1;
                     ^~~~~~~~~~~~~~
/usr/bin/../lib/c++/v1/type_traits:949:38: error: expected a qualified name after 'typename'
    typedef typename __promote<_A1>::type __type1;
                                     ^
/usr/bin/../lib/c++/v1/type_traits:949:42: error: expected ';' at end of declaration list
    typedef typename __promote<_A1>::type __type1;
                                         ^
/usr/bin/../lib/c++/v1/type_traits:941:39: error: no member named 'value' in
      'std::__1::is_arithmetic<void>'
                 (is_arithmetic<_A2>::value || is_void<_A2>::value) &&
                  ~~~~~~~~~~~~~~~~~~~~^
/usr/bin/../lib/c++/v1/type_traits:950:22: note: in instantiation of default argument for
      '__promote<type-parameter-0-1, void, void>' required here
    typedef typename __promote<_A2>::type __type2;
                     ^~~~~~~~~~~~~~
/usr/bin/../lib/c++/v1/type_traits:950:38: error: expected a qualified name after 'typename'
    typedef typename __promote<_A2>::type __type2;
                                     ^
/usr/bin/../lib/c++/v1/type_traits:950:42: error: expected ';' at end of declaration list
    typedef typename __promote<_A2>::type __type2;
                                         ^
/usr/bin/../lib/c++/v1/type_traits:941:39: error: no member named 'value' in
      'std::__1::is_arithmetic<void>'
                 (is_arithmetic<_A2>::value || is_void<_A2>::value) &&
                  ~~~~~~~~~~~~~~~~~~~~^
/usr/bin/../lib/c++/v1/type_traits:951:38: error: expected a qualified name after 'typename'
    typedef typename __promote<_A3>::type __type3;
                                     ^
/usr/bin/../lib/c++/v1/type_traits:951:42: error: expected ';' at end of declaration list
    typedef typename __promote<_A3>::type __type3;
                                         ^
/usr/bin/../lib/c++/v1/type_traits:953:22: error: use of undeclared identifier '__type1'
    typedef decltype(__type1() + __type2() + __type3()) type;
                     ^
/usr/bin/../lib/c++/v1/__config:291:32: note: expanded from macro 'decltype'
#define decltype(x) __typeof__(x)
                               ^
In file included from hello.cpp:1:
In file included from /usr/bin/../lib/c++/v1/iostream:38:
In file included from /usr/bin/../lib/c++/v1/ios:216:
In file included from /usr/bin/../lib/c++/v1/__locale:15:
In file included from /usr/bin/../lib/c++/v1/string:434:
In file included from /usr/bin/../lib/c++/v1/algorithm:591:
/usr/bin/../lib/c++/v1/type_traits:953:34: error: use of undeclared identifier '__type2'
    typedef decltype(__type1() + __type2() + __type3()) type;
                                 ^
/usr/bin/../lib/c++/v1/__config:291:32: note: expanded from macro 'decltype'
#define decltype(x) __typeof__(x)
                               ^
In file included from hello.cpp:1:
In file included from /usr/bin/../lib/c++/v1/iostream:38:
In file included from /usr/bin/../lib/c++/v1/ios:216:
In file included from /usr/bin/../lib/c++/v1/__locale:15:
In file included from /usr/bin/../lib/c++/v1/string:434:
In file included from /usr/bin/../lib/c++/v1/algorithm:591:
/usr/bin/../lib/c++/v1/type_traits:953:46: error: use of undeclared identifier '__type3'
    typedef decltype(__type1() + __type2() + __type3()) type;
                                             ^
/usr/bin/../lib/c++/v1/__config:291:32: note: expanded from macro 'decltype'
#define decltype(x) __typeof__(x)
                               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.


> On 26 Feb 2020, at 22:03, Ken Cunningham <ken.cunningham.webuse at gmail.com> wrote:
> 
>> Here it is:
>> 
>> macOS 10.7.5 11G63b
>> Xcode 4.6.3 4H1503 
>> 
>> The only difference is the trailing “b” in macOS. I don’t know its meaning, for sure it’s not “b for beta”, as I’ve never played with beta systems.
>> 
>> 
> 
> I'm not sure about the "b", but the issue seems to be you can't build anything with c++ it appears, even though our build lines are identical:
> 
> 
> You:
> 
> /usr/bin/clang++ -Os -stdlib=libc++  -arch x86_64 -I/opt/local/libexec/llvm-3.4/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3  -g -fno-common  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-927.0.2/../ld64-450.3/src/abstraction -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-927.0.2/../ld64-450.3/src/other -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-927.0.2/include -stdlib=libc++ -c -o \
> :info:build 		./PruneTrie.o ./PruneTrie.cpp
> :info:build In file included from ./PruneTrie.cpp:24:
> :info:build In file included from /usr/bin/../lib/c++/v1/vector:261:
> :info:build In file included from /usr/bin/../lib/c++/v1/__bit_reference:15:
> :info:build In file included from /usr/bin/../lib/c++/v1/algorithm:591:
> :info:build /usr/bin/../lib/c++/v1/type_traits:165:12: error: unknown type name '_LIBCPP_CONSTEXPR'
> :info:build     static _LIBCPP_CONSTEXPR const _Tp      value = __v;
> 
> 
> Me:
> /usr/bin/clang++ -Os -stdlib=libc++  -arch x86_64 -I/opt/local/libexec/llvm-3.4/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3  -g -fno-common  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-927.0.2/../ld64-450.3/src/abstraction -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-927.0.2/../ld64-450.3/src/other -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-927.0.2/include -stdlib=libc++ -c -o \
> 		./PruneTrie.o ./PruneTrie.cpp
> 
> 
> 
> Please try building a very simple c++ "hello, world" program with 
> 
> /usr/bin/clang++ -stdlib=libc++ 
> 
> and see if your c++ compiler is working at all --- 
> 
> If not, there's your issue --- and you'd need to reinstall something. We can't do much if your /usr/bin/clang++ is broken.
> 
> If it works -- well then I don't know just yet -- we'd have to see...
> 
> Ken



More information about the macports-users mailing list