fwts does not build with -O0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Firmware Test Suite |
Fix Released
|
Medium
|
Colin Ian King |
Bug Description
I tried to disable -Werror (because it fails on newer gcc versions right now). In the process I noticed that fwts fails to build with gcc 6.3.1. The output is (simply running with "make CFLAGS=":
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../..
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../..
In file included from ../../.
fwts_firmware.c: In function ‘fwts_firmware_
../../.
enum { FWTS_CONCAT_
../../.
#define FWTS_CONCAT(a, b) a ## b
../../.
enum { FWTS_CONCAT_
fwts_firmware.
FWTS_ASSERT((n * (sizeof(
^~~~~~~~~~~
../../.
enum { FWTS_CONCAT_
../../.
#define FWTS_CONCAT(a, b) a ## b
../../.
enum { FWTS_CONCAT_
fwts_firmware.
FWTS_ASSERT(((1 << n) - 1) == FWTS_FW_
^~~~~~~~~~~
Makefile:789: recipe for target 'libfwts_
make: *** [libfwts_
Changed in fwts: | |
status: | In Progress → Fix Committed |
Changed in fwts: | |
status: | Fix Committed → Fix Released |
Please let me know which fwts version you are building and where you got the source as debugging this is going to be tricky without such pertinent information.
Building fwts from source with make CFLAGS= is not the way to build fwts. If you want to build it with Werror disabled, then do the following:
1. Edit configure.ac, remove -Werror from AM_INIT_AUTOMAKE
2. Run:
autoreconf -ivf
./configure
make
3. let me know if this works or not
thanks.