[CDRIVER-2132] CMake unnecessarily requires C++ compiler Created: 21/Apr/17  Updated: 28/Oct/23  Resolved: 21/Apr/17

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.6.2
Fix Version/s: 1.7.0

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

export CXX=/dev/null 
 bjori@TaylorSwift  ~/Sources/libbson/cbuild   master  cmake ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /dev/null
-- Check for working CXX compiler: /dev/null -- broken
CMake Error at /usr/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:44 (message):
  The C++ compiler "/dev/null" is not able to compile a simple test program.



 Comments   
Comment by Githook User [ 21/Apr/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2132 Remove dependency on c++ compiler
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/11baed405935b7a37b62712885ec94dd46bb3211

Comment by Githook User [ 21/Apr/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: Revert "Revert "CDRIVER-2132 CMake unnecessarily requires C++ compiler""

This reverts commit 37fc6c2fc5e3b0cc362fae4c70beeb59a5a8feee.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/9f7918956bb1184fdd026658be035cc3b0247819

Comment by Githook User [ 21/Apr/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: Revert "CDRIVER-2132 CMake unnecessarily requires C++ compiler"

We do compile one c++ file during CMake configuration

This reverts commit 10edbf3b9d530e41e7930d308165d2d42a94871b.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/37fc6c2fc5e3b0cc362fae4c70beeb59a5a8feee

Comment by Githook User [ 21/Apr/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2132 CMake unnecessarily requires C++ compiler
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/10edbf3b9d530e41e7930d308165d2d42a94871b

Comment by Githook User [ 21/Apr/17 ]

Author:

{'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'hannes.magnusson@gmail.com'}

Message: Merge pull request #188 from greg-rowe/cmake-c-only

CDRIVER-2132: Change cmake to require only a C compiler
Branch: master
https://github.com/mongodb/libbson/commit/3751fb3646705178ccdff0b4b716b5c820d89f6e

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