Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error with xt-clang #490

Open
lenghonglin opened this issue Nov 22, 2022 · 3 comments
Open

build error with xt-clang #490

lenghonglin opened this issue Nov 22, 2022 · 3 comments

Comments

@lenghonglin
Copy link

Describe the bug

image

i use xt-clang to make, but it seem glib_version is not right

image

To Reproduce
100%

Environment:
OS name: arch linux
Bear version: 3.0.20
Bear install method: pacman
xt-clang version:
image

@rizsotto
Copy link
Owner

rizsotto commented Dec 9, 2022

Hey @lenghonglin , thanks for the report. That's an interesting one... You installed Bear from Arch's package (which was probably compiled against the default libstdc++.so). And now you are running a process (xt-clang), which has its own version of that library. And because the libexec.so library is loaded into the xt-clang process memory, they are forced to share the symbols.

Could you try to run Bear in a wrapper mode? (Need to pass --force-wrapper flag. And make sure your build is support compiler from the CC or CXX environments.) This way the libexec.so is not loaded into the same process, and probably will work around this problem.

@nokia-git
Copy link

I have the same issue.
Before i use the force wrapper flag, the make flow finished, and the compile_commands.json seems "correct".
After use the force wrapper flag, there are not any warning or error msg, but i got a empty compile_commands.json ...

@rizsotto
Copy link
Owner

@nokia-git , for empty compilation database, there is a section on the troubleshooting guide which gives you hint what can cause it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants