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 build #58

Open
yurivict opened this issue Oct 21, 2022 · 0 comments
Open

Tests fail to build #58

yurivict opened this issue Oct 21, 2022 · 0 comments

Comments

@yurivict
Copy link

With BUILD_TEST=ON the build fails:

-- Build files have been written to: /disk-samsung/freebsd-ports/biology/libcombine/work/.build
[100% 1/1] : && /usr/local/libexec/ccache/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -isystem /usr/local/include -fno-strict-aliasing -fPIC -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -isystem /usr/local/include -lsbml -fstack-protector-strong -L/usr/local/lib CMakeFiles/Combine-test.dir/src/test/combine_test_create.cpp.o CMakeFiles/Combine-test.dir/src/test/main.cpp.o CMakeFiles/Combine-test.dir/src/test/metadata_test_create.cpp.o CMakeFiles/Combine-test.dir/src/test/util_test.cpp.o CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o CMakeFiles/Combine-test.dir/src/test/zip_test_write.cpp.o -o Combine-test  src/libCombine-static.a  /usr/lib/libz.so  /usr/local/lib/libsbml-static.a  /usr/lib/libbz2.so  /usr/lib/libz.so  /usr/local/lib/libxml2.so && :
FAILED: Combine-test 
: && /usr/local/libexec/ccache/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -isystem /usr/local/include -fno-strict-aliasing -fPIC -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -isystem /usr/local/include -lsbml -fstack-protector-strong -L/usr/local/lib CMakeFiles/Combine-test.dir/src/test/combine_test_create.cpp.o CMakeFiles/Combine-test.dir/src/test/main.cpp.o CMakeFiles/Combine-test.dir/src/test/metadata_test_create.cpp.o CMakeFiles/Combine-test.dir/src/test/util_test.cpp.o CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o CMakeFiles/Combine-test.dir/src/test/zip_test_write.cpp.o -o Combine-test  src/libCombine-static.a  /usr/lib/libz.so  /usr/local/lib/libsbml-static.a  /usr/lib/libbz2.so  /usr/lib/libz.so  /usr/local/lib/libxml2.so && :
ld: error: undefined symbol: zipper::checkFileExists(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by combine_test_create.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/combine_test_create.cpp.o:(getTestFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&))
>>> referenced by combine_test_create.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/combine_test_create.cpp.o:(____C_A_T_C_H____T_E_S_T____54())
>>> referenced by combine_test_create.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/combine_test_create.cpp.o:(____C_A_T_C_H____T_E_S_T____54())
>>> referenced 15 more times

ld: error: undefined symbol: zipper::Zipper::Zipper(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, zipper::Zipper::openFlags)
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_write.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_write.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by combinearchive.cpp
>>>               combinearchive.cpp.o:(CombineArchive::writeToFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)) in archive src/libCombine-static.a

ld: error: undefined symbol: zipper::Zipper::add(std::__1::basic_istream<char, std::__1::char_traits<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, zipper::Zipper::zipFlags)
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_write.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_write.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 4 more times

ld: error: undefined symbol: zipper::Zipper::close()
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 4 more times

ld: error: undefined symbol: zipper::Unzipper::Unzipper(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 4 more times

ld: error: undefined symbol: zipper::Unzipper::entries()
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 8 more times

ld: error: undefined symbol: zipper::Unzipper::extractEntry(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_write.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_write.cpp.o:(____C_A_T_C_H____T_E_S_T____15())

ld: error: undefined symbol: zipper::Unzipper::close()
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 3 more times

ld: error: undefined symbol: zipper::Zipper::open(zipper::Zipper::openFlags)
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_write.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_write.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 2 more times

ld: error: undefined symbol: zipper::Unzipper::extract(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_write.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_write.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 2 more times

ld: error: undefined symbol: zipper::currentPath()
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 3 more times

ld: error: undefined symbol: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_write.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_write.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 1 more times

ld: error: undefined symbol: zipper::Zipper::add(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, zipper::Zipper::zipFlags)
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_write.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_write.cpp.o:(____C_A_T_C_H____T_E_S_T____15())

ld: error: undefined symbol: zipper::Unzipper::~Unzipper()
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 10 more times

ld: error: undefined symbol: zipper::removeFolder(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 4 more times

ld: error: undefined symbol: zipper::Zipper::~Zipper()
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_read.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_read.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced by zip_test_write.cpp
>>>               CMakeFiles/Combine-test.dir/src/test/zip_test_write.cpp.o:(____C_A_T_C_H____T_E_S_T____15())
>>> referenced 3 more times

ld: error: undefined symbol: zipper::Unzipper::extractEntryToStream(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&)
>>> referenced by combinearchive.cpp
>>>               combinearchive.cpp.o:(CombineArchive::initializeFromArchive(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)) in archive src/libCombine-static.a
>>> referenced by combinearchive.cpp
>>>               combinearchive.cpp.o:(CombineArchive::getStream(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_ifstream<char, std::__1::char_traits<char> >&)) in archive src/libCombine-static.a

ld: error: undefined symbol: zipper::isDirectory(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by combinearchive.cpp
>>>               combinearchive.cpp.o:(CombineArchive::extractEntry(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)) in archive src/libCombine-static.a
>>> referenced by util.cpp
>>>               util.cpp.o:(Util::removeFileOrFolder(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)) in archive src/libCombine-static.a
c++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
*** Error code 1

Version: 0.2.19
clang-14
FreeBSD 13.1 STABLE

@yurivict yurivict changed the title Fails to build tests Tests fail to build Oct 21, 2022
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

1 participant