# Concurrency issue during configuration step ? (\`No CMAKE\_OBJCXX\_COMPILER could be found.\`)

**URL:** https://discourse.cmake.org/t/concurrency-issue-during-configuration-step-no-cmake-objcxx-compiler-could-be-found/8245
**Category:** Usage
**Tags:** os:macos, gen:xcode
**Created:** [June 2, 2023, 9:39am UTC](https://discourse.cmake.org/t/concurrency-issue-during-configuration-step-no-cmake-objcxx-compiler-could-be-found/8245 "2023-06-02T09:39:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tonygo](https://discourse.cmake.org/user_avatar/discourse.cmake.org/tonygo/32/3095_2.png) [@tonygo](https://discourse.cmake.org/u/tonygo)
#### Post date: [June 2, 2023, 9:39am UTC](https://discourse.cmake.org/t/concurrency-issue-during-configuration-step-no-cmake-objcxx-compiler-could-be-found/8245/1 "2023-06-02T09:39:35Z")

</div>

Hi people 👋

My current challenge is to enable parallelization for an e2e tests suite.

The fun part is that what we test is also based on CMake. So each test will run the `cmake` configure command.

Before parallelization, all worked adequately, but now I get this error:

```plaintext
59: -- Executing: cmake -S <a-path> -B <a-path> -G Xcode -DCMAKE_BUILD_TYPE=Release
59: -- The CXX compiler identification is AppleClang 14.0.0.14000029
59: -- The OBJCXX compiler identification is unknown
59: -- Detecting CXX compiler ABI info
59: -- Detecting CXX compiler ABI info - done
59: -- Check for working CXX compiler: /Applications/Xcode-14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
59: -- Detecting CXX compile features
59: -- Detecting CXX compile features - done
59: CMake Error at CMakeLists.txt:19 (project):
59: No CMAKE_OBJCXX_COMPILER could be found.

```

Maybe some of this forum audience know about a project that runs parallel tests that use CMake underneath?

Note: I’m in the CI context (CircleCI)

---

<div class="post-metadata">

### Author: ![jviotti](https://discourse.cmake.org/user_avatar/discourse.cmake.org/jviotti/32/3030_2.png) [@jviotti](https://discourse.cmake.org/u/jviotti)
#### Post date: [June 2, 2023, 6:38pm UTC](https://discourse.cmake.org/t/concurrency-issue-during-configuration-step-no-cmake-objcxx-compiler-could-be-found/8245/2 "2023-06-02T18:38:09Z")

</div>

@tonygo Can you reproduce this outside of CTest? i.e. can you try running the various CMake-based tests directly from your terminal, in parallel?

Does it work there, or does it fail in the same way as within CTest?

---

<div class="post-metadata">

### Author: ![tonygo](https://discourse.cmake.org/user_avatar/discourse.cmake.org/tonygo/32/3095_2.png) [@tonygo](https://discourse.cmake.org/u/tonygo)
#### Post date: [June 2, 2023, 7:10pm UTC](https://discourse.cmake.org/t/concurrency-issue-during-configuration-step-no-cmake-objcxx-compiler-could-be-found/8245/3 "2023-06-02T19:10:45Z")

</div>

Yeah, I’m working on a script that will run cmake configuration in parallel, the same CMake file with different parameters for instance.

I’d prefer to post that topic earlier in my research as someone could already have the same experience.

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [June 3, 2023, 10:55pm UTC](https://discourse.cmake.org/t/concurrency-issue-during-configuration-step-no-cmake-objcxx-compiler-could-be-found/8245/4 "2023-06-03T22:55:03Z")

</div>

I’m not sure what structural arrangement you’re using, but you must not run more than one CMake instance for a given build directory at the same time. Parallel instances in different build directories should be fine though.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [June 7, 2023, 11:42am UTC](https://discourse.cmake.org/t/concurrency-issue-during-configuration-step-no-cmake-objcxx-compiler-could-be-found/8245/5 "2023-06-07T11:42:47Z")

</div>

> [@tonygo](#):
>
> `-S <a-path> -B <a-path>`

In-source builds take the Highlander approach to things: there can only be one. Instead, use a per-test build directory.

---

<div class="post-metadata">

### Author: ![tonygo](https://discourse.cmake.org/user_avatar/discourse.cmake.org/tonygo/32/3095_2.png) [@tonygo](https://discourse.cmake.org/u/tonygo)
#### Post date: [June 7, 2023, 12:32pm UTC](https://discourse.cmake.org/t/concurrency-issue-during-configuration-step-no-cmake-objcxx-compiler-could-be-found/8245/6 "2023-06-07T12:32:07Z")

</div>

Thanks @ben.boeckel @craig.scott

Some of our test suits use the same build directory; I’ll see if I can inject something to make each unique.
