fio Makefile bug
I ran across this when trying to run make on fio v1.50.
spike:/tmp/fio-1.50 # make
Makefile:25: Extraneous text after else' directive Makefile:30: Extraneous text after else' directive Makefile:30: *** only one `else' per conditional. Stop.
OS info:
spike:/tmp/fio-1.50 # cat /etc/issue
Welcome to SUSE Linux Enterprise Server 10 SP4 RC2 (x86_64) - Kernel \r (\l).
spike:/tmp/fio-1.50 # uname -a
Linux spike 2.6.16.60-0.81.1-smp #1 SMP Tue Feb 8 06:02:54 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
The offendinding lines:
else ifeq ($(UNAME), SunOS)
SOURCE += fifo.c lib/strsep.c helpers.c solaris.c engines/posixaio.c \
engines/solarisaio.c
LIBS += -lpthread -ldl -laio -lrt -lnsl -lsocket
CPPFLAGS += -D__EXTENSIONS__
else ifeq ($(UNAME), FreeBSD)
SOURCE += helpers.c engines/posixaio.c
LIBS += -lpthread -lrt
CFLAGS += -rdynamic
else ifeq ($(UNAME), NetBSD)
SOURCE += helpers.c engines/posixaio.c
LIBS += -lpthread -lrt
CFLAGS += -rdynamic
else ifeq ($(UNAME), AIX)
SOURCE += fifo.c helpers.c lib/getopt_long.c engines/posixaio.c
LIBS += -lpthread -ldl -lrt
CFLAGS += -rdynamic
CPPFLAGS += -D_LARGE_FILES -D__ppc__
else ifeq ($(UNAME), Darwin)
SOURCE += helpers.c engines/posixaio.c
LIBS += -lpthread -ldl
else ifneq (,$(findstring CYGWIN,$(UNAME)))
SOURCE += engines/windowsaio.c
LIBS += -lpthread -lrt
To workaround it I simply deleted those lines.
-- mikem
Quoted 6 lines · On Thu, 17 Feb 2011 14:16:36 -0600 Mike Miller <[email protected]> wrote:
I ran across this when trying to run make on fio v1.50.
spike:/tmp/fio-1.50 # make
Makefile:25: Extraneous text afterelse' directive Makefile:30: Extraneous text afterelse' directive Makefile:30: *** only one `else' per conditional. Stop.
Could you try with 1.50.2 or later please? The Makefile was fixed after 1.50 was released.
Signature · 1 line
Bruce Cran