We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Logging is successful on a 64 bits binary:
CodeChecker` log -b "./builder64" -o ./compile_command64.json [INFO 2024-08-14 14:09] - Starting build... [INFO 2024-08-14 14:09] - Using CodeChecker ld-logger. [INFO 2024-08-14 14:09] - Build finished successfully. (CodeChecker venv-dev) ednikru@seliiuvd02700[14:09][workspace/test_files/codechecker_loggin_test]$ cat compile_command64.json [ { "directory": "/local/workspace/test_files/codechecker_loggin_test", "command": "/usr/bin/gcc ./test.c", "file": "./test.c" } ]
And it fails for 32 bit binary (on a 64 bits machine):
(CodeChecker venv-dev) ednikru@seliiuvd02700[14:10][workspace/test_files/codechecker_loggin_test]$ CodeChecker log -b "./builder32" -o ./compile_command32.json [INFO 2024-08-14 14:10] - Starting build... [INFO 2024-08-14 14:10] - Using CodeChecker ld-logger. ERROR: ld.so: object '/local/workspace/codechecker/build/CodeChecker/ld_logger/lib/x86_64/ldlogger.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored. [INFO 2024-08-14 14:10] - Build finished successfully. ` builder.c ` #include<stdlib.h> int main(void){ const char* command="gcc ./test.c"; system(command); return 0; }
gcc ./builder.c -m32 -o builder32
The text was updated successfully, but these errors were encountered:
Looks like this PR changed the behaviour in CodeChecker:
https://github.com/Ericsson/codechecker/pull/3919/files
the ld_logger.so binary is selected based on the host OS platform instead of the executed binary...
Sorry, something went wrong.
dkrupp
Successfully merging a pull request may close this issue.
Logging is successful on a 64 bits binary:
And it fails for 32 bit binary (on a 64 bits machine):
gcc ./builder.c -m32 -o builder32
The text was updated successfully, but these errors were encountered: