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
Build failure #4967
Comments
|
Yeah, i already noticed that. But something triggers this error. I did a try with different compiler version and have the same issue. Perhaps some flag is needed? Similar issue: #4978 |
It is gcc 7 compiler bug, see https://bugzilla.altlinux.org/show_bug.cgi?id=35112 |
Well, the compiler error is caused by parallel build, but even if it's disabled, the compilation problem still persists: No parallel build log:In file included from ../../Telegram/SourceFiles/export/export_api_wrap.h:10:0,
Also i'm not able to compile the source with GCC 5.3.1 |
@cranes-bill GCC 5.3.1 shouldn't be able to compile Telegram Desktop :( I've tested on GCC 7.2, so I'm not sure any version below that one is able to. |
@john-preston OK, thanks for the answer! |
@cranes-bill I'm afraid so. At least there is no problem in building tdesktop in GCC 7.2, Visual C++ 15.7.5 or Xcode 9.4.1. Also GCC 7.2 and Visual Studio 2017 builds are successful on Travis / AppVeyor. |
Well, it's just a litle bit hardly to me to accept that, since i have several other programs compiled with this compiler include Telegram df9ec4b, however, i'm closing the issue. P.S: Sorry for the bad English! |
@cranes-bill The second log is strange: "note: no known conversion for argument 1 from 'MTP::ConcurrentSender*' to 'gsl::not_nullMTP::ConcurrentSender*'" - there should be an obvious conversion (a constructor). Are you sure a correct version of GSL submodule is used? Maybe "git submodule update" will fix that? |
I did update of GSL source to the latest git, but as i see it looks the same:
|
@cranes-bill Latest git won't work, you need the version that is used in tdesktop submodule, v1.0.0 tag. |
(they've made a breaking change) |
Aha, clear...
|
@cranes-bill internal compiler error ¯_(ツ)_/¯ |
@cranes-bill https://github.com/Johnnynator/void-packages/blob/7b4f0a0c832eb9ca56b316d39a111669be77d27d/srcpkgs/telegram-desktop/patches/gcc-if-constexpr-tmpfix.patch |
@Johnnynator That actually is i was looking for. Works perfect. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello!
May somebody please advise me, what can cause the following build error!
Steps to reproduce
Expected behaviour
Build complete successfull
Actual behaviour
Build fails
Configuration
Operating system:
Linux
Version of Telegram Desktop:
e466dc9
Logs:
../../Telegram/SourceFiles/export/data/export_data_types.cpp: In lambda function:
../../Telegram/SourceFiles/export/data/export_data_types.cpp:182:60: internal compiler error: Segmentation fault
if constexpr (MTPDphotoCachedSize::Is<decltype(data)>()) {
^
Please submit a full bug report,
with preprocessed source if appropriate.
See http://bugzilla.redhat.com/bugzilla for instructions.
Preprocessed source stored into /tmp/ccbOSyce.out file, please attach this to your bugreport.
make[2]: *** [CMakeFiles/lib_export.dir/home/az/rpmbuild/BUILD/tdesktop-1.3.9-e466dc9/Telegram/SourceFiles/export/data/export_data_types.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../../Telegram/SourceFiles/export/export_api_wrap.h:10:0,
from ../../Telegram/SourceFiles/export/export_controller.cpp:10:
../../Telegram/SourceFiles/mtproto/concurrent_sender.h: In member function 'MTP::ConcurrentSender::SentRequestWrap MTP::ConcurrentSender::request(mtpRequestId)':
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:474:40: error: no matching function for call to 'MTP::ConcurrentSender::SentRequestWrap::SentRequestWrap(MTP::ConcurrentSender*, mtpRequestId&)'
return SentRequestWrap(this, requestId);
^
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:453:8: note: candidate: MTP::ConcurrentSender::SentRequestWrap::SentRequestWrap(gsl::not_nullMTP::ConcurrentSender*, mtpRequestId)
inline ConcurrentSender::SentRequestWrap::SentRequestWrap(
^~~~~~~~~~~~~~~~
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:453:8: note: no known conversion for argument 1 from 'MTP::ConcurrentSender*' to 'gsl::not_nullMTP::ConcurrentSender*'
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:146:8: note: candidate: constexpr MTP::ConcurrentSender::SentRequestWrap::SentRequestWrap(const MTP::ConcurrentSender::SentRequestWrap&)
class SentRequestWrap {
^~~~~~~~~~~~~~~
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:146:8: note: candidate expects 1 argument, 2 provided
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:146:8: note: candidate: constexpr MTP::ConcurrentSender::SentRequestWrap::SentRequestWrap(MTP::ConcurrentSender::SentRequestWrap&&)
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:146:8: note: candidate expects 1 argument, 2 provided
make[2]: *** [CMakeFiles/lib_export.dir/home/az/rpmbuild/BUILD/tdesktop-1.3.9-e466dc9/Telegram/SourceFiles/export/export_controller.o] Error 1
In file included from ../../Telegram/SourceFiles/export/export_api_wrap.h:10:0,
from ../../Telegram/SourceFiles/export/export_api_wrap.cpp:8:
../../Telegram/SourceFiles/mtproto/concurrent_sender.h: In member function 'MTP::ConcurrentSender::SentRequestWrap MTP::ConcurrentSender::request(mtpRequestId)':
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:474:40: error: no matching function for call to 'MTP::ConcurrentSender::SentRequestWrap::SentRequestWrap(MTP::ConcurrentSender*, mtpRequestId&)'
return SentRequestWrap(this, requestId);
^
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:453:8: note: candidate: MTP::ConcurrentSender::SentRequestWrap::SentRequestWrap(gsl::not_nullMTP::ConcurrentSender*, mtpRequestId)
inline ConcurrentSender::SentRequestWrap::SentRequestWrap(
^~~~~~~~~~~~~~~~
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:453:8: note: no known conversion for argument 1 from 'MTP::ConcurrentSender*' to 'gsl::not_nullMTP::ConcurrentSender*'
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:146:8: note: candidate: constexpr MTP::ConcurrentSender::SentRequestWrap::SentRequestWrap(const MTP::ConcurrentSender::SentRequestWrap&)
class SentRequestWrap {
^~~~~~~~~~~~~~~
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:146:8: note: candidate expects 1 argument, 2 provided
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:146:8: note: candidate: constexpr MTP::ConcurrentSender::SentRequestWrap::SentRequestWrap(MTP::ConcurrentSender::SentRequestWrap&&)
../../Telegram/SourceFiles/mtproto/concurrent_sender.h:146:8: note: candidate expects 1 argument, 2 provided
../../Telegram/SourceFiles/export/export_api_wrap.cpp:713: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/ccqu6Jeo.out file, please attach this to your bugreport.
Thanks!
The text was updated successfully, but these errors were encountered: