I’ve reinstalled the latest Command Line Tools released for Lion and clang++ is now
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.4.2 Thread model: posix while before it was Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.4.2 Thread model: posix and cctools finally installs properly So problem solved and sorry for the noise… Thanks Ken for the hint! Franco > On 26 Feb 2020, at 22:33, Franco Vaccari <[email protected]> wrote: > > 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… > > <SNIP> > 20 errors generated. > > >> On 26 Feb 2020, at 22:03, Ken Cunningham <[email protected]> >> 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 >
