Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build failure, "C++ compiler" issue.



On Tue, Oct 01, 2013 at 08:09:34AM +0100, Nick Hudson wrote:
> On 09/30/13 23:02, B Harder wrote:
[...]
> >checking that C++ compiler can compile simple program... yes
> >checking that C++ static constructors and destructors are called... no
> >configure: error: a working C++ compiler is required

Just got hit by the same problem.

> What's the error in config.log?

configure:3146: checking that C++ static constructors and destructors are called
configure:3183: c++ -o conftest -O  -I/local/src/NetBSD/tool/include/compat 
-I/local/src/NetBSD/src/tools/compat  -DHAVE_NBTOOL_CONFIG_H=1 
-D_FILE_OFFSET_BITS=64  conftest.cc  >&5
configure:3186: $? = 0
configure:3188: ./conftest
configure:3191: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|        /* confdefs.h.  */
|              
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| extern "C"void exit (int);
| #endif
| /* end confdefs.h.  */
| 
| 
| extern "C"{
|   void _exit(int);
| }
| 
| int i;
| struct A {
|   char dummy;
|   A() { i = 1; }
|   ~A() { if (i == 1) _exit(0); }
| };
| 
| A a;
| 
| int main()
| {
|   return 1;
| }
| 
| 
| 
configure:3201: result: no
configure:3203: error: a working C++ compiler is required

-- 
Nicolas Joly

Biology IT Center
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index