Bug 75010 - clang: error: unknown argument: '-fstack-protector-strong'
Summary: clang: error: unknown argument: '-fstack-protector-strong'
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium blocker
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-15 02:16 UTC by Vinson Lee
Modified: 2014-05-23 07:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
configure.ac: Remove -fstack-protector-strong from LLVM flags. (996 bytes, patch)
2014-05-14 22:29 UTC, Vinson Lee
Details | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Vinson Lee 2014-02-15 02:16:35 UTC
Building with clang 3.4 on Fedora 21 (Rawhide)

mesa: 1020d8937ef52725cc5adafc12465f6332815e82 (master)

$ make
[...]
  CXX      gallivm/lp_bld_debug.lo
clang: error: unknown argument: '-fstack-protector-strong'

$ clang++ --version
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-redhat-linux-gnu
Thread model: posix

$ llvm-config --cxxflags
-I/usr/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -fomit-frame-pointer -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual
Comment 1 Vinson Lee 2014-05-14 22:29:19 UTC
Created attachment 99048 [details] [review]
configure.ac: Remove -fstack-protector-strong from LLVM flags.
Comment 2 Vinson Lee 2014-05-23 07:19:04 UTC
commit 8479edf3d7c693ad53f0285db03f1e2acfb777e1
Author: Vinson Lee <vlee@freedesktop.org>
Date:   Fri May 9 18:21:59 2014 -0700

    configure.ac: Remove -fstack-protector-strong from LLVM flags.
    
    -fstack-protector-strong is not supported by clang.
    
    This patch fixes this build error on Fedora 20 with clang.
    
      CXX      gallivm/lp_bld_debug.lo
    clang: error: unknown argument: '-fstack-protector-strong'
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75010
    Signed-off-by: Vinson Lee <vlee@freedesktop.org>


bug/show.html.tmpl processed on Feb 25, 2017 at 20:36:30.
(provided by the Example extension).