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

Can't compile tdlib #1592

Closed
cavallium opened this issue Jul 2, 2021 · 1 comment
Closed

Can't compile tdlib #1592

cavallium opened this issue Jul 2, 2021 · 1 comment

Comments

@cavallium
Copy link
Contributor

I can't compile tdlib anymore from revision ab2223b to the current one.

I get the following compilation error:

[ 72%] Building CXX object CMakeFiles/tdcore.dir/td/telegram/Payments.cpp.o
[ 73%] Building CXX object CMakeFiles/tdcore.dir/td/telegram/PasswordManager.cpp.o
In file included from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/tdutils/td/utils/misc.h:13:0,
                 from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/tdutils/td/utils/MpscPollableQueue.h:10,
                 from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/tdactor/td/actor/impl/Scheduler-decl.h:18,
                 from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/tdactor/td/actor/impl/Actor.h:11,
CMakeFiles/tdcore.dir/build.make:1783: recipe for target 'CMakeFiles/tdcore.dir/td/telegram/PasswordManager.cpp.o' failed
                 from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/tdactor/td/actor/actor.h:9,
                 from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/td/telegram/net/NetQuery.h:13,
                 from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/td/telegram/PasswordManager.h:9,
                 from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/td/telegram/PasswordManager.cpp:7:
/home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/tdutils/td/utils/Status.h: In instantiation of ‘td::Result<T>::Result(S&&) [with S = td::tl::unique_ptr<td::telegram_api::account_passwordInputSettings>&; typename std::enable_if<(! std::is_same<typename std::decay<_U1>::type, td::Result<T> >::value), int>::type <anonymous> = 0; T = td::tl::unique_ptr<td::telegram_api::account_passwordInputSettings>]’:
/home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/td/telegram/PasswordManager.cpp:692:10:   required from here
/home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/tdutils/td/utils/Status.h:415:55: error: use of deleted function ‘td::tl::unique_ptr<T>::unique_ptr(const td::tl::unique_ptr<T>&) [with T = td::telegram_api::account_passwordInputSettings]’
   Result(S &&x) : status_(), value_(std::forward<S>(x)) {
                                                       ^
In file included from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/td/generate/auto/td/telegram/telegram_api.h:3:0,
                 from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/td/telegram/NewPasswordState.h:9,
                 from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/td/telegram/PasswordManager.h:10,
                 from /home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/td/telegram/PasswordManager.cpp:7:
/home/runner/work/tdlib-java-natives/tdlib-java-natives/generated/implementation/td/tl/TlObject.h:100:3: note: declared here
   unique_ptr(const unique_ptr &other) = delete;
   ^~~~~~~~~~
make[2]: *** [CMakeFiles/tdcore.dir/td/telegram/PasswordManager.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:498: recipe for target 'CMakeFiles/tdcore.dir/all' failed
Makefile:145: recipe for target 'all' failed
make[1]: *** [CMakeFiles/tdcore.dir/all] Error 2
make: *** [all] Error 2
##[error]Process completed with exit code 2.

@levlam
Copy link
Contributor

levlam commented Jul 2, 2021

Thanks. Fixed in master.

@levlam levlam closed this as completed Jul 2, 2021
cavallium added a commit to tdlight-team/tdlight-java-natives that referenced this issue Jul 2, 2021
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