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

Flags deleted incorrectly in generated makefiles #627

Closed
IDKWNTCMF opened this issue Aug 28, 2023 · 0 comments · Fixed by #628
Closed

Flags deleted incorrectly in generated makefiles #627

IDKWNTCMF opened this issue Aug 28, 2023 · 0 comments · Fixed by #628
Labels
bug Something isn't working

Comments

@IDKWNTCMF
Copy link
Collaborator

Description
At the moment UnitTestBot deletes -soname and --version-script flags with corresponding patterns:
-Wl,-soname,{...} and -Wl,--version-script={...}
However patterns can be different. For example -Wl,-soname -Wl,{...} and -Wl,--version-script,{...}.

To Reproduce
Steps to reproduce the behavior:

  1. Generate tests for yara or json-c
  2. Try to run generated tests

Expected behavior
Tests are supposed to be executed successfully.

Actual behavior
Linker error.

Visual proofs (screenshots, logs)

/usr/bin/ld.gold: error: /home/utbot/json-c/json-c.sym:14:15: syntax error, unexpected '{'
/usr/bin/ld.gold: error: /home/utbot/json-c/json-c.sym: not an object or archive
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
@IDKWNTCMF IDKWNTCMF added the bug Something isn't working label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant