Closed schrodyn closed 11 months ago
Just to update, I was able to successfully build v1.8.0.
[100%] Building CXX object benchmark/CMakeFiles/bench_queue.dir/bench_queue.cpp.o
cd /home/schrodinger/src/td-1.8.0/build/benchmark && ccache /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/home/schrodinger/src/td-1.8.0/tdutils -I/home/schrodinger/src/td-1.8.0/build/tdutils -pthread -std=c++14 -fno-omit-frame-pointer -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wall -Wextra -Wpointer-arith -Wcast-qual -Wsign-compare -Wno-tautological-compare -Wpointer-arith -Wvla -Wnon-virtual-dtor -Wno-unused-parameter -Wconversion -Wno-sign-conversion -Wc++14-compat-pedantic -Wdeprecated -Wno-unused-command-line-argument -Qunused-arguments -Wodr -g -fPIE -Wno-deprecated-declarations -MD -MT benchmark/CMakeFiles/bench_queue.dir/bench_queue.cpp.o -MF CMakeFiles/bench_queue.dir/bench_queue.cpp.o.d -o CMakeFiles/bench_queue.dir/bench_queue.cpp.o -c /home/schrodinger/src/td-1.8.0/benchmark/bench_queue.cpp
[100%] Linking CXX executable bench_queue
cd /home/schrodinger/src/td-1.8.0/build/benchmark && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/bench_queue.dir/link.txt --verbose=1
ccache /usr/bin/c++ -pthread -std=c++14 -fno-omit-frame-pointer -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wall -Wextra -Wpointer-arith -Wcast-qual -Wsign-compare -Wno-tautological-compare -Wpointer-arith -Wvla -Wnon-virtual-dtor -Wno-unused-parameter -Wconversion -Wno-sign-conversion -Wc++14-compat-pedantic -Wdeprecated -Wno-unused-command-line-argument -Qunused-arguments -Wodr -g -Wl,--gc-sections -Wl,--exclude-libs,ALL CMakeFiles/bench_queue.dir/bench_queue.cpp.o -o bench_queue ../tdutils/libtdutils.a -pthread /usr/lib/libcrypto.so /usr/lib/libz.so
gmake[2]: Leaving directory '/usr/home/schrodinger/src/td-1.8.0/build'
[100%] Built target bench_queue
gmake[1]: Leaving directory '/usr/home/schrodinger/src/td-1.8.0/build'
/usr/local/bin/cmake -E cmake_progress_start /home/schrodinger/src/td-1.8.0/build/CMakeFiles 0
/usr/local/bin/gmake -f CMakeFiles/Makefile2 preinstall
gmake[1]: Entering directory '/usr/home/schrodinger/src/td-1.8.0/build'
gmake[1]: Nothing to be done for 'preinstall'.
gmake[1]: Leaving directory '/usr/home/schrodinger/src/td-1.8.0/build'
Install the project...
/usr/local/bin/cmake -P cmake_install.cmake
-- Install configuration: "Debug"
-- Installing: /usr/local/lib/libtdjson.so.1.8.0
-- Installing: /usr/local/lib/libtdjson.so
-- Installing: /usr/local/lib/libtdjson_static.a
-- Installing: /usr/local/lib/libtdjson_private.a
-- Installing: /usr/local/lib/libtdclient.a
-- Installing: /usr/local/lib/libtdcore.a
-- Installing: /usr/local/lib/libtdapi.a
-- Installing: /usr/local/lib/pkgconfig/tdutils.pc
-- Installing: /usr/local/lib/pkgconfig/tdactor.pc
-- Installing: /usr/local/lib/pkgconfig/tdnet.pc
-- Installing: /usr/local/lib/pkgconfig/tdsqlite.pc
-- Installing: /usr/local/lib/pkgconfig/tddb.pc
-- Installing: /usr/local/lib/pkgconfig/tdcore.pc
-- Installing: /usr/local/lib/pkgconfig/tdclient.pc
-- Installing: /usr/local/lib/pkgconfig/tdapi.pc
-- Installing: /usr/local/lib/pkgconfig/tdjson_private.pc
-- Installing: /usr/local/lib/pkgconfig/tdjson.pc
-- Installing: /usr/local/lib/pkgconfig/tdjson_static.pc
-- Installing: /usr/local/lib/cmake/Td/TdTargets.cmake
-- Installing: /usr/local/lib/cmake/Td/TdTargets-debug.cmake
-- Installing: /usr/local/include/td/telegram/td_json_client.h
-- Installing: /usr/local/include/td/telegram/td_log.h
-- Installing: /usr/local/include/td/telegram/tdjson_export.h
-- Installing: /usr/local/include/td/telegram/Client.h
-- Installing: /usr/local/include/td/telegram/Log.h
-- Installing: /usr/local/include/td/tl/TlObject.h
-- Installing: /usr/local/include/td/telegram/td_api.h
-- Installing: /usr/local/include/td/telegram/td_api.hpp
-- Installing: /usr/local/lib/cmake/Td/TdConfig.cmake
-- Installing: /usr/local/lib/cmake/Td/TdConfigVersion.cmake
-- Installing: /usr/local/lib/libtdutils.a
-- Installing: /usr/local/lib/libtdactor.a
-- Installing: /usr/local/lib/libtdnet.a
-- Installing: /usr/local/lib/libtdsqlite.a
-- Installing: /usr/local/lib/libtddb.a
Thank you for detailed report. I have pushed a fix to master
.
When building
td
on FreeBSD 13.2 I get the following error:Following the build instructions for Go and FreeBSD here:
https://tdlib.github.io/td/build.html?language=Go
Here is a gist of the current steps to reproduce and build system information:
https://gist.github.com/schrodyn/9824727d211f93f69c2075b25bdfdaaf