https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: net-misc/megasync-4.5.0.0 fails to compile. Discovered on: amd64 (internal ref: guru_ci) NOTE: This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
Created attachment 710280 [details] build.log.xz build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Possible context of error(s): ./MegaApplication.h:140:10: error: ‘void MegaApplication::onSyncAdded(mega::MegaApi*, mega::MegaSync*, int)’ marked ‘override’, but does not override
In file included from gui/ChangePassword.cpp:4: ./MegaApplication.h: At global scope: ./MegaApplication.h:140:10: error: ‘void MegaApplication::onSyncAdded(mega::MegaApi*, mega::MegaSync*, int)’ marked ‘override’, but does not override 140 | void onSyncAdded(mega::MegaApi *api, mega::MegaSync *sync, int additionState) override; | ^~~~~~~~~~~ ./MegaApplication.h:141:10: error: ‘void MegaApplication::onSyncDisabled(mega::MegaApi*, mega::MegaSync*)’ marked ‘override’, but does not override 141 | void onSyncDisabled(mega::MegaApi *api, mega::MegaSync *sync) override; | ^~~~~~~~~~~~~~ ./MegaApplication.h:142:10: error: ‘void MegaApplication::onSyncEnabled(mega::MegaApi*, mega::MegaSync*)’ marked ‘override’, but does not override 142 | void onSyncEnabled(mega::MegaApi *api, mega::MegaSync *sync) override; | ^~~~~~~~~~~~~ ./MegaApplication.h:143:10: error: ‘void MegaApplication::onSyncDeleted(mega::MegaApi*, mega::MegaSync*)’ marked ‘override’, but does not override 143 | void onSyncDeleted(mega::MegaApi *api, mega::MegaSync *sync) override; | ^~~~~~~~~~~~~ make[1]: *** [Makefile:6071: ChangePassword.o] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-misc/megasync-4.5.0.0/work/MEGAsync-4.5.0.0_Win/src/MEGASync' make: *** [Makefile:47: sub-MEGASync-make_first] Error 2 make: Leaving directory '/var/tmp/portage/net-misc/megasync-4.5.0.0/work/MEGAsync-4.5.0.0_Win/src' * ERROR: net-misc/megasync-4.5.0.0::guru failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/megasync-4.5.0.0::guru'`, * the complete build log and the output of `emerge -pqv '=net-misc/megasync-4.5.0.0::guru'`. * The complete build log is located at '/var/tmp/portage/net-misc/megasync-4.5.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/megasync-4.5.0.0/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/megasync-4.5.0.0/work/MEGAsync-4.5.0.0_Win' * S: '/var/tmp/portage/net-misc/megasync-4.5.0.0/work/MEGAsync-4.5.0.0_Win' * Messages for package net-misc/megasync-4.5.0.0: * ERROR: net-misc/megasync-4.5.0.0::guru failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/megasync-4.5.0.0::guru'`, * the complete build log and the output of `emerge -pqv '=net-misc/megasync-4.5.0.0::guru'`. * The complete build log is located at '/var/tmp/portage/net-misc/megasync-4.5.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/megasync-4.5.0.0/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/megasync-4.5.0.0/work/MEGAsync-4.5.0.0_Win' * S: '/var/tmp/portage/net-misc/megasync-4.5.0.0/work/MEGAsync-4.5.0.0_Win' * * The following package has failed to build, install, or execute postinst: * * (net-misc/megasync-4.5.0.0:0/0::guru, ebuild scheduled for merge), Log file: * '/var/tmp/portage/net-misc/megasync-4.5.0.0/temp/build.log'
Latest version supported for Linux is https://github.com/meganz/MEGAsync/tree/v4.4.0.0_Linux I didn't add that version 4.5.0 to guru...
(In reply to Samuel Bernardo from comment #4) > Latest version supported for Linux is > https://github.com/meganz/MEGAsync/tree/v4.4.0.0_Linux > > I didn't add that version 4.5.0 to guru... Ignore my last comment. Version 4.5.0 supports Linux.
Created issue for upstream review: https://github.com/meganz/MEGAsync/issues/580
Added working version of 4.5.0.0 in my personal overlay: https://github.com/samuelbernardo/ssnb-overlay/blob/master/net-misc/megasync/megasync-4.5.0.0.ebuild In guru ebuild version, instead of using git directly with submodules, a specific commit for sdk is being downloaded. I need to check that to place same version with same patches. I also need to submit the PR to upstream with the required changes in the patches.
I created the ebuild in my own repo. https://git.yorune.pl/y0rune/gentoo-yorune/src/branch/master/net-misc/megasync/megasync-4.5.0.ebuild. The easiest solution is `grep --color=no -rl 'videoStream->s' | xargs sed -i 's/videoStream->s/\/\/videoStream->s/g'` to compile every time :D
Just pushed the following commit correcting the current bug: https://github.com/gentoo/guru/commit/917e847bf4d5c4f60544b3638bc16e0975b20e27 Waiting for feedback to close this issue.
Since all CI builds are ok I'm going to mark this bug as resolved https://github.com/gentoo/guru/runs/2659090919 https://github.com/gentoo/guru/runs/2659090927 https://github.com/gentoo/guru/runs/2659090932