Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717952 - dev-libs/libfido2: fails build due to -Werror: cc1: error: '-fstack-protector' not supported for this target [-Werror]: cc1: all warnings being treated as errors
Summary: dev-libs/libfido2: fails build due to -Werror: cc1: error: '-fstack-protector...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror 709752
  Show dependency tree
 
Reported: 2020-04-17 21:47 UTC by Sergei Trofimovich (RETIRED)
Modified: 2020-04-17 22:18 UTC (History)
0 users

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


Attachments
dev-libs:libfido2-1.3.1.FAIL (=dev-libs:libfido2-1.3.1.FAIL,17.36 KB, text/plain)
2020-04-17 21:47 UTC, Sergei Trofimovich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2020-04-17 21:47:52 UTC
Created attachment 633434 [details]
dev-libs:libfido2-1.3.1.FAIL

Relevant build snippet:

"""
FAILED: src/CMakeFiles/fido2_shared.dir/assert.c.o
/usr/lib/ccache/bin/ia64-unknown-linux-gnu-gcc -DHAS_DEV_URANDOM -DTLS=__thread -D_FIDO_INTERNAL -D_FIDO_MAJOR=1 -D_FIDO_MINOR=3 -D_FIDO_PATCH=1 -D_GNU_SOURCE -Dfido2_shared_EXPORTS -I/var/tmp
/portage/dev-libs/libfido2-1.3.1/work/libfido2-1.3.1/src  -DNDEBUG -O2 -pipe -g -fdiagnostics-show-option -frecord-gcc-switches -Wall -Wextra -Werror -Wshadow -Wwrite-strings -Wmissing-prototy
pes -Wbad-function-cast -pedantic -pedantic-errors -fstack-protector-all -std=c99 -Wno-unused-result -Wno-discarded-qualifiers -fPIC -MD -MT src/CMakeFiles/fido2_shared.dir/assert.c.o -MF src/
CMakeFiles/fido2_shared.dir/assert.c.o.d -o src/CMakeFiles/fido2_shared.dir/assert.c.o -c /var/tmp/portage/dev-libs/libfido2-1.3.1/work/libfido2-1.3.1/src/assert.c
cc1: error: '-fstack-protector' not supported for this target [-Werror]
"""

ia64 does not support stack protector but gcc driver does not fail on it. Only generates warnings. It has a nice side-effect of catching all blanket -Werror in CFLAGS.
Comment 1 Larry the Git Cow gentoo-dev 2020-04-17 22:18:03 UTC
The bug has been closed via the following commit(s):

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

commit b8dbca2ef7ab9dab03a51e2d99f92743d7b5b86e
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2020-04-17 22:16:33 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-04-17 22:17:05 +0000

    dev-libs/libfido2-1.3.1: Drop -Werror (bug #717952)
    
    Closes: https://bugs.gentoo.org/717952
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 dev-libs/libfido2/files/libfido2-1.3.1-no-werror.patch | 18 ++++++++++++++++++
 dev-libs/libfido2/libfido2-1.3.1.ebuild                |  1 +
 2 files changed, 19 insertions(+)

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

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

commit ab5af86bb9051eb3c72c51c5b2fceb45625d95aa
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2020-04-17 22:12:40 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-04-17 22:16:50 +0000

    dev-libs/libfido2-1.4.0: Version bump, remove Werror (bug #717952)
    
    Bug: https://bugs.gentoo.org/717952
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 dev-libs/libfido2/Manifest                         |  1 +
 .../libfido2/files/libfido2-1.4.0-cmakelists.patch | 34 ++++++++++++++++
 dev-libs/libfido2/libfido2-1.4.0.ebuild            | 46 ++++++++++++++++++++++
 3 files changed, 81 insertions(+)