Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1096864 - atlascpp make check failure since -Werror=format-security
Summary: atlascpp make check failure since -Werror=format-security
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: atlascpp
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Martin Preisler
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F-ExcludeArch-ppc64le, PPC64LETracker
TreeView+ depends on / blocked
 
Reported: 2014-05-12 14:34 UTC by Michel Normand
Modified: 2014-05-16 02:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-16 02:08:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michel Normand 2014-05-12 14:34:37 UTC
Description of problem: atlascpp make check failure since -Werror=format-security


Version-Release number of selected component (if applicable):
atlascpp-0.6.2-6.fc21

How reproducible:


Steps to Reproduce:
1. fedpkg clone -a atlascpp
2. fedpkg mockbuild

Actual results:
===
...
make[3]: Entering directory `/builddir/build/BUILD/Atlas-C++-0.6.2/tests/Objects'
g++ -DHAVE_CONFIG_H  -I../..    -O2 -g -pipe -Wall =format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -DNDEBUG -c -o custom_ops.o custom_ops.cpp
g++: error: =format-security: No such file or directory
make[3]: *** [custom_ops.o] Error 1
===

Additional info:
The failure is related to the sed lines in atlascpp.spec that need to be changed
as suggested by following diff:
===
$git diff
diff --git a/atlascpp.spec b/atlascpp.spec
index 67d6d83..1da6188 100644
--- a/atlascpp.spec
+++ b/atlascpp.spec
@@ -45,8 +45,8 @@ Libraries and header files for developing applications that use Atlas-C++
 
 # simple hack to remove -Werror from the test suite, which causes
 # it to fail.
-sed -i -e 's#-Werror##' benchmark/Makefile
-sed -i -e 's#-Werror##' tests/Objects/Makefile
+sed -i -e 's#-Werror\(=[^ ]*\)\?##' benchmark/Makefile
+sed -i -e 's#-Werror\(=[^ ]*\)\?##' tests/Objects/Makefile
 
 make %{?_smp_mflags}
 make docs
===


Note You need to log in before you can comment on or make changes to this bug.