Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654824 - dev-qt/qtwebengine-5.9.5 with GCC-8.1.0 - ../../3rdparty/chromium/third_party/webrtc/common_audio/vad/vad_core.c:118:1: error: attributes should be specified before the declarator in a function definition
Summary: dev-qt/qtwebengine-5.9.5 with GCC-8.1.0 - ../../3rdparty/chromium/third_party...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 661104 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-05-04 12:34 UTC by Ivan
Modified: 2019-02-23 17:13 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge--info.txt,6.72 KB, text/plain)
2018-05-04 12:34 UTC, Ivan
Details
qtwebengine-5.9.5-build.zip (qtwebengine-5.9.5-build.zip,147.87 KB, application/zip)
2018-05-04 12:35 UTC, Ivan
Details
Specify attribute before the declarator in a function definition (fix_gentoo_bug_654824.patch,678 bytes, patch)
2018-05-11 01:00 UTC, George L. Emigh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan 2018-05-04 12:34:44 UTC
Created attachment 529748 [details]
emerge --info

The title is self-explanatory.

I've tried gcc-8.1.0 and gcc-8.1.0-r1 multiple times. In the same time I'm able to compile and merge dev-qt/qtwebengine-5.9.5 when I use gcc-7.3.0-r1 with same flags, options etc.

USE="alsa pulseaudio system-ffmpeg system-icu widgets -bindist -debug -geolocation -pax_kernel {-test}" 

The rest of the system (except smplayer and vw) is compiled with gcc-8.1.0 already.

Here's what I see in the terminal window before compilation stops:

[4843/17288] /usr/bin/x86_64-pc-linux-gnu-gcc -MMD -MF obj/third_party/sqlite/chromium_sqlite3/sqlite3.o.d -DSQLITE_ENABLE_FTS3 -DSQLITE_DISABLE_FTS3_UNICODE -DSQLITE_DISABLE_FTS4_DEFERRED -DSQLITE_ENABLE_ICU -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_SECURE_DELETE -DSQLITE_SEPARATE_CACHE_POOLS -DTHREADSAFE -DSQLITE_MAX_WORKER_THREADS=0 -DSQLITE_MAX_MMAP_SIZE=268435456 -DSQLITE_MMAP_READ_ONLY=1 -DSQLITE_DEFAULT_PCACHE_INITSZ=0 -DHAVE_USLEEP=1 -DUSE_PREAD=1 -Dfdatasync=fdatasync -D_HAVE_SQLITE_CONFIG_H -DV8_DEPRECATION_WARNINGS -DENABLE_PLUGINS=1 -DENABLE_PDF=1 -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DENABLE_WEBRTC=1 -DDISABLE_NACL -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DUSE_PROPRIETARY_CODECS -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -I../../3rdparty/chromium/third_party/sqlite/amalgamation -Igen -I../../3rdparty/chromium -Igen -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -m64 -O2 -fno-ident -fdata-sections -ffunction-sections -g0 -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast  -c ../../3rdparty/chromium/third_party/sqlite/amalgamation/sqlite3.c -o obj/third_party/sqlite/chromium_sqlite3/sqlite3.o
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile.gn_run:536: run_ninja] Error 1
make[3]: Leaving directory '/tmp/portage/dev-qt/qtwebengine-5.9.5/work/qtwebengine-opensource-src-5.9.5/src/core'
make[2]: *** [Makefile:80: sub-gn_run-pro-make_first] Error 2
make[2]: Leaving directory '/tmp/portage/dev-qt/qtwebengine-5.9.5/work/qtwebengine-opensource-src-5.9.5/src/core'
make[1]: *** [Makefile:79: sub-core-make_first] Error 2
make[1]: Leaving directory '/tmp/portage/dev-qt/qtwebengine-5.9.5/work/qtwebengine-opensource-src-5.9.5/src'
make: *** [Makefile:47: sub-src-make_first] Error 2

Emerge.info and build.log will be attached.

If there's any info I should provide, please, let me know.
Comment 1 Ivan 2018-05-04 12:35:57 UTC
Created attachment 529750 [details]
qtwebengine-5.9.5-build.zip
Comment 2 Marco Genasci 2018-05-04 15:24:58 UTC
You can backport a patch following chromium bug 7857 [1].

[1] https://bugs.chromium.org/p/webrtc/issues/detail?id=7857
Comment 3 George L. Emigh 2018-05-11 01:00:54 UTC
Created attachment 530776 [details, diff]
Specify attribute before the declarator in a function definition

This patch compiles fine with GCC 8.1
Comment 4 Ivan 2018-05-18 06:17:48 UTC
(In reply to George L. Emigh from comment #3)
> Created attachment 530776 [details, diff] [details, diff]
> Specify attribute before the declarator in a function definition
> 
> This patch compiles fine with GCC 8.1

Thanks, it worked for me
Comment 5 Eugene Bright 2018-06-19 23:29:25 UTC
The problem isn't actual for =qtwebengine-5.9.6
Upgrading is recommended as a workaround now.
Comment 7 Arfrever Frehtes Taifersar Arahesis 2018-06-23 21:40:52 UTC
Closing this bug since dev-qt/qtwebengine-5.9.6 is fixed.
Comment 8 Arfrever Frehtes Taifersar Arahesis 2018-07-13 22:07:17 UTC
*** Bug 661104 has been marked as a duplicate of this bug. ***