Github messages for voidlinux
 help / color / mirror / Atom feed
From: dinama <dinama@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] clang9  unsupported flag  on xbps-src  chroot
Date: Fri, 06 Mar 2020 15:22:45 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19839@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 869 bytes --]

New 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)

```


             reply	other threads:[~2020-03-06 14:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-06 14:22 dinama [this message]
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 ` [ISSUE] [CLOSED] " ericonr

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19839@inbox.vuxu.org \
    --to=dinama@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).