Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] clang9  unsupported flag  on xbps-src  chroot
@ 2020-03-06 14:22 dinama
  2020-03-06 15:27 ` clang-9 unknown argument -fstack-clash-protection " Duncaen
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dinama @ 2020-03-06 14:22 UTC (permalink / raw)
  To: ml

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

```


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-02-05  3:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06 14:22 [ISSUE] clang9 unsupported flag on xbps-src chroot 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 ` [ISSUE] [CLOSED] " ericonr

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