Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642164 - dev-libs/libcss-0.7.0: fails to build due to -Werror in internal flags
Summary: dev-libs/libcss-0.7.0: fails to build due to -Werror in internal flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Virgil Dupras (RETIRED)
URL:
Whiteboard:
Keywords:
: 533910 645624 648614 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-24 21:56 UTC by Nikita Zlobin
Modified: 2019-02-04 21:38 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Zlobin 2017-12-24 21:56:51 UTC
gcc 6.4.0, binutils 2.28.1
Since it is netsurf subproject - i suppose, other components also might have this issue.
Build log:
>>> Failed to emerge dev-libs/libcss-0.7.0, Log file:
>>>  '/var/calculate/tmp/portage/dev-libs/libcss-0.7.0/temp/build.log'
>>> Jobs: 25 of 156 complete, 1 failed              Load avg: 2.16, 2.20, 2.31
 * Package:    dev-libs/libcss-0.7.0
 * Repository: gentoo
 * Maintainer: xmw@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking libcss-0.7.0-src.tar.gz to /var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work
>>> Unpacking netsurf-buildsystem-1.6.tar.gz to /var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work
>>> Source unpacked in /var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work
>>> Preparing source in /var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work/libcss-0.7.0 ...
 * Will copy sources from /var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work/libcss-0.7.0
 * abi_x86_64.amd64: copying to /var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work/libcss-0.7.0-abi_x86_64.amd64
>>> Source prepared.
>>> Configuring source in /var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work/libcss-0.7.0 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
>>> Source configured.
>>> Compiling source in /var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work/libcss-0.7.0 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make -j3 -l2 CC=x86_64-pc-linux-gnu-gcc LD=x86_64-pc-linux-gnu-ld NSSHARED=/var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work/buildsystem-1.6 Q= HOST_CC=$(CC) CCOPT= CCNOOPT= CCDBG= LDDBG= AR=x86_64-pc-linux-gnu-ar BUILD=release PREFIX=/usr COMPONENT_TYPE=lib-shared LIBDIR=lib64 
mkdir -p build-release-x86_64-pc-linux-gnu-release-lib-shared
mkdir -p build-release-x86_64-pc-linux-gnu-release-lib-shared/coverage
touch  build-release-x86_64-pc-linux-gnu-release-lib-shared/stamp
 PREPARE: build-release-x86_64-pc-linux-gnu-release-lib-shared/gen_parser
cc -o build-release-x86_64-pc-linux-gnu-release-lib-shared/gen_parser src/parse/properties/css_property_parser_gen.c
GENERATE: src/parse/properties/autogenerated_z_index.c
build-release-x86_64-pc-linux-gnu-release-lib-shared/gen_parser -o src/parse/properties/autogenerated_z_index.c 'z_index:CSS_PROP_Z_INDEX IDENT:( INHERIT: AUTO:0,Z_INDEX_AUTO IDENT:) NUMBER:( true:Z_INDEX_SET NUMBER:)'
GENERATE: src/parse/properties/autogenerated_word_spacing.c
build-release-x86_64-pc-linux-gnu-release-lib-shared/gen_parser -o src/parse/properties/autogenerated_word_spacing.c 'word_spacing:CSS_PROP_WORD_SPACING IDENT:( INHERIT: NORMAL:0,WORD_SPACING_NORMAL IDENT:) LENGTH_UNIT:( UNIT_PX:WORD_SPACING_SET DISALLOW:unit&UNIT_ANGLE||unit&UNIT_TIME||unit&UNIT_FREQ||unit&UNIT_PCT LENGTH_UNIT:)'

................................................................
....skiped some part of log to keep in comment length limit.....
................................................................

x86_64-pc-linux-gnu-gcc -MMD -MP -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work/libcss-0.7.0-abi_x86_64.amd64/include/ -I/var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work/libcss-0.7.0-abi_x86_64.amd64/src -Wall -W -Wundef -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Werror -O2 -march=native -fomit-frame-pointer -pipe -fno-delete-null-pointer-checks -D_ALIGNED="__attribute__((aligned))" -DNDEBUG  -std=c99  -fPIC -DPIC -o build-release-x86_64-pc-linux-gnu-release-lib-shared/src_parse_parse.o -c src/parse/parse.c
src/parse/parse.c:2:32: error: unknown option after ‘#pragma GCC diagnostic’ kind [-Werror=pragmas]
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
                                ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [/var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work/buildsystem-1.6/makefiles/Makefile.top:579: build-release-x86_64-pc-linux-gnu-release-lib-shared/src_parse_parse.o] Error 1
 * ERROR: dev-libs/libcss-0.7.0::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/libcss-0.7.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libcss-0.7.0::gentoo'`.
 * The complete build log is located at '/var/calculate/tmp/portage/dev-libs/libcss-0.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/calculate/tmp/portage/dev-libs/libcss-0.7.0/temp/environment'.
 * Working directory: '/var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work/libcss-0.7.0-abi_x86_64.amd64'
 * S: '/var/calculate/tmp/portage/dev-libs/libcss-0.7.0/work/libcss-0.7.0'

 * GNU info directory index is up-to-date.
Comment 1 Nikita Zlobin 2017-12-24 22:42:55 UTC
I got working full-world workaround, affecting any ebuilds, where env compiler flags are working (might be some exceptions of course):

In /etc/portage/bashrc:
export CFLAGS="${CFLAGS} -Wno-error"
export CXXFLAGS="${CXXFLAGS} -Wno-error"
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-03 14:50:05 UTC
Please always attach the complete build.log file, and attach/paste 'emerge --info'.
Comment 3 Virgil Dupras (RETIRED) gentoo-dev 2018-11-30 03:48:18 UTC
As of now, this package builds fine on a stable system, but "-Werror" is still part of CFLAGS and this makes building fragile. It's not all netsurf-related libs that add that flags, but some do (for example, libparserutils).

It would probably be worth it to systematically add "-Wno-error" in dev-util/netsurf-buildsystem. Will look into it.
Comment 4 Virgil Dupras (RETIRED) gentoo-dev 2018-11-30 03:50:56 UTC
*** Bug 648614 has been marked as a duplicate of this bug. ***
Comment 5 Virgil Dupras (RETIRED) gentoo-dev 2018-11-30 03:51:40 UTC
*** Bug 533910 has been marked as a duplicate of this bug. ***
Comment 6 Virgil Dupras (RETIRED) gentoo-dev 2018-11-30 03:53:27 UTC
*** Bug 645624 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2019-02-04 21:38:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07c478522a0b5be995eb0cd74a95f74f48872068

commit 07c478522a0b5be995eb0cd74a95f74f48872068
Author:     Virgil Dupras <vdupras@gentoo.org>
AuthorDate: 2019-02-04 21:20:40 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2019-02-04 21:20:40 +0000

    dev-util/netsurf-buildsystem: build with empty WARNINGFLAGS
    
    Closes: https://bugs.gentoo.org/642164
    Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 .../netsurf-buildsystem/files/gentoo-helpers-r1.sh | 19 ++++++++++++++++
 .../netsurf-buildsystem-1.7-r1.ebuild              | 26 ++++++++++++++++++++++
 2 files changed, 45 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=571f9207caeac007362629709213effaccbca45a

commit 571f9207caeac007362629709213effaccbca45a
Author:     Virgil Dupras <vdupras@gentoo.org>
AuthorDate: 2019-02-04 21:27:07 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2019-02-04 21:27:07 +0000

    dev-libs/libcss: bump buildsystem dep
    
    Bug: https://bugs.gentoo.org/642164
    Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-libs/libcss/libcss-0.8.0-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)