./configure prefers 'g++' to 'c++' #12017

issue janstary opened this issue on December 25, 2017
  1. janstary commented at 11:37 AM on December 25, 2017: none

    This is the current git on OpenBSD current/amd64. That's a system with clang 5.0.0 as the system compiler. In fact, 'c++' is 'clang++':

    $ ls -li /usr/bin/c++ /usr/bin/clang++
    32869 -r-xr-xr-x  6 root  bin  42331608 Dec 18 18:55 /usr/bin/c++
    32869 -r-xr-xr-x  6 root  bin  42331608 Dec 18 18:55 /usr/bin/clang++
    

    It also has the old GCC 4.2.1 (which used to be the system compiler) installed as gcc and g++. It seems that ./configure prefers the name g++ before c++, and gcc before cc (which might be yet another of its gnuisms). That's why ./configure fails here with

    checking whether g++ supports C++11 features with -h std=c++11... no
    configure: error: *** A compiler with support for C++11 language features is required.
    

    but ./configure CC=cc CXX=c++ succeeds.

    I find it strange that I have to explicitly specify CC=cc and CXX=c++. Shouldn't that be the default, as opposed to gcc and g++?

  2. fanquake added the label Linux/Unix on Dec 25, 2017
  3. fanquake commented at 1:41 PM on December 25, 2017: member

    See #11984 for the current work in progress changes for OpenBSD 6.2.

  4. MarcoFalke commented at 8:49 PM on April 12, 2018: member

    Seems to be fixed in current master, no?

  5. MarcoFalke closed this on Apr 12, 2018

  6. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me