[CXX-682] make fails on EP_mnmlstc_core Created: 25/Sep/15  Updated: 11/Sep/19  Resolved: 25/Sep/15

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: 0.2.0
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Christian Wyss Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS6



 Description   

Scanning dependencies of target EP_mnmlstc_core
[  0%] Creating directories for 'EP_mnmlstc_core'
[  1%] Performing download step (git clone) for 'EP_mnmlstc_core'
-- EP_mnmlstc_core download command succeeded.  See also /.../mongo-cxx-driver/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-download-*.log
[  2%] No patch step for 'EP_mnmlstc_core'
[  2%] No update step for 'EP_mnmlstc_core'
[  2%] Performing configure step for 'EP_mnmlstc_core'
CMake Error at /.../mongo-cxx-driver/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-configure-Release.cmake:16 (message):
  Command failed: 1
 
   '/usr/bin/cmake' '-DCMAKE_BUILD_TYPE=Release' '-DBUILD_TESTING=Off' '-DCMAKE_INSTALL_PREFIX:PATH=/.../mongo-cxx-driver/build/install/include/bsoncxx/v0.3/bsoncxx/third_party/mnmlstc' '-DINCLUDE_INSTALL_DIR=.' '-GUnix Makefiles' '/.../mongo-cxx-driver/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core'
 
  See also
 
    /.../mongo-cxx-driver/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-configure-*.log
 
 
make[2]: *** [src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-configure] Error 1
make[1]: *** [src/bsoncxx/third_party/CMakeFiles/EP_mnmlstc_core.dir/all] Error 2
make: *** [all] Error 2

I already had problems before, which I could solve by issuing 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/' as suggested by CXX-526



 Comments   
Comment by Andrew Morrow (Inactive) [ 25/Sep/15 ]

christian.wyss@gfk.com - I'm closing this ticket as "Works as Designed" for now, please feel free to ping back the ticket if you have any additional questions or concerns.

Comment by Andrew Morrow (Inactive) [ 25/Sep/15 ]

Yeah, it is a difficult situation but we really didn't want to burden the new driver with a pile of legacy support right out of the gate. There will be plenty of time for that to accrete later. Two things to consider that might help:

Comment by Christian Wyss [ 25/Sep/15 ]

Crap.
That's what you end with if you go for an enterprise distro - the latest stuff won't come for ages..

I'll have a look at CentOS7 then..
Somehow I can't keep from thinking that's a ugly side effect, though..
.. the redhat line, which is quite poular in environments where MongoDB is 'at home' not being able to build it..?

Hope someone better than myself finds a way to provide some RPM that run on el6..

Comment by Andrew Morrow (Inactive) [ 25/Sep/15 ]

Unfortunately GCC 4.4 doesn't really support C++11. It supports only a very limited subset of the draft standard, as the compiler was released before the C++11 standard was approved: https://gcc.gnu.org/gcc-4.4/cxx0x_status.html. I doubt that much of the driver would compile, even if MNMLSTC did.

Comment by Christian Wyss [ 25/Sep/15 ]

Hello acm
Well - those CentOS brings with it per default, I guess.
Compiler

gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
Copyright (C) 2010 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.

Comment by Andrew Morrow (Inactive) [ 25/Sep/15 ]

Hi christian.wyss@gfk.com - If that is the real error, then there isn't much we will be able to do. The C++11 driver requires a conforming C++11 compiler and standard library. What compiler and standard library version are you using?

Comment by Christian Wyss [ 25/Sep/15 ]

The log says

CMake Error at CMakeLists.txt:117 (message):
  standard header <type_traits> could not be found

I think on CentOS6 this would have to be <tr1/type_traits> to work, but I'm not really proof in this area

Generated at Wed Feb 07 21:59:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.