New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-homepage script fails on Debian 9 #1629

BernhardDenner opened this Issue Oct 19, 2017 · 1 comment


None yet
2 participants

BernhardDenner commented Oct 19, 2017

Running the script scripts/build-homepage fails during cmake compiler testing phase.

root@elektrahomepage:/# lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.1 (stretch)
Release:	9.1
Codename:	stretch
  • Elektra Version: master

Further Log Files and Output

+ cmake -DENABLE_ASAN=ON -DBUILD_FULL=OFF -DBUILD_SHARED=ON -DBUILD_STATIC=OFF -DBUILD_DOCUMENTATION=OFF -DPLUGINS=ALL;-fstab;-semlock;file;xerces -DTOOLS=kdb;rest-backend;rest-frontend -DCMAKE_C_FLAGS=-D_FORTIFY_SOURCE=2 -Werror=format-security -fstack-protector-strong -Wstack-protector -fPIE -pie -DCMAKE_CXX_FLAGS=-D_FORTIFY_SOURCE=2 -Werror=format-security -fstack-protector-strong -Wstack-protector -fPIE -pie -DCMAKE_EXE_LINKER_FLAGS=-Wl,-z,now -Wl,-z,relro ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.7/Modules/CMakeTestCCompiler.cmake:51 (message):
  The C compiler "/usr/bin/cc" is not able to compile a simple test program.
  Building C object CMakeFiles/cmTC_56393.dir/testCCompiler.c.o
  /usr/bin/cc -D_FORTIFY_SOURCE=2 -Werror=format-security
  -fstack-protector-strong -Wstack-protector -fPIE -pie -o
  CMakeFiles/cmTC_56393.dir/testCCompiler.c.o -c
  cc1: error: -Wformat-security ignored without -Wformat
  cc1: some warnings being treated as errors
  CMakeFiles/cmTC_56393.dir/build.make:65: recipe for target
  'CMakeFiles/cmTC_56393.dir/testCCompiler.c.o' failed
  make[1]: *** [CMakeFiles/cmTC_56393.dir/testCCompiler.c.o] Error 1

markus2330 added a commit that referenced this issue Oct 21, 2017

cmake: add -Wformat to fix error
see #1629

  cc1: error: -Wformat-security ignored without -Wformat

This comment has been minimized.

Show comment
Hide comment

markus2330 Oct 21, 2017


Thank you for reporting the issue! I added -Wformat to the standard compilation flags.


markus2330 commented Oct 21, 2017

Thank you for reporting the issue! I added -Wformat to the standard compilation flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment