Build-wrapper-macos-x86 version 6.61 failed to on macOS 11.7.10

Hi everyone,

The problem

I’m using Build Wrapper to compile the database for analyzing my C++ source code. However, after our system upgraded SonarQube Server from version 10.8.0 to 2025.1, the Build Wrapper started failing with the following error:

dyld: Symbol not found: __ZTTNSt3__114basic_ofstreamIcNS_11char_traitsIcEEEE
  Referenced from: <path>/build-wrapper-macosx-x86
  Expected in: /usr/lib/libc++.1.dylib

It was working fine on macOS 15, but after investigating, I discovered that the Build Wrapper was updated from 6.61 to 6.62. It appears that the new version is not compatible with macOS 11. However, according to the documentation, the minimum required macOS version is 10.14.3, which is confusing.

Expectation:

I need to analyze my C++ source code on macOS 11 with SonarQube Server 2025.1 (and future versions too).

Considering solutions:

Here are some possible solutions I’ve considered:

  1. Upgrade to a newer macOS version
    :x: Not an option right now, as I have dependencies that require macOS 11.
  2. Use an older Build Wrapper version
    :x: Based on what I’ve read, we must use the Build Wrapper version that ships with SonarQube Server.
  3. Switch to Automatic Configuration mode (so Build Wrapper is no longer needed)
    → I found this approach in this documentation, but I’m unsure if it will work for my project or if there are any trade-offs.
  4. Continue using Compilation Database mode and generate the compilation database with a third-party tool
    → This seems like a possible alternative, but it may require significant effort.

Question:

Are there any other possible solutions? And based on my constraints, what would be the best solution for my case?

p/s: I’m new to this domain, so if anything is incorrect or missing, please let me know, and I’ll provide more details.

Thank you in advance!

Hi,

Can we get the full analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann

1 Like

Hi, I have not yet executed the scanner, it failed from build wrapper step. I just execute it with --help and it return the following error

dyld: Symbol not found: __ZTTNSt3__114basic_ofstreamIcNS_11char_traitsIcEEEE
  Referenced from: <path>/build-wrapper-macosx-x86
  Expected in: /usr/lib/libc++.1.dylib
1 Like

Hi,

What compiler are you using?

 
Thx,
Ann

I’m using xcode version 13.0.0 to compile c++ project on macOS 11.7.10

Hello @hung.bui.opswat,

  • Can you please clarify which architecture you’re using? Is it x86_64 or arm64?
  • To check whether analysis works, Can you do an analysis using the automatic configuration mode and share the logs with us

If you prefer to share the logs privately, please let me know so I can start a private thread

Thanks,

1 Like

Hi @mostafa.mohammed,

Can you please clarify which architecture you’re using? Is it x86_64 or arm64?

→ It’s x86_64.

To check whether analysis works, Can you do an analysis using the automatic configuration mode and share the logs with us.

→ Do you just need to check if the analysis works on my environment? If so, can I analyse a dummy project to verify it? Otherwise, I’ll need to check with my team before sharing the logs.

Additionally, build-wrapper-macos-x86 version 6.61 and sonar-scanner-cli-5.0.1.3006-macosx are working fine on my environment

Hello @hung.bui.opswat,

Yes analyzing dummy projects would be enough to check if analysis works using the same versions that caused the failures, so that should be build-wrapper-macos-x86 version 6.62

Thanks,

1 Like

Hi @mostafa.mohammed
Here is the log. Let me know if you need any additional details.

sonar_scanner.log (30.1 KB)

Hi @hung.bui.opswat ,

I created a ticket to tackle the issue: Jira.

We will fix it in the next version, and we should be able to backport it to the next LTA bugfix.

3 Likes

Hi @mpaladin , @mostafa.mohammed and @ganncamp
Thank you all for your help.

2 Likes