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

Error when running tests generated for libbpf project. #576

Open
kichunya opened this issue Jan 17, 2023 · 0 comments · Fixed by #575
Open

Error when running tests generated for libbpf project. #576

kichunya opened this issue Jan 17, 2023 · 0 comments · Fixed by #575
Assignees
Labels
bug Something isn't working

Comments

@kichunya
Copy link
Collaborator

Description
When tryin to run generated test for function in libbpf project it fails, because cannot find links to functions from external libraries.

To Reproduce
All actions should be performed on the branch kichunya/projects

  1. Follow issue 490 to configure the project.
  2. Generate tests for some function.
  3. Try to run regression tests.

Expected behavior
Tests passed.

Actual behavior
Run fails with following errors:
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'gelf_getphdr'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'gelf_getnote'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_getphdrnum'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_update'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_newscn'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_newdata'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf64_newehdr'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'gzopen64'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'gzgets'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'gzclose'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'gelf_getsym'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_ndxscn'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_memory'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_kind'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_getshdrnum'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_errmsg'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf64_getshdr'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf64_getehdr'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'gelf_getshdr'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'gelf_getehdr'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'gelf_getclass'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_version'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_strptr'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_rawdata'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_nextscn'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_getshdrstrndx'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_getscn'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_getdata'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_end'
/home/utbot/libbpf/utbot_tests/makefiles/src/../../../build/liblibbpf.a.so: error: undefined reference to 'elf_begin'

All libraries, that contain this functions, are installed.

@kichunya kichunya added the bug Something isn't working label Jan 17, 2023
@kichunya kichunya assigned kichunya and Lana243 and unassigned kichunya Jan 17, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in UTBot C/C++ Feb 14, 2023
@ladisgin ladisgin reopened this Feb 15, 2023
@github-project-automation github-project-automation bot moved this from Done to In Progress in UTBot C/C++ Feb 15, 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: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants