From: ericonr <ericonr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] clang-9 unknown argument -fstack-clash-protection on xbps-src chroot
Date: Fri, 05 Feb 2021 04:11:50 +0100 [thread overview]
Message-ID: <20210205031150.JEGG8KkOggR42Ywy3wOyjGncab55QsHf1CiChe6JUZY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19839@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 872 bytes --]
Closed issue by dinama on void-packages repository
https://github.com/void-linux/void-packages/issues/19839
Description:
Can't prepare package which using clang for build because shell `common/environment/configure/hardening.sh` set ` "-fstack-clash-protection -D_FORTIFY_SOURCE=2"` as default CFLAGS.
And compilation broken:
```
FAILED: CMakeFiles/cmTC_a2b73.dir/testCCompiler.c.o
/usr/lib/ccache/bin/clang -fstack-clash-protection -D_FORTIFY_SOURCE=2 \
-mtune=generic -O2 -pipe -o CMakeFiles/cmTC_a2b73.dir/testCCompiler.c.o \
-c testCCompiler.c
clang-9: error: unknown argument: '-fstack-clash-protection'
```
This workaround on <package>/template locally resolve this problem:
```
export CFLAGS=$(sed 's/-fstack-clash-protection//g' <<<$CFLAGS)
export CXXFLAGS=$(sed 's/-fstack-clash-protection//g' <<<$CXXFLAGS)
```
prev parent reply other threads:[~2021-02-05 3:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-06 14:22 [ISSUE] clang9 unsupported flag " dinama
2020-03-06 15:27 ` clang-9 unknown argument -fstack-clash-protection " Duncaen
2020-03-06 17:19 ` dinama
2020-03-06 17:23 ` Duncaen
2020-03-06 17:28 ` [ISSUE] [CLOSED] " dinama
2020-03-06 17:36 ` xtraeme
2021-02-05 3:11 ` ericonr [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210205031150.JEGG8KkOggR42Ywy3wOyjGncab55QsHf1CiChe6JUZY@z \
--to=ericonr@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).