Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
janstary opened this issue Dec 25, 2017 · 2 comments
Closed

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

janstary opened this issue Dec 25, 2017 · 2 comments

Comments

@janstary
Copy link

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++?

@fanquake
Copy link
Member

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

@maflcko
Copy link
Member

maflcko commented Apr 12, 2018

Seems to be fixed in current master, no?

@maflcko maflcko closed this as completed Apr 12, 2018
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants