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

Tests fail to compile: ld: error: unable to find library -ltestshared #1574

Open
yurivict opened this issue Sep 4, 2022 · 1 comment
Open

Comments

@yurivict
Copy link

yurivict commented Sep 4, 2022

-- Build files have been written to: /disk-samsung/freebsd-ports/sysutils/libdnf/work/.build
[ 33% 2/3] cd /disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/docs/hawkey && PYTHONPATH=/disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/src/python /usr/local/bin/sphinx-build-3.9 -b man /disk-samsung/freebsd-ports/sysutils/libdnf/work/libdnf-0.68.0/docs/hawkey /disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/docs/hawkey/man
Running Sphinx v4.5.0
WARNING: html_static_path entry '_static' does not exist
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [man]: all manpages
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
writing... hawkey.3 { changes faq tutorial-py reference-py reference-py-sack reference-py-errors reference-py-constants reference-py-repo rationale } done
build succeeded, 1 warning.

The manual pages are in man.
[ 66% 2/3] /usr/bin/c++ -DLIBDNF_UNSTABLE_API -D_FILE_OFFSET_BITS=64 -Dtestmodule_EXPORTS -I/usr/local/include/gio-unix-2.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/json-c -I/usr/local/include/libxml2 -I/disk-samsung/freebsd-ports/sysutils/libdnf/work/libdnf-0.68.0 -I/disk-samsung/freebsd-ports/sysutils/libdnf/work/libdnf-0.68.0/libdnf/utils -I/usr/local/include/python3.9 -I/disk-samsung/freebsd-ports/sysutils/libdnf/work/libdnf-0.68.0/libdnf -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -std=c++11 -Wmissing-declarations -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -fPIC   -DPACKAGE_VERSION=\"0.68.0\" -DGETTEXT_DOMAIN=\"libdnf\" -DG_LOG_DOMAIN=\"libdnf\" -DTESTDATADIR=\"/disk-samsung/freebsd-ports/sysutils/libdnf/work/libdnf-0.68.0/data/tests\" -Wcast-align -Wno-uninitialized -Wredundant-decls -Wwrite-strings -Wformat-nonliteral -Wmissing-format-attribute -Wsign-compare -Wtype-limits -Wuninitialized -Wall -Wl,--as-needed -MD -MT python/hawkey/tests/module/CMakeFiles/testmodule.dir/hawkey_testmodule.cpp.o -MF python/hawkey/tests/module/CMakeFiles/testmodule.dir/hawkey_testmodule.cpp.o.d -o python/hawkey/tests/module/CMakeFiles/testmodule.dir/hawkey_testmodule.cpp.o -c /disk-samsung/freebsd-ports/sysutils/libdnf/work/libdnf-0.68.0/python/hawkey/tests/module/hawkey_testmodule.cpp
c++: warning: -Wl,--as-needed: 'linker' input unused [-Wunused-command-line-argument]
[100% 3/3] : && /usr/bin/c++ -fPIC -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -std=c++11 -Wmissing-declarations -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer  -fstack-protector-strong -shared -Wl,-soname,_hawkey_test.so -o python/hawkey/tests/module/_hawkey_test.so python/hawkey/tests/module/CMakeFiles/testmodule.dir/hawkey_testmodule.cpp.o -L/usr/local/lib   -L/disk-samsung/freebsd-ports/sysutils/libdnf/work/libdnf-0.68.0/tests/hawkey -Wl,-rpath,/usr/local/lib:/disk-samsung/freebsd-ports/sysutils/libdnf/work/libdnf-0.68.0/tests/hawkey:/disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/python/hawkey/hawkey:/disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/libdnf:  python/hawkey/hawkey/_hawkey.so  -ltestshared  /usr/local/lib/libpython3.9.so  libdnf/libdnf.so.2  -lrepo  -lglib-2.0  -lintl  -lgio-2.0  -lgobject-2.0  /usr/local/lib/libsolv.so  /usr/local/lib/libsolvext.so  -lrpm  -lrpmio  -lpopt  -lsqlite3  -ljson-c  -lmodulemd  -lglib-2.0  -lintl  -lgio-2.0  -lgobject-2.0  /usr/local/lib/libsolv.so  /usr/local/lib/libsolvext.so  -lrpm  -lrpmio  -lpopt  -lsqlite3  -ljson-c  -lmodulemd  -lsmartcols  /usr/local/lib/libgpgme.so  /usr/local/lib/libassuan.so  /usr/local/lib/libgpg-error.so && cd /disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/python/hawkey/tests/module && cp /disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/python/hawkey/tests/module/_hawkey_test.so /disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/python/hawkey/hawkey/test
FAILED: python/hawkey/tests/module/_hawkey_test.so 
: && /usr/bin/c++ -fPIC -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -std=c++11 -Wmissing-declarations -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer  -fstack-protector-strong -shared -Wl,-soname,_hawkey_test.so -o python/hawkey/tests/module/_hawkey_test.so python/hawkey/tests/module/CMakeFiles/testmodule.dir/hawkey_testmodule.cpp.o -L/usr/local/lib   -L/disk-samsung/freebsd-ports/sysutils/libdnf/work/libdnf-0.68.0/tests/hawkey -Wl,-rpath,/usr/local/lib:/disk-samsung/freebsd-ports/sysutils/libdnf/work/libdnf-0.68.0/tests/hawkey:/disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/python/hawkey/hawkey:/disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/libdnf:  python/hawkey/hawkey/_hawkey.so  -ltestshared  /usr/local/lib/libpython3.9.so  libdnf/libdnf.so.2  -lrepo  -lglib-2.0  -lintl  -lgio-2.0  -lgobject-2.0  /usr/local/lib/libsolv.so  /usr/local/lib/libsolvext.so  -lrpm  -lrpmio  -lpopt  -lsqlite3  -ljson-c  -lmodulemd  -lglib-2.0  -lintl  -lgio-2.0  -lgobject-2.0  /usr/local/lib/libsolv.so  /usr/local/lib/libsolvext.so  -lrpm  -lrpmio  -lpopt  -lsqlite3  -ljson-c  -lmodulemd  -lsmartcols  /usr/local/lib/libgpgme.so  /usr/local/lib/libassuan.so  /usr/local/lib/libgpg-error.so && cd /disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/python/hawkey/tests/module && cp /disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/python/hawkey/tests/module/_hawkey_test.so /disk-samsung/freebsd-ports/sysutils/libdnf/work/.build/python/hawkey/hawkey/test
ld: error: unable to find library -ltestshared
c++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
*** Error code 1

Version: 0.68.0
clang-14
FreeBSD 13.1

@lukash
Copy link
Contributor

lukash commented Sep 6, 2022

Hello, we don't primarily develop for that environment. Patches welcome though.

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

2 participants