Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 848792 - net-misc/nextcloud-client-3.5.0 fails to compile with gcc 12 (error: standard attributes in middle of decl-specifiers)
Summary: net-misc/nextcloud-client-3.5.0 fails to compile with gcc 12 (error: standard...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
: 842159 (view as bug list)
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-05-31 13:45 UTC by YOSHIOKA Takuma
Modified: 2022-06-03 07:01 UTC (History)
2 users (show)

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


Attachments
build.log (file_848792.txt,61.50 KB, text/plain)
2022-05-31 13:45 UTC, YOSHIOKA Takuma
Details
emerge-info.txt (file_848792.txt,8.83 KB, text/plain)
2022-05-31 13:46 UTC, YOSHIOKA Takuma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description YOSHIOKA Takuma 2022-05-31 13:45:16 UTC
Created attachment 781640 [details]
build.log

GCC version is sys-devel/gcc-12.1.1_p20220528.
Relevant part in the log is below:

--------------------------------

[14/270] /usr/bin/x86_64-pc-linux-gnu-g++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0x000000 -DQT_MESSAGELOGCONTEXT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DUNICODE -D_UNICODE -Dnextcloud_csync_EXPORTS -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0_build/src/csync -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/csync -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0_build/src/csync/nextcloud_csync_autogen/include -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0_build -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0_build/src -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/csync/std -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtConcurrent  -march=native -O2 -pipe -Wpedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fPIC -fdiagnostics-color=always -fPIC -std=gnu++14 -MD -MT src/csync/CMakeFiles/nextcloud_csync.dir/vio/csync_vio_local_unix.cpp.o -MF src/csync/CMakeFiles/nextcloud_csync.dir/vio/csync_vio_local_unix.cpp.o.d -o src/csync/CMakeFiles/nextcloud_csync.dir/vio/csync_vio_local_unix.cpp.o -c /var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/csync/vio/csync_vio_local_unix.cpp
FAILED: src/csync/CMakeFiles/nextcloud_csync.dir/vio/csync_vio_local_unix.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0x000000 -DQT_MESSAGELOGCONTEXT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DUNICODE -D_UNICODE -Dnextcloud_csync_EXPORTS -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0_build/src/csync -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/csync -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0_build/src/csync/nextcloud_csync_autogen/include -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0_build -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0_build/src -I/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/csync/std -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtConcurrent  -march=native -O2 -pipe -Wpedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fPIC -fdiagnostics-color=always -fPIC -std=gnu++14 -MD -MT src/csync/CMakeFiles/nextcloud_csync.dir/vio/csync_vio_local_unix.cpp.o -MF src/csync/CMakeFiles/nextcloud_csync.dir/vio/csync_vio_local_unix.cpp.o.d -o src/csync/CMakeFiles/nextcloud_csync.dir/vio/csync_vio_local_unix.cpp.o -c /var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/csync/vio/csync_vio_local_unix.cpp
In file included from /usr/include/qt5/QtCore/qglobal.h:105,
                 from /usr/include/qt5/QtCore/qatomic.h:41,
                 from /usr/include/qt5/QtCore/qrefcount.h:43,
                 from /usr/include/qt5/QtCore/qbytearray.h:44,
                 from /usr/include/qt5/QtCore/QByteArray:1,
                 from /var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/csync/csync.h:45,
                 from /var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/csync/vio/csync_vio_local_unix.cpp:33:
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:171:13: error: standard attributes in middle of decl-specifiers
  171 |     virtual Q_REQUIRED_RESULT Result<void, QString> updateMetadata(const QString &filePath, time_t modtime, qint64 size, const QByteArray &fileId) = 0;
      |             ^~~~~~~~~~~~~~~~~
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:171:13: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:174:13: error: standard attributes in middle of decl-specifiers
  174 |     virtual Q_REQUIRED_RESULT Result<void, QString> createPlaceholder(const SyncFileItem &item) = 0;
      |             ^~~~~~~~~~~~~~~~~
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:174:13: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:181:13: error: standard attributes in middle of decl-specifiers
  181 |     virtual Q_REQUIRED_RESULT Result<void, QString> dehydratePlaceholder(const SyncFileItem &item) = 0;
      |             ^~~~~~~~~~~~~~~~~
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:181:13: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:188:13: error: standard attributes in middle of decl-specifiers
  188 |     virtual Q_REQUIRED_RESULT bool needsMetadataUpdate(const SyncFileItem &item) = 0;
      |             ^~~~~~~~~~~~~~~~~
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:188:13: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:203:13: error: standard attributes in middle of decl-specifiers
  203 |     virtual Q_REQUIRED_RESULT Result<Vfs::ConvertToPlaceholderResult, QString> convertToPlaceholder(
      |             ^~~~~~~~~~~~~~~~~
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:203:13: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:209:13: error: standard attributes in middle of decl-specifiers
  209 |     virtual Q_REQUIRED_RESULT bool isDehydratedPlaceholder(const QString &filePath) = 0;
      |             ^~~~~~~~~~~~~~~~~
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:209:13: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:218:13: error: standard attributes in middle of decl-specifiers
  218 |     virtual Q_REQUIRED_RESULT bool statTypeVirtualFile(csync_file_stat_t *stat, void *stat_data) = 0;
      |             ^~~~~~~~~~~~~~~~~
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:218:13: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:229:13: error: standard attributes in middle of decl-specifiers
  229 |     virtual Q_REQUIRED_RESULT bool setPinState(const QString &folderPath, PinState state) = 0;
      |             ^~~~~~~~~~~~~~~~~
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:229:13: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:240:13: error: standard attributes in middle of decl-specifiers
  240 |     virtual Q_REQUIRED_RESULT Optional<PinState> pinState(const QString &folderPath) = 0;
      |             ^~~~~~~~~~~~~~~~~
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:240:13: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:249:13: error: standard attributes in middle of decl-specifiers
  249 |     virtual Q_REQUIRED_RESULT AvailabilityResult availability(const QString &folderPath) = 0;
      |             ^~~~~~~~~~~~~~~~~
/var/tmp/portage/net-misc/nextcloud-client-3.5.0/work/desktop-3.5.0/src/common/vfs.h:249:13: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
Comment 1 YOSHIOKA Takuma 2022-05-31 13:46:31 UTC
Created attachment 781643 [details]
emerge-info.txt

Output of `emerge --info net-misc/nextcloud-client`.
Comment 2 Bernard Cafarelli gentoo-dev 2022-06-03 06:52:52 UTC
Thanks for the report (took some time here to let gcc-12 compilation finish and confirm), I found upstream fix was included in the middle of this patch:
https://github.com/nextcloud/desktop/pull/4484

The good thing is it is included in 3.5.1 new release, bump in progress
Comment 3 Larry the Git Cow gentoo-dev 2022-06-03 06:56:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b0bea5330675f02c4b6b6c782c44c904bdbc908

commit 6b0bea5330675f02c4b6b6c782c44c904bdbc908
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2022-06-03 06:54:18 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2022-06-03 06:56:07 +0000

    net-misc/nextcloud-client: add 3.5.1
    
    Closes: https://bugs.gentoo.org/842159
    Closes: https://bugs.gentoo.org/848792
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 net-misc/nextcloud-client/Manifest                 |   1 +
 .../nextcloud-client/nextcloud-client-3.5.1.ebuild | 106 +++++++++++++++++++++
 2 files changed, 107 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-03 07:01:14 UTC
*** Bug 842159 has been marked as a duplicate of this bug. ***
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-03 07:01:52 UTC
(In reply to Bernard Cafarelli from comment #2)
> Thanks for the report (took some time here to let gcc-12 compilation finish
> and confirm), I found upstream fix was included in the middle of this patch:
> https://github.com/nextcloud/desktop/pull/4484
> 
> The good thing is it is included in 3.5.1 new release, bump in progress

thanks voyageur; feel free (please do! ;)) test w/ gcc 12 from now on (ideally 12.1.1_p*) and let me know if any issues. It's been quite uneventful so far!