Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 791469 - [guru] net-misc/megasync-4.5.0.0 fails to compile
Summary: [guru] net-misc/megasync-4.5.0.0 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Samuel Bernardo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-22 13:24 UTC by Agostino Sarubbo
Modified: 2021-05-25 00:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,41.75 KB, application/x-xz)
2021-05-22 13:24 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-05-22 13:24:14 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-22 13:24:16 UTC
Created attachment 710280 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2021-05-22 13:24:17 UTC
Possible context of error(s):

./MegaApplication.h:140:10: error: ‘void MegaApplication::onSyncAdded(mega::MegaApi*, mega::MegaSync*, int)’ marked ‘override’, but does not override
Comment 3 HougeLangley 2021-05-22 15:33:44 UTC
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'
Comment 4 Samuel Bernardo 2021-05-22 16:25:39 UTC
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...
Comment 5 Samuel Bernardo 2021-05-22 16:45:33 UTC
(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.
Comment 6 Samuel Bernardo 2021-05-22 16:59:00 UTC
Created issue for upstream review:
https://github.com/meganz/MEGAsync/issues/580
Comment 7 Samuel Bernardo 2021-05-23 01:46:01 UTC
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.
Comment 8 Marcin Woźniak 2021-05-23 21:45:02 UTC
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
Comment 9 Samuel Bernardo 2021-05-24 10:40:55 UTC
Just pushed the following commit correcting the current bug:
https://github.com/gentoo/guru/commit/917e847bf4d5c4f60544b3638bc16e0975b20e27

Waiting for feedback to close this issue.
Comment 10 Samuel Bernardo 2021-05-25 00:22:46 UTC
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