GNOME Bugzilla – Bug 686578
anjuta can't find a C++ compiler? (works when forcing g++)
Last modified: 2012-10-21 15:21:29 UTC
Anjuta has been unable to find a C++ compiler on OpenBSD since 3.6.x. The configure script errors out with: configure: error: C++ Compiler required to compile Anjuta However Anjuta builds fine when I set the following in the environment: ac_ct_CXX=/usr/bin/c++ Here are the relevant bits from config.log: configure:4882: checking for C++ compiler version configure:4891: c++ --version >&5 c++ (GCC) 4.2.1 20070719 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4902: $? = 0 configure:4891: c++ -v >&5 Reading specs from /usr/lib/gcc-lib/amd64-unknown-openbsd5.2/4.2.1/specs Target: amd64-unknown-openbsd5.2 Configured with: OpenBSD/amd64 system compiler Thread model: posix gcc version 4.2.1 20070719 configure:4902: $? = 0 configure:4891: c++ -V >&5 c++: '-V' option must have argument configure:4902: $? = 1 configure:4891: c++ -qversion >&5 c++: unrecognized option '-qversion' c++: no input files configure:4902: $? = 1 configure:4906: checking whether we are using the GNU C++ compiler configure:4934: result: yes configure:4943: checking whether c++ accepts -g configure:5004: result: yes configure:5029: checking dependency style of c++ configure:5140: result: gcc3 configure:5157: error: C++ Compiler required to compile Anjuta and this is from a configure run with "ac_ct_CXX=/usr/bin/c++" set: configure:4882: checking for C++ compiler version configure:4891: c++ --version >&5 c++ (GCC) 4.2.1 20070719 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4902: $? = 0 configure:4891: c++ -v >&5 Reading specs from /usr/lib/gcc-lib/amd64-unknown-openbsd5.2/4.2.1/specs Target: amd64-unknown-openbsd5.2 Configured with: OpenBSD/amd64 system compiler Thread model: posix gcc version 4.2.1 20070719 configure:4902: $? = 0 configure:4891: c++ -V >&5 c++: '-V' option must have argument configure:4902: $? = 1 configure:4891: c++ -qversion >&5 c++: unrecognized option '-qversion' c++: no input files configure:4902: $? = 1 configure:4906: checking whether we are using the GNU C++ compiler configure:4934: result: yes configure:4943: checking whether c++ accepts -g configure:5004: result: yes configure:5029: checking dependency style of c++ configure:5140: result: gcc3 configure:5163: checking whether cc understands -c and -o together configure:5191: cc -c conftest.cpp -o conftest2.o >&5 configure:5195: $? = 0 configure:5201: cc -c conftest.cpp -o conftest2.o >&5 configure:5205: $? = 0 configure:5260: result: yes configure:5321: checking whether gcc understands -Wno-sign-compare configure:5334: c++ -c -O2 -pipe -I/usr/local/include conftest.cpp >&5 configure:5334: $? = 0 Any help would be appreciated.
Thanks for you bug report. I think it is a duplicate of bug #684758. Anjuta configure script was using an internal variable of autoconf which is probably not available on a newer version. I have fixed this recently in this patch: http://git.gnome.org/browse/anjuta/commit/?id=ed542779a5d35c3cdef3567a9c1aaaf8cfa23b19 Could you check that the new test is working on OpenBSD? *** This bug has been marked as a duplicate of bug 684758 ***
Yep, the new test and the committed patch work ok. Thanks!