Bug 75010

Summary: clang: error: unknown argument: '-fstack-protector-strong'
Product: Mesa Reporter: Vinson Lee <vlee>
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: configure.ac: Remove -fstack-protector-strong from LLVM flags.

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>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.