* Unable to Configure latest build
@ 2013-04-12 7:40 Gavin Martin
2013-04-12 8:13 ` Jens Axboe
2013-04-12 10:55 ` Greg Freemyer
0 siblings, 2 replies; 14+ messages in thread
From: Gavin Martin @ 2013-04-12 7:40 UTC (permalink / raw)
To: fio
Hi Jens,
I grabbed the 2.0.15 when it came out and it configured and compiled
fine, but the latest one from today (12/04) displays errors when
trying to configure.
I'm not doing anything different to what I was doing for the previous
builds. Just running ./configure, below is the output from
config.log;
# FIO configure log Fri Apr 12 08:25:30 BST 2013
# Configured with: './configure'
#
gcc -D_GNU_SOURCE -include config-host.h -c -o
/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
/tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __ANDROID__ not defined
gcc -D_GNU_SOURCE -include config-host.h -c -o
/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
gcc -D_GNU_SOURCE -include config-host.h -c -o
/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
/tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __i386__ not defined
gcc -D_GNU_SOURCE -include config-host.h -c -o
/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
Compiling test case cross
gcc -D_GNU_SOURCE -include config-host.h -o
/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
Compiling test case endian
gcc -D_GNU_SOURCE -include config-host.h -o
/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
Compiling test case wordsize
gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=32 -o
/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
/tmp/fio-conf-27676-20722-14401.c: In function �main�:
/tmp/fio-conf-27676-20722-14401.c:5: error: size of array �type name�
is negative
Compiling test case wordsize
gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=64 -o
/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
Compiling test case zlib
gcc -D_GNU_SOURCE -include config-host.h -o
/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
-lz
/tmp/fio-conf-27676-20722-14401.c:1:18: error: zlib.h: No such file or directory
/tmp/fio-conf-27676-20722-14401.c: In function �main�:
/tmp/fio-conf-27676-20722-14401.c:4: error: �z_stream� undeclared
(first use in this function)
/tmp/fio-conf-27676-20722-14401.c:4: error: (Each undeclared
identifier is reported only once
/tmp/fio-conf-27676-20722-14401.c:4: error: for each function it appears in.)
/tmp/fio-conf-27676-20722-14401.c:4: error: expected �;� before �stream�
/tmp/fio-conf-27676-20722-14401.c:5: error: �stream� undeclared (first
use in this function)
/tmp/fio-conf-27676-20722-14401.c:5: error: �Z_OK� undeclared (first
use in this function)
This is on a SLES11 SP1 x86_64 machine, I don't know enough to see if
I am doing something wrong, but it has worked on previous builds.
Thanks,
Gavin
--
------------------------------
For additional information including the registered office and the treatment of Xyratex confidential information please visit www.xyratex.com
------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 7:40 Unable to Configure latest build Gavin Martin
@ 2013-04-12 8:13 ` Jens Axboe
2013-04-12 8:27 ` Gavin Martin
2013-04-12 10:55 ` Greg Freemyer
1 sibling, 1 reply; 14+ messages in thread
From: Jens Axboe @ 2013-04-12 8:13 UTC (permalink / raw)
To: Gavin Martin; +Cc: fio
On Fri, Apr 12 2013, Gavin Martin wrote:
> Hi Jens,
>
> I grabbed the 2.0.15 when it came out and it configured and compiled
> fine, but the latest one from today (12/04) displays errors when
> trying to configure.
>
> I'm not doing anything different to what I was doing for the previous
> builds. Just running ./configure, below is the output from
> config.log;
>
> # FIO configure log Fri Apr 12 08:25:30 BST 2013
> # Configured with: './configure'
> #
> gcc -D_GNU_SOURCE -include config-host.h -c -o
> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> /tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __ANDROID__ not defined
> gcc -D_GNU_SOURCE -include config-host.h -c -o
> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> gcc -D_GNU_SOURCE -include config-host.h -c -o
> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> /tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __i386__ not defined
> gcc -D_GNU_SOURCE -include config-host.h -c -o
> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> Compiling test case cross
> gcc -D_GNU_SOURCE -include config-host.h -o
> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> Compiling test case endian
> gcc -D_GNU_SOURCE -include config-host.h -o
> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> Compiling test case wordsize
> gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=32 -o
> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> /tmp/fio-conf-27676-20722-14401.c: In function �main�:
> /tmp/fio-conf-27676-20722-14401.c:5: error: size of array �type name�
> is negative
> Compiling test case wordsize
> gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=64 -o
> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> Compiling test case zlib
> gcc -D_GNU_SOURCE -include config-host.h -o
> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> -lz
> /tmp/fio-conf-27676-20722-14401.c:1:18: error: zlib.h: No such file or directory
> /tmp/fio-conf-27676-20722-14401.c: In function �main�:
> /tmp/fio-conf-27676-20722-14401.c:4: error: �z_stream� undeclared
> (first use in this function)
> /tmp/fio-conf-27676-20722-14401.c:4: error: (Each undeclared
> identifier is reported only once
> /tmp/fio-conf-27676-20722-14401.c:4: error: for each function it appears in.)
> /tmp/fio-conf-27676-20722-14401.c:4: error: expected �;� before �stream�
> /tmp/fio-conf-27676-20722-14401.c:5: error: �stream� undeclared (first
> use in this function)
> /tmp/fio-conf-27676-20722-14401.c:5: error: �Z_OK� undeclared (first
> use in this function)
>
> This is on a SLES11 SP1 x86_64 machine, I don't know enough to see if
> I am doing something wrong, but it has worked on previous builds.
You need the zlib devel libraries installed, configure should have told
you that. Ala:
ERROR
ERROR: User requested feature zlib
ERROR: configure was not able to find it
ERROR
Configure failed, check config.log and/or the above output
Not sure what that package is called on SLES, but probably zlib-devel.
--
Jens Axboe
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 8:13 ` Jens Axboe
@ 2013-04-12 8:27 ` Gavin Martin
2013-04-12 8:42 ` Jens Axboe
0 siblings, 1 reply; 14+ messages in thread
From: Gavin Martin @ 2013-04-12 8:27 UTC (permalink / raw)
To: Jens Axboe; +Cc: fio
On 12 April 2013 09:13, Jens Axboe <axboe@kernel.dk> wrote:
> On Fri, Apr 12 2013, Gavin Martin wrote:
>> Hi Jens,
>>
>> I grabbed the 2.0.15 when it came out and it configured and compiled
>> fine, but the latest one from today (12/04) displays errors when
>> trying to configure.
>>
>> I'm not doing anything different to what I was doing for the previous
>> builds. Just running ./configure, below is the output from
>> config.log;
>>
>> # FIO configure log Fri Apr 12 08:25:30 BST 2013
>> # Configured with: './configure'
>> #
>> gcc -D_GNU_SOURCE -include config-host.h -c -o
>> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>> /tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __ANDROID__ not defined
>> gcc -D_GNU_SOURCE -include config-host.h -c -o
>> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>> gcc -D_GNU_SOURCE -include config-host.h -c -o
>> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>> /tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __i386__ not defined
>> gcc -D_GNU_SOURCE -include config-host.h -c -o
>> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>> Compiling test case cross
>> gcc -D_GNU_SOURCE -include config-host.h -o
>> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>> Compiling test case endian
>> gcc -D_GNU_SOURCE -include config-host.h -o
>> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>> Compiling test case wordsize
>> gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=32 -o
>> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>> /tmp/fio-conf-27676-20722-14401.c: In function āmainā:
>> /tmp/fio-conf-27676-20722-14401.c:5: error: size of array ātype nameā
>> is negative
>> Compiling test case wordsize
>> gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=64 -o
>> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>> Compiling test case zlib
>> gcc -D_GNU_SOURCE -include config-host.h -o
>> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>> -lz
>> /tmp/fio-conf-27676-20722-14401.c:1:18: error: zlib.h: No such file or directory
>> /tmp/fio-conf-27676-20722-14401.c: In function āmainā:
>> /tmp/fio-conf-27676-20722-14401.c:4: error: āz_streamā undeclared
>> (first use in this function)
>> /tmp/fio-conf-27676-20722-14401.c:4: error: (Each undeclared
>> identifier is reported only once
>> /tmp/fio-conf-27676-20722-14401.c:4: error: for each function it appears in.)
>> /tmp/fio-conf-27676-20722-14401.c:4: error: expected ā;ā before āstreamā
>> /tmp/fio-conf-27676-20722-14401.c:5: error: āstreamā undeclared (first
>> use in this function)
>> /tmp/fio-conf-27676-20722-14401.c:5: error: āZ_OKā undeclared (first
>> use in this function)
>>
>> This is on a SLES11 SP1 x86_64 machine, I don't know enough to see if
>> I am doing something wrong, but it has worked on previous builds.
>
> You need the zlib devel libraries installed, configure should have told
> you that. Ala:
>
> ERROR
> ERROR: User requested feature zlib
> ERROR: configure was not able to find it
> ERROR
> Configure failed, check config.log and/or the above output
>
> Not sure what that package is called on SLES, but probably zlib-devel.
>
> --
> Jens Axboe
>
Thanks, this must be a new requirement as I have never needed it for
previous builds.
--
------------------------------
For additional information including the registered office and the treatment of Xyratex confidential information please visit www.xyratex.com
------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 8:27 ` Gavin Martin
@ 2013-04-12 8:42 ` Jens Axboe
2013-04-12 9:31 ` Gavin Martin
0 siblings, 1 reply; 14+ messages in thread
From: Jens Axboe @ 2013-04-12 8:42 UTC (permalink / raw)
To: Gavin Martin; +Cc: fio
On Fri, Apr 12 2013, Gavin Martin wrote:
> On 12 April 2013 09:13, Jens Axboe <axboe@kernel.dk> wrote:
> > On Fri, Apr 12 2013, Gavin Martin wrote:
> >> Hi Jens,
> >>
> >> I grabbed the 2.0.15 when it came out and it configured and compiled
> >> fine, but the latest one from today (12/04) displays errors when
> >> trying to configure.
> >>
> >> I'm not doing anything different to what I was doing for the previous
> >> builds. Just running ./configure, below is the output from
> >> config.log;
> >>
> >> # FIO configure log Fri Apr 12 08:25:30 BST 2013
> >> # Configured with: './configure'
> >> #
> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >> /tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __ANDROID__ not defined
> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >> /tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __i386__ not defined
> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >> Compiling test case cross
> >> gcc -D_GNU_SOURCE -include config-host.h -o
> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >> Compiling test case endian
> >> gcc -D_GNU_SOURCE -include config-host.h -o
> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >> Compiling test case wordsize
> >> gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=32 -o
> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >> /tmp/fio-conf-27676-20722-14401.c: In function āmainā:
> >> /tmp/fio-conf-27676-20722-14401.c:5: error: size of array ātype nameā
> >> is negative
> >> Compiling test case wordsize
> >> gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=64 -o
> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >> Compiling test case zlib
> >> gcc -D_GNU_SOURCE -include config-host.h -o
> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >> -lz
> >> /tmp/fio-conf-27676-20722-14401.c:1:18: error: zlib.h: No such file or directory
> >> /tmp/fio-conf-27676-20722-14401.c: In function āmainā:
> >> /tmp/fio-conf-27676-20722-14401.c:4: error: āz_streamā undeclared
> >> (first use in this function)
> >> /tmp/fio-conf-27676-20722-14401.c:4: error: (Each undeclared
> >> identifier is reported only once
> >> /tmp/fio-conf-27676-20722-14401.c:4: error: for each function it appears in.)
> >> /tmp/fio-conf-27676-20722-14401.c:4: error: expected ā;ā before āstreamā
> >> /tmp/fio-conf-27676-20722-14401.c:5: error: āstreamā undeclared (first
> >> use in this function)
> >> /tmp/fio-conf-27676-20722-14401.c:5: error: āZ_OKā undeclared (first
> >> use in this function)
> >>
> >> This is on a SLES11 SP1 x86_64 machine, I don't know enough to see if
> >> I am doing something wrong, but it has worked on previous builds.
> >
> > You need the zlib devel libraries installed, configure should have told
> > you that. Ala:
> >
> > ERROR
> > ERROR: User requested feature zlib
> > ERROR: configure was not able to find it
> > ERROR
> > Configure failed, check config.log and/or the above output
> >
> > Not sure what that package is called on SLES, but probably zlib-devel.
> >
> > --
> > Jens Axboe
> >
>
> Thanks, this must be a new requirement as I have never needed it for
> previous builds.
It is a new requirement. It's because I merged the gfio base into the
master branch, and gfio client/server uses compression for bigger
transmissions. It could be made optional, but zlib-devel should be
available on all platforms (I think). A decision will be made regarding
that before 2.0.16 (or 2.1, I think it'l be).
--
Jens Axboe
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 8:42 ` Jens Axboe
@ 2013-04-12 9:31 ` Gavin Martin
2013-04-12 9:46 ` Jens Axboe
0 siblings, 1 reply; 14+ messages in thread
From: Gavin Martin @ 2013-04-12 9:31 UTC (permalink / raw)
To: Jens Axboe; +Cc: fio
On 12 April 2013 09:42, Jens Axboe <axboe@kernel.dk> wrote:
> On Fri, Apr 12 2013, Gavin Martin wrote:
>> On 12 April 2013 09:13, Jens Axboe <axboe@kernel.dk> wrote:
>> > On Fri, Apr 12 2013, Gavin Martin wrote:
>> >> Hi Jens,
>> >>
>> >> I grabbed the 2.0.15 when it came out and it configured and compiled
>> >> fine, but the latest one from today (12/04) displays errors when
>> >> trying to configure.
>> >>
>> >> I'm not doing anything different to what I was doing for the previous
>> >> builds. Just running ./configure, below is the output from
>> >> config.log;
>> >>
>> >> # FIO configure log Fri Apr 12 08:25:30 BST 2013
>> >> # Configured with: './configure'
>> >> #
>> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
>> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>> >> /tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __ANDROID__ not defined
>> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
>> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
>> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>> >> /tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __i386__ not defined
>> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
>> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>> >> Compiling test case cross
>> >> gcc -D_GNU_SOURCE -include config-host.h -o
>> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>> >> Compiling test case endian
>> >> gcc -D_GNU_SOURCE -include config-host.h -o
>> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>> >> Compiling test case wordsize
>> >> gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=32 -o
>> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>> >> /tmp/fio-conf-27676-20722-14401.c: In function āmainā:
>> >> /tmp/fio-conf-27676-20722-14401.c:5: error: size of array ātype nameā
>> >> is negative
>> >> Compiling test case wordsize
>> >> gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=64 -o
>> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>> >> Compiling test case zlib
>> >> gcc -D_GNU_SOURCE -include config-host.h -o
>> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>> >> -lz
>> >> /tmp/fio-conf-27676-20722-14401.c:1:18: error: zlib.h: No such file or directory
>> >> /tmp/fio-conf-27676-20722-14401.c: In function āmainā:
>> >> /tmp/fio-conf-27676-20722-14401.c:4: error: āz_streamā undeclared
>> >> (first use in this function)
>> >> /tmp/fio-conf-27676-20722-14401.c:4: error: (Each undeclared
>> >> identifier is reported only once
>> >> /tmp/fio-conf-27676-20722-14401.c:4: error: for each function it appears in.)
>> >> /tmp/fio-conf-27676-20722-14401.c:4: error: expected ā;ā before āstreamā
>> >> /tmp/fio-conf-27676-20722-14401.c:5: error: āstreamā undeclared (first
>> >> use in this function)
>> >> /tmp/fio-conf-27676-20722-14401.c:5: error: āZ_OKā undeclared (first
>> >> use in this function)
>> >>
>> >> This is on a SLES11 SP1 x86_64 machine, I don't know enough to see if
>> >> I am doing something wrong, but it has worked on previous builds.
>> >
>> > You need the zlib devel libraries installed, configure should have told
>> > you that. Ala:
>> >
>> > ERROR
>> > ERROR: User requested feature zlib
>> > ERROR: configure was not able to find it
>> > ERROR
>> > Configure failed, check config.log and/or the above output
>> >
>> > Not sure what that package is called on SLES, but probably zlib-devel.
>> >
>> > --
>> > Jens Axboe
>> >
>>
>> Thanks, this must be a new requirement as I have never needed it for
>> previous builds.
>
> It is a new requirement. It's because I merged the gfio base into the
> master branch, and gfio client/server uses compression for bigger
> transmissions. It could be made optional, but zlib-devel should be
> available on all platforms (I think). A decision will be made regarding
> that before 2.0.16 (or 2.1, I think it'l be).
>
> --
> Jens Axboe
>
It seems that on Sles 11 SP1 it is not included as standard, zlib is
installed, but not zlib-devel. Doing a few google searches and it
seems to be present in the SDK, I'll have a go at downloading that to
see if it is part of that package.
--
------------------------------
For additional information including the registered office and the treatment of Xyratex confidential information please visit www.xyratex.com
------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 9:31 ` Gavin Martin
@ 2013-04-12 9:46 ` Jens Axboe
2013-04-12 11:13 ` Jens Axboe
0 siblings, 1 reply; 14+ messages in thread
From: Jens Axboe @ 2013-04-12 9:46 UTC (permalink / raw)
To: Gavin Martin; +Cc: fio
On Fri, Apr 12 2013, Gavin Martin wrote:
> On 12 April 2013 09:42, Jens Axboe <axboe@kernel.dk> wrote:
> > On Fri, Apr 12 2013, Gavin Martin wrote:
> >> On 12 April 2013 09:13, Jens Axboe <axboe@kernel.dk> wrote:
> >> > On Fri, Apr 12 2013, Gavin Martin wrote:
> >> >> Hi Jens,
> >> >>
> >> >> I grabbed the 2.0.15 when it came out and it configured and compiled
> >> >> fine, but the latest one from today (12/04) displays errors when
> >> >> trying to configure.
> >> >>
> >> >> I'm not doing anything different to what I was doing for the previous
> >> >> builds. Just running ./configure, below is the output from
> >> >> config.log;
> >> >>
> >> >> # FIO configure log Fri Apr 12 08:25:30 BST 2013
> >> >> # Configured with: './configure'
> >> >> #
> >> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
> >> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >> >> /tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __ANDROID__ not defined
> >> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
> >> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
> >> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >> >> /tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __i386__ not defined
> >> >> gcc -D_GNU_SOURCE -include config-host.h -c -o
> >> >> /tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >> >> Compiling test case cross
> >> >> gcc -D_GNU_SOURCE -include config-host.h -o
> >> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >> >> Compiling test case endian
> >> >> gcc -D_GNU_SOURCE -include config-host.h -o
> >> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >> >> Compiling test case wordsize
> >> >> gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=32 -o
> >> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >> >> /tmp/fio-conf-27676-20722-14401.c: In function āmainā:
> >> >> /tmp/fio-conf-27676-20722-14401.c:5: error: size of array ātype nameā
> >> >> is negative
> >> >> Compiling test case wordsize
> >> >> gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=64 -o
> >> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >> >> Compiling test case zlib
> >> >> gcc -D_GNU_SOURCE -include config-host.h -o
> >> >> /tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >> >> -lz
> >> >> /tmp/fio-conf-27676-20722-14401.c:1:18: error: zlib.h: No such file or directory
> >> >> /tmp/fio-conf-27676-20722-14401.c: In function āmainā:
> >> >> /tmp/fio-conf-27676-20722-14401.c:4: error: āz_streamā undeclared
> >> >> (first use in this function)
> >> >> /tmp/fio-conf-27676-20722-14401.c:4: error: (Each undeclared
> >> >> identifier is reported only once
> >> >> /tmp/fio-conf-27676-20722-14401.c:4: error: for each function it appears in.)
> >> >> /tmp/fio-conf-27676-20722-14401.c:4: error: expected ā;ā before āstreamā
> >> >> /tmp/fio-conf-27676-20722-14401.c:5: error: āstreamā undeclared (first
> >> >> use in this function)
> >> >> /tmp/fio-conf-27676-20722-14401.c:5: error: āZ_OKā undeclared (first
> >> >> use in this function)
> >> >>
> >> >> This is on a SLES11 SP1 x86_64 machine, I don't know enough to see if
> >> >> I am doing something wrong, but it has worked on previous builds.
> >> >
> >> > You need the zlib devel libraries installed, configure should have told
> >> > you that. Ala:
> >> >
> >> > ERROR
> >> > ERROR: User requested feature zlib
> >> > ERROR: configure was not able to find it
> >> > ERROR
> >> > Configure failed, check config.log and/or the above output
> >> >
> >> > Not sure what that package is called on SLES, but probably zlib-devel.
> >> >
> >> > --
> >> > Jens Axboe
> >> >
> >>
> >> Thanks, this must be a new requirement as I have never needed it for
> >> previous builds.
> >
> > It is a new requirement. It's because I merged the gfio base into the
> > master branch, and gfio client/server uses compression for bigger
> > transmissions. It could be made optional, but zlib-devel should be
> > available on all platforms (I think). A decision will be made regarding
> > that before 2.0.16 (or 2.1, I think it'l be).
> >
> > --
> > Jens Axboe
> >
>
> It seems that on Sles 11 SP1 it is not included as standard, zlib is
> installed, but not zlib-devel. Doing a few google searches and it
> seems to be present in the SDK, I'll have a go at downloading that to
> see if it is part of that package.
The package should be a standard part of any develop part of a distro.
Not sure how SLES is done (I used to know :-), but I'd be surprised if
it wasn't directly available.
But sounds like it would be a good idea to turn zlib into a soft
requirement.
--
Jens Axboe
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 7:40 Unable to Configure latest build Gavin Martin
2013-04-12 8:13 ` Jens Axboe
@ 2013-04-12 10:55 ` Greg Freemyer
2013-04-12 11:16 ` Gavin Martin
1 sibling, 1 reply; 14+ messages in thread
From: Greg Freemyer @ 2013-04-12 10:55 UTC (permalink / raw)
To: Gavin Martin, fio
Gavin Martin <gavin_martin@xyratex.com> wrote:
>Hi Jens,
>
>I grabbed the 2.0.15 when it came out and it configured and compiled
>fine, but the latest one from today (12/04) displays errors when
>trying to configure.
>
>I'm not doing anything different to what I was doing for the previous
>builds. Just running ./configure, below is the output from
>config.log;
>
># FIO configure log Fri Apr 12 08:25:30 BST 2013
># Configured with: './configure'
>#
>gcc -D_GNU_SOURCE -include config-host.h -c -o
>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>/tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __ANDROID__ not
>defined
>gcc -D_GNU_SOURCE -include config-host.h -c -o
>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>gcc -D_GNU_SOURCE -include config-host.h -c -o
>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>/tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __i386__ not
>defined
>gcc -D_GNU_SOURCE -include config-host.h -c -o
>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>Compiling test case cross
>gcc -D_GNU_SOURCE -include config-host.h -o
>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>Compiling test case endian
>gcc -D_GNU_SOURCE -include config-host.h -o
>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>Compiling test case wordsize
>gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=32 -o
>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>/tmp/fio-conf-27676-20722-14401.c: In function âmainâ:
>/tmp/fio-conf-27676-20722-14401.c:5: error: size of array âtype nameâ
>is negative
>Compiling test case wordsize
>gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=64 -o
>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>Compiling test case zlib
>gcc -D_GNU_SOURCE -include config-host.h -o
>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>-lz
>/tmp/fio-conf-27676-20722-14401.c:1:18: error: zlib.h: No such file or
>directory
>/tmp/fio-conf-27676-20722-14401.c: In function âmainâ:
>/tmp/fio-conf-27676-20722-14401.c:4: error: âz_streamâ undeclared
>(first use in this function)
>/tmp/fio-conf-27676-20722-14401.c:4: error: (Each undeclared
>identifier is reported only once
>/tmp/fio-conf-27676-20722-14401.c:4: error: for each function it
>appears in.)
>/tmp/fio-conf-27676-20722-14401.c:4: error: expected â;â before
>âstreamâ
>/tmp/fio-conf-27676-20722-14401.c:5: error: âstreamâ undeclared (first
>use in this function)
>/tmp/fio-conf-27676-20722-14401.c:5: error: âZ_OKâ undeclared (first
>use in this function)
>
>This is on a SLES11 SP1 x86_64 machine, I don't know enough to see if
>I am doing something wrong, but it has worked on previous builds.
>
>Thanks,
>Gavin
Gavin,
I have commit rights to the opensuse fio package in the benchmark repo.
V2.0.15 is already there. There should be a sles rpm you can just install.
Do the fio builds from the opensuse benchmark repo not work for you?
Why are you self compiling?
Greg
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 9:46 ` Jens Axboe
@ 2013-04-12 11:13 ` Jens Axboe
2013-04-12 11:31 ` Gavin Martin
0 siblings, 1 reply; 14+ messages in thread
From: Jens Axboe @ 2013-04-12 11:13 UTC (permalink / raw)
To: Gavin Martin; +Cc: fio
On Fri, Apr 12 2013, Jens Axboe wrote:
> But sounds like it would be a good idea to turn zlib into a soft
> requirement.
The below does that, I have committed it. Please test.
diff --git a/client.c b/client.c
index eb695ff..13e84f6 100644
--- a/client.c
+++ b/client.c
@@ -14,7 +14,9 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <signal.h>
+#ifdef CONFIG_ZLIB
#include <zlib.h>
+#endif
#include "fio.h"
#include "client.h"
@@ -296,9 +298,18 @@ int fio_client_add(struct client_ops *ops, const char *hostname, void **cookie)
static void probe_client(struct fio_client *client)
{
+ struct cmd_client_probe_pdu pdu;
+ uint64_t tag;
+
dprint(FD_NET, "client: send probe\n");
- fio_net_send_simple_cmd(client->fd, FIO_NET_CMD_PROBE, 0, &client->cmd_list);
+#ifdef CONFIG_ZLIB
+ pdu.flags = __le64_to_cpu(FIO_PROBE_FLAG_ZLIB);
+#else
+ pdu.flags = 0;
+#endif
+
+ fio_net_send_cmd(client->fd, FIO_NET_CMD_PROBE, &pdu, sizeof(pdu), &tag, &client->cmd_list);
}
static int fio_client_connect_ip(struct fio_client *client)
@@ -998,7 +1009,7 @@ static void handle_eta(struct fio_client *client, struct fio_net_cmd *cmd)
static void handle_probe(struct fio_client *client, struct fio_net_cmd *cmd)
{
- struct cmd_probe_pdu *probe = (struct cmd_probe_pdu *) cmd->payload;
+ struct cmd_probe_reply_pdu *probe = (struct cmd_probe_reply_pdu *) cmd->payload;
const char *os, *arch;
char bit[16];
@@ -1011,10 +1022,11 @@ static void handle_probe(struct fio_client *client, struct fio_net_cmd *cmd)
os = "unknown";
sprintf(bit, "%d-bit", probe->bpp * 8);
+ probe->flags = le64_to_cpu(probe->flags);
- log_info("hostname=%s, be=%u, %s, os=%s, arch=%s, fio=%s\n",
+ log_info("hostname=%s, be=%u, %s, os=%s, arch=%s, fio=%s, flags=%lx\n",
probe->hostname, probe->bigendian, bit, os, arch,
- probe->fio_version);
+ probe->fio_version, (unsigned long) probe->flags);
if (!client->name)
client->name = strdup((char *) probe->hostname);
@@ -1057,19 +1069,15 @@ static void convert_text(struct fio_net_cmd *cmd)
pdu->log_usec = le64_to_cpu(pdu->log_usec);
}
-/*
- * This has been compressed on the server side, since it can be big.
- * Uncompress here.
- */
-static struct cmd_iolog_pdu *convert_iolog(struct fio_net_cmd *cmd)
+static struct cmd_iolog_pdu *convert_iolog_gz(struct fio_net_cmd *cmd,
+ struct cmd_iolog_pdu *pdu)
{
- struct cmd_iolog_pdu *pdu = (struct cmd_iolog_pdu *) cmd->payload;
+#ifdef CONFIG_ZLIB
struct cmd_iolog_pdu *ret;
- uint32_t nr_samples;
- unsigned long total;
z_stream stream;
+ uint32_t nr_samples;
+ size_t total;
void *p;
- int i;
stream.zalloc = Z_NULL;
stream.zfree = Z_NULL;
@@ -1087,10 +1095,9 @@ static struct cmd_iolog_pdu *convert_iolog(struct fio_net_cmd *cmd)
total = nr_samples * sizeof(struct io_sample);
ret = malloc(total + sizeof(*pdu));
- ret->thread_number = le32_to_cpu(pdu->thread_number);
ret->nr_samples = nr_samples;
- ret->log_type = le32_to_cpu(pdu->log_type);
- strcpy((char *) ret->name, (char *) pdu->name);
+
+ memcpy(ret, pdu, sizeof(*pdu));
p = (void *) ret + sizeof(*pdu);
@@ -1112,7 +1119,7 @@ static struct cmd_iolog_pdu *convert_iolog(struct fio_net_cmd *cmd)
log_err("fio: inflate error %d\n", err);
free(ret);
ret = NULL;
- goto out;
+ goto err;
}
this_len = this_chunk - stream.avail_out;
@@ -1120,6 +1127,46 @@ static struct cmd_iolog_pdu *convert_iolog(struct fio_net_cmd *cmd)
total -= this_len;
}
+err:
+ inflateEnd(&stream);
+ return ret;
+#else
+ return NULL;
+#endif
+}
+
+/*
+ * This has been compressed on the server side, since it can be big.
+ * Uncompress here.
+ */
+static struct cmd_iolog_pdu *convert_iolog(struct fio_net_cmd *cmd)
+{
+ struct cmd_iolog_pdu *pdu = (struct cmd_iolog_pdu *) cmd->payload;
+ struct cmd_iolog_pdu *ret;
+ int i;
+
+ /*
+ * Convert if compressed and we support it. If it's not
+ * compressed, we need not do anything.
+ */
+ if (le32_to_cpu(pdu->compressed)) {
+#ifndef CONFIG_ZLIB
+ log_err("fio: server sent compressed data by mistake\n");
+ return NULL;
+#endif
+ ret = convert_iolog_gz(cmd, pdu);
+ if (!ret) {
+ log_err("fio: failed decompressing log\n");
+ return NULL;
+ }
+ } else
+ ret = pdu;
+
+ ret->thread_number = le32_to_cpu(ret->thread_number);
+ ret->nr_samples = le32_to_cpu(ret->nr_samples);
+ ret->log_type = le32_to_cpu(ret->log_type);
+ ret->compressed = le32_to_cpu(ret->compressed);
+
for (i = 0; i < ret->nr_samples; i++) {
struct io_sample *s = &ret->samples[i];
@@ -1129,8 +1176,6 @@ static struct cmd_iolog_pdu *convert_iolog(struct fio_net_cmd *cmd)
s->bs = le32_to_cpu(s->bs);
}
-out:
- inflateEnd(&stream);
return ret;
}
diff --git a/configure b/configure
index 87d659c..7be8789 100755
--- a/configure
+++ b/configure
@@ -415,9 +415,6 @@ EOF
if compile_prog "" "-lz" "zlib" ; then
zlib=yes
LIBS="-lz $LIBS"
-else
- feature_not_found "zlib" "zlib development files"
- zlib=no
fi
echo "zlib $zlib"
@@ -1083,6 +1080,9 @@ if test "$bigendian" = "yes" ; then
else
output_sym "CONFIG_LITTLE_ENDIAN"
fi
+if test "$zlib" = "yes" ; then
+ output_sym "CONFIG_ZLIB"
+fi
if test "$libaio" = "yes" ; then
output_sym "CONFIG_LIBAIO"
fi
diff --git a/server.c b/server.c
index 8a6275d..020d1d7 100644
--- a/server.c
+++ b/server.c
@@ -16,7 +16,9 @@
#include <netdb.h>
#include <syslog.h>
#include <signal.h>
+#ifdef CONFIG_ZLIB
#include <zlib.h>
+#endif
#include "fio.h"
#include "server.h"
@@ -33,6 +35,12 @@ static char *bind_sock;
static struct sockaddr_in saddr_in;
static struct sockaddr_in6 saddr_in6;
static int use_ipv6;
+#ifdef CONFIG_ZLIB
+static unsigned int has_zlib = 1;
+#else
+static unsigned int has_zlib = 0;
+#endif
+static unsigned int use_zlib;
struct fio_fork_item {
struct flist_head list;
@@ -616,7 +624,8 @@ static int handle_jobline_cmd(struct fio_net_cmd *cmd)
static int handle_probe_cmd(struct fio_net_cmd *cmd)
{
- struct cmd_probe_pdu probe;
+ struct cmd_client_probe_pdu *pdu = (struct cmd_client_probe_pdu *) cmd->payload;
+ struct cmd_probe_reply_pdu probe;
uint64_t tag = cmd->tag;
dprint(FD_NET, "server: sending probe reply\n");
@@ -632,7 +641,17 @@ static int handle_probe_cmd(struct fio_net_cmd *cmd)
probe.arch = FIO_ARCH;
probe.bpp = sizeof(void *);
probe.cpus = __cpu_to_le32(cpus_online());
- probe.flags = 0;
+
+ /*
+ * If the client supports compression and we do too, then enable it
+ */
+ if (has_zlib && le64_to_cpu(pdu->flags) & FIO_PROBE_FLAG_ZLIB) {
+ probe.flags = __cpu_to_le64(FIO_PROBE_FLAG_ZLIB);
+ use_zlib = 1;
+ } else {
+ probe.flags = 0;
+ use_zlib = 0;
+ }
return fio_net_send_cmd(server_fd, FIO_NET_CMD_PROBE, &probe, sizeof(probe), &tag, NULL);
}
@@ -1117,26 +1136,12 @@ static int fio_send_cmd_ext_pdu(int sk, uint16_t opcode, const void *buf,
return fio_sendv_data(sk, iov, 2);
}
-int fio_send_iolog(struct thread_data *td, struct io_log *log, const char *name)
+static int fio_send_iolog_gz(struct cmd_iolog_pdu *pdu, struct io_log *log)
{
- struct cmd_iolog_pdu pdu;
+ int ret = 0;
+#ifdef CONFIG_ZLIB
z_stream stream;
void *out_pdu;
- int i, ret = 0;
-
- pdu.thread_number = cpu_to_le32(td->thread_number);
- pdu.nr_samples = __cpu_to_le32(log->nr_samples);
- pdu.log_type = cpu_to_le32(log->log_type);
- strcpy((char *) pdu.name, name);
-
- for (i = 0; i < log->nr_samples; i++) {
- struct io_sample *s = &log->log[i];
-
- s->time = cpu_to_le64(s->time);
- s->val = cpu_to_le64(s->val);
- s->ddir = cpu_to_le32(s->ddir);
- s->bs = cpu_to_le32(s->bs);
- }
/*
* Dirty - since the log is potentially huge, compress it into
@@ -1154,14 +1159,6 @@ int fio_send_iolog(struct thread_data *td, struct io_log *log, const char *name)
goto err;
}
- /*
- * Send header first, it's not compressed.
- */
- ret = fio_send_cmd_ext_pdu(server_fd, FIO_NET_CMD_IOLOG, &pdu,
- sizeof(pdu), 0, FIO_NET_CMD_F_MORE);
- if (ret)
- goto err_zlib;
-
stream.next_in = (void *) log->log;
stream.avail_in = log->nr_samples * sizeof(struct io_sample);
@@ -1191,9 +1188,48 @@ err_zlib:
deflateEnd(&stream);
err:
free(out_pdu);
+#endif
return ret;
}
+int fio_send_iolog(struct thread_data *td, struct io_log *log, const char *name)
+{
+ struct cmd_iolog_pdu pdu;
+ int i, ret = 0;
+
+ pdu.thread_number = cpu_to_le32(td->thread_number);
+ pdu.nr_samples = __cpu_to_le32(log->nr_samples);
+ pdu.log_type = cpu_to_le32(log->log_type);
+ pdu.compressed = cpu_to_le32(use_zlib);
+ strcpy((char *) pdu.name, name);
+
+ for (i = 0; i < log->nr_samples; i++) {
+ struct io_sample *s = &log->log[i];
+
+ s->time = cpu_to_le64(s->time);
+ s->val = cpu_to_le64(s->val);
+ s->ddir = cpu_to_le32(s->ddir);
+ s->bs = cpu_to_le32(s->bs);
+ }
+
+ /*
+ * Send header first, it's not compressed.
+ */
+ ret = fio_send_cmd_ext_pdu(server_fd, FIO_NET_CMD_IOLOG, &pdu,
+ sizeof(pdu), 0, FIO_NET_CMD_F_MORE);
+ if (ret)
+ return ret;
+
+ /*
+ * Now send actual log, compress if we can, otherwise just plain
+ */
+ if (use_zlib)
+ return fio_send_iolog_gz(&pdu, log);
+
+ return fio_send_cmd_ext_pdu(server_fd, FIO_NET_CMD_IOLOG, log->log,
+ log->nr_samples * sizeof(struct io_sample), 0, 0);
+}
+
void fio_server_send_add_job(struct thread_data *td)
{
struct cmd_add_job_pdu pdu;
diff --git a/server.h b/server.h
index 067cdc0..478c283 100644
--- a/server.h
+++ b/server.h
@@ -38,7 +38,7 @@ struct fio_net_cmd_reply {
};
enum {
- FIO_SERVER_VER = 21,
+ FIO_SERVER_VER = 22,
FIO_SERVER_MAX_FRAGMENT_PDU = 1024,
@@ -71,6 +71,8 @@ enum {
FIO_NET_NAME_MAX = 256,
FIO_NET_CLIENT_TIMEOUT = 5000,
+
+ FIO_PROBE_FLAG_ZLIB = 1UL << 0,
};
struct cmd_ts_pdu {
@@ -83,7 +85,11 @@ struct cmd_du_pdu {
struct disk_util_agg agg;
};
-struct cmd_probe_pdu {
+struct cmd_client_probe_pdu {
+ uint64_t flags;
+};
+
+struct cmd_probe_reply_pdu {
uint8_t hostname[64];
uint8_t bigendian;
uint8_t fio_version[32];
@@ -139,6 +145,7 @@ struct cmd_iolog_pdu {
uint32_t thread_number;
uint32_t nr_samples;
uint32_t log_type;
+ uint32_t compressed;
uint8_t name[FIO_NET_NAME_MAX];
struct io_sample samples[0];
};
--
Jens Axboe
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 10:55 ` Greg Freemyer
@ 2013-04-12 11:16 ` Gavin Martin
2013-04-14 10:01 ` Greg Freemyer
0 siblings, 1 reply; 14+ messages in thread
From: Gavin Martin @ 2013-04-12 11:16 UTC (permalink / raw)
To: Greg Freemyer; +Cc: fio
On 12 April 2013 11:55, Greg Freemyer <greg.freemyer@gmail.com> wrote:
>
>
> Gavin Martin <gavin_martin@xyratex.com> wrote:
>
>>Hi Jens,
>>
>>I grabbed the 2.0.15 when it came out and it configured and compiled
>>fine, but the latest one from today (12/04) displays errors when
>>trying to configure.
>>
>>I'm not doing anything different to what I was doing for the previous
>>builds. Just running ./configure, below is the output from
>>config.log;
>>
>># FIO configure log Fri Apr 12 08:25:30 BST 2013
>># Configured with: './configure'
>>#
>>gcc -D_GNU_SOURCE -include config-host.h -c -o
>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>>/tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __ANDROID__ not
>>defined
>>gcc -D_GNU_SOURCE -include config-host.h -c -o
>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>>gcc -D_GNU_SOURCE -include config-host.h -c -o
>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>>/tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __i386__ not
>>defined
>>gcc -D_GNU_SOURCE -include config-host.h -c -o
>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>>Compiling test case cross
>>gcc -D_GNU_SOURCE -include config-host.h -o
>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>>Compiling test case endian
>>gcc -D_GNU_SOURCE -include config-host.h -o
>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>>Compiling test case wordsize
>>gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=32 -o
>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>>/tmp/fio-conf-27676-20722-14401.c: In function �main�:
>>/tmp/fio-conf-27676-20722-14401.c:5: error: size of array �type name�
>>is negative
>>Compiling test case wordsize
>>gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=64 -o
>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>>Compiling test case zlib
>>gcc -D_GNU_SOURCE -include config-host.h -o
>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>>-lz
>>/tmp/fio-conf-27676-20722-14401.c:1:18: error: zlib.h: No such file or
>>directory
>>/tmp/fio-conf-27676-20722-14401.c: In function �main�:
>>/tmp/fio-conf-27676-20722-14401.c:4: error: �z_stream� undeclared
>>(first use in this function)
>>/tmp/fio-conf-27676-20722-14401.c:4: error: (Each undeclared
>>identifier is reported only once
>>/tmp/fio-conf-27676-20722-14401.c:4: error: for each function it
>>appears in.)
>>/tmp/fio-conf-27676-20722-14401.c:4: error: expected �;� before
>>�stream�
>>/tmp/fio-conf-27676-20722-14401.c:5: error: �stream� undeclared (first
>>use in this function)
>>/tmp/fio-conf-27676-20722-14401.c:5: error: �Z_OK� undeclared (first
>>use in this function)
>>
>>This is on a SLES11 SP1 x86_64 machine, I don't know enough to see if
>>I am doing something wrong, but it has worked on previous builds.
>>
>>Thanks,
>>Gavin
>
> Gavin,
>
> I have commit rights to the opensuse fio package in the benchmark repo.
>
> V2.0.15 is already there. There should be a sles rpm you can just install.
>
> Do the fio builds from the opensuse benchmark repo not work for you?
>
> Why are you self compiling?
>
> Greg
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Thanks Greg,
Possibly because I didn't know of any other way, thanks for that.
But also I was interested in giving gfio a try, and I don't think that
has been pre compiled by anybody yet, will probably be proven wrong
now!
Regards,
Gavin
--
------------------------------
For additional information including the registered office and the treatment of Xyratex confidential information please visit www.xyratex.com
------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 11:13 ` Jens Axboe
@ 2013-04-12 11:31 ` Gavin Martin
2013-04-12 11:34 ` Jens Axboe
0 siblings, 1 reply; 14+ messages in thread
From: Gavin Martin @ 2013-04-12 11:31 UTC (permalink / raw)
To: Jens Axboe; +Cc: fio
On 12 April 2013 12:13, Jens Axboe <axboe@kernel.dk> wrote:
> On Fri, Apr 12 2013, Jens Axboe wrote:
>> But sounds like it would be a good idea to turn zlib into a soft
>> requirement.
>
> The below does that, I have committed it. Please test.
>
>
> diff --git a/client.c b/client.c
> index eb695ff..13e84f6 100644
> --- a/client.c
> +++ b/client.c
Hi Jens,
Tested the above (with ./configure) and it does work now without the
zlib-devel package installed. Don't you need that if the
--enable-gfio argument is used? Just as a quick test I ran
./configure --enable-gfio, and it didn't fail because of not finding
zlib?
Sorry to be a pain, I'm not sure if it was just my install or if
others would have the same problem?
Thanks,
Gavin
--
------------------------------
For additional information including the registered office and the treatment of Xyratex confidential information please visit www.xyratex.com
------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 11:31 ` Gavin Martin
@ 2013-04-12 11:34 ` Jens Axboe
2013-04-12 12:17 ` Jens Axboe
0 siblings, 1 reply; 14+ messages in thread
From: Jens Axboe @ 2013-04-12 11:34 UTC (permalink / raw)
To: Gavin Martin; +Cc: fio
On Fri, Apr 12 2013, Gavin Martin wrote:
> On 12 April 2013 12:13, Jens Axboe <axboe@kernel.dk> wrote:
> > On Fri, Apr 12 2013, Jens Axboe wrote:
> >> But sounds like it would be a good idea to turn zlib into a soft
> >> requirement.
> >
> > The below does that, I have committed it. Please test.
> >
> >
> > diff --git a/client.c b/client.c
> > index eb695ff..13e84f6 100644
> > --- a/client.c
> > +++ b/client.c
>
> Hi Jens,
>
> Tested the above (with ./configure) and it does work now without the
> zlib-devel package installed. Don't you need that if the
> --enable-gfio argument is used? Just as a quick test I ran
> ./configure --enable-gfio, and it didn't fail because of not finding
> zlib?
>
> Sorry to be a pain, I'm not sure if it was just my install or if
> others would have the same problem?
gfio should still work fine. It's only use for the io log transfers for
gfio, and that will now go out without compression if both ends don't
have zlib support.
--
Jens Axboe
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 11:34 ` Jens Axboe
@ 2013-04-12 12:17 ` Jens Axboe
0 siblings, 0 replies; 14+ messages in thread
From: Jens Axboe @ 2013-04-12 12:17 UTC (permalink / raw)
To: Gavin Martin; +Cc: fio
On Fri, Apr 12 2013, Jens Axboe wrote:
> On Fri, Apr 12 2013, Gavin Martin wrote:
> > On 12 April 2013 12:13, Jens Axboe <axboe@kernel.dk> wrote:
> > > On Fri, Apr 12 2013, Jens Axboe wrote:
> > >> But sounds like it would be a good idea to turn zlib into a soft
> > >> requirement.
> > >
> > > The below does that, I have committed it. Please test.
> > >
> > >
> > > diff --git a/client.c b/client.c
> > > index eb695ff..13e84f6 100644
> > > --- a/client.c
> > > +++ b/client.c
> >
> > Hi Jens,
> >
> > Tested the above (with ./configure) and it does work now without the
> > zlib-devel package installed. Don't you need that if the
> > --enable-gfio argument is used? Just as a quick test I ran
> > ./configure --enable-gfio, and it didn't fail because of not finding
> > zlib?
> >
> > Sorry to be a pain, I'm not sure if it was just my install or if
> > others would have the same problem?
>
> gfio should still work fine. It's only use for the io log transfers for
> gfio, and that will now go out without compression if both ends don't
> have zlib support.
There was a missing one-liner in gclient.c. There's no zlib usage in
there, it's all in the generic client/server code in server.c and
client.c. It compiles and works fine with that one-liner.
http://git.kernel.dk/?p=fio.git;a=commit;h=aa79e6aa308868fef1437fd6783cdd354a6e9bdb
--
Jens Axboe
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-12 11:16 ` Gavin Martin
@ 2013-04-14 10:01 ` Greg Freemyer
2013-04-14 11:47 ` Jens Axboe
0 siblings, 1 reply; 14+ messages in thread
From: Greg Freemyer @ 2013-04-14 10:01 UTC (permalink / raw)
To: Gavin Martin; +Cc: fio
Gavin Martin <gavin_martin@xyratex.com> wrote:
>On 12 April 2013 11:55, Greg Freemyer <greg.freemyer@gmail.com> wrote:
>>
>>
>> Gavin Martin <gavin_martin@xyratex.com> wrote:
>>
>>>Hi Jens,
>>>
>>>I grabbed the 2.0.15 when it came out and it configured and compiled
>>>fine, but the latest one from today (12/04) displays errors when
>>>trying to configure.
>>>
>>>I'm not doing anything different to what I was doing for the previous
>>>builds. Just running ./configure, below is the output from
>>>config.log;
>>>
>>># FIO configure log Fri Apr 12 08:25:30 BST 2013
>>># Configured with: './configure'
>>>#
>>>gcc -D_GNU_SOURCE -include config-host.h -c -o
>>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>>>/tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __ANDROID__ not
>>>defined
>>>gcc -D_GNU_SOURCE -include config-host.h -c -o
>>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>>>gcc -D_GNU_SOURCE -include config-host.h -c -o
>>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>>>/tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __i386__ not
>>>defined
>>>gcc -D_GNU_SOURCE -include config-host.h -c -o
>>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
>>>Compiling test case cross
>>>gcc -D_GNU_SOURCE -include config-host.h -o
>>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>>>Compiling test case endian
>>>gcc -D_GNU_SOURCE -include config-host.h -o
>>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>>>Compiling test case wordsize
>>>gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=32 -o
>>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>>>/tmp/fio-conf-27676-20722-14401.c: In function âmainâ:
>>>/tmp/fio-conf-27676-20722-14401.c:5: error: size of array âtype nameâ
>>>is negative
>>>Compiling test case wordsize
>>>gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=64 -o
>>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>>>Compiling test case zlib
>>>gcc -D_GNU_SOURCE -include config-host.h -o
>>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
>>>-lz
>>>/tmp/fio-conf-27676-20722-14401.c:1:18: error: zlib.h: No such file
>or
>>>directory
>>>/tmp/fio-conf-27676-20722-14401.c: In function âmainâ:
>>>/tmp/fio-conf-27676-20722-14401.c:4: error: âz_streamâ undeclared
>>>(first use in this function)
>>>/tmp/fio-conf-27676-20722-14401.c:4: error: (Each undeclared
>>>identifier is reported only once
>>>/tmp/fio-conf-27676-20722-14401.c:4: error: for each function it
>>>appears in.)
>>>/tmp/fio-conf-27676-20722-14401.c:4: error: expected â;â before
>>>âstreamâ
>>>/tmp/fio-conf-27676-20722-14401.c:5: error: âstreamâ undeclared
>(first
>>>use in this function)
>>>/tmp/fio-conf-27676-20722-14401.c:5: error: âZ_OKâ undeclared (first
>>>use in this function)
>>>
>>>This is on a SLES11 SP1 x86_64 machine, I don't know enough to see if
>>>I am doing something wrong, but it has worked on previous builds.
>>>
>>>Thanks,
>>>Gavin
>>
>> Gavin,
>>
>> I have commit rights to the opensuse fio package in the benchmark
>repo.
>>
>> V2.0.15 is already there. There should be a sles rpm you can just
>install.
>>
>> Do the fio builds from the opensuse benchmark repo not work for you?
>>
>> Why are you self compiling?
>>
>> Greg
>> --
>> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
>Thanks Greg,
>
>Possibly because I didn't know of any other way, thanks for that.
>
>But also I was interested in giving gfio a try, and I don't think that
>has been pre compiled by anybody yet, will probably be proven wrong
>now!
>
>Regards,
>Gavin
I haven't followed the gfio possibilities.
I gather it has a extra binary that can run on the server and a client app.
From a packagers perspective, I would want the server side not to pull in any gui requirements.
Jens, what would you recommend in the way of packages:
Fio - cli only
Fio-gfio-server
Fio-gfio-client
Greg
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Unable to Configure latest build
2013-04-14 10:01 ` Greg Freemyer
@ 2013-04-14 11:47 ` Jens Axboe
0 siblings, 0 replies; 14+ messages in thread
From: Jens Axboe @ 2013-04-14 11:47 UTC (permalink / raw)
To: Greg Freemyer; +Cc: Gavin Martin, fio
On Sun, Apr 14 2013, Greg Freemyer wrote:
>
>
> Gavin Martin <gavin_martin@xyratex.com> wrote:
>
> >On 12 April 2013 11:55, Greg Freemyer <greg.freemyer@gmail.com> wrote:
> >>
> >>
> >> Gavin Martin <gavin_martin@xyratex.com> wrote:
> >>
> >>>Hi Jens,
> >>>
> >>>I grabbed the 2.0.15 when it came out and it configured and compiled
> >>>fine, but the latest one from today (12/04) displays errors when
> >>>trying to configure.
> >>>
> >>>I'm not doing anything different to what I was doing for the previous
> >>>builds. Just running ./configure, below is the output from
> >>>config.log;
> >>>
> >>># FIO configure log Fri Apr 12 08:25:30 BST 2013
> >>># Configured with: './configure'
> >>>#
> >>>gcc -D_GNU_SOURCE -include config-host.h -c -o
> >>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >>>/tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __ANDROID__ not
> >>>defined
> >>>gcc -D_GNU_SOURCE -include config-host.h -c -o
> >>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >>>gcc -D_GNU_SOURCE -include config-host.h -c -o
> >>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >>>/tmp/fio-conf-27676-20722-14401.c:2:2: error: #error __i386__ not
> >>>defined
> >>>gcc -D_GNU_SOURCE -include config-host.h -c -o
> >>>/tmp/fio-conf-9434-20722-5490.o /tmp/fio-conf-27676-20722-14401.c
> >>>Compiling test case cross
> >>>gcc -D_GNU_SOURCE -include config-host.h -o
> >>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >>>Compiling test case endian
> >>>gcc -D_GNU_SOURCE -include config-host.h -o
> >>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >>>Compiling test case wordsize
> >>>gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=32 -o
> >>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >>>/tmp/fio-conf-27676-20722-14401.c: In function �main�:
> >>>/tmp/fio-conf-27676-20722-14401.c:5: error: size of array �type name�
> >>>is negative
> >>>Compiling test case wordsize
> >>>gcc -D_GNU_SOURCE -include config-host.h -DWORDSIZE=64 -o
> >>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >>>Compiling test case zlib
> >>>gcc -D_GNU_SOURCE -include config-host.h -o
> >>>/tmp/fio-conf-3040-20722-23652.exe /tmp/fio-conf-27676-20722-14401.c
> >>>-lz
> >>>/tmp/fio-conf-27676-20722-14401.c:1:18: error: zlib.h: No such file
> >or
> >>>directory
> >>>/tmp/fio-conf-27676-20722-14401.c: In function �main�:
> >>>/tmp/fio-conf-27676-20722-14401.c:4: error: �z_stream� undeclared
> >>>(first use in this function)
> >>>/tmp/fio-conf-27676-20722-14401.c:4: error: (Each undeclared
> >>>identifier is reported only once
> >>>/tmp/fio-conf-27676-20722-14401.c:4: error: for each function it
> >>>appears in.)
> >>>/tmp/fio-conf-27676-20722-14401.c:4: error: expected �;� before
> >>>�stream�
> >>>/tmp/fio-conf-27676-20722-14401.c:5: error: �stream� undeclared
> >(first
> >>>use in this function)
> >>>/tmp/fio-conf-27676-20722-14401.c:5: error: �Z_OK� undeclared (first
> >>>use in this function)
> >>>
> >>>This is on a SLES11 SP1 x86_64 machine, I don't know enough to see if
> >>>I am doing something wrong, but it has worked on previous builds.
> >>>
> >>>Thanks,
> >>>Gavin
> >>
> >> Gavin,
> >>
> >> I have commit rights to the opensuse fio package in the benchmark
> >repo.
> >>
> >> V2.0.15 is already there. There should be a sles rpm you can just
> >install.
> >>
> >> Do the fio builds from the opensuse benchmark repo not work for you?
> >>
> >> Why are you self compiling?
> >>
> >> Greg
> >> --
> >> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
> >
> >Thanks Greg,
> >
> >Possibly because I didn't know of any other way, thanks for that.
> >
> >But also I was interested in giving gfio a try, and I don't think that
> >has been pre compiled by anybody yet, will probably be proven wrong
> >now!
> >
> >Regards,
> >Gavin
>
> I haven't followed the gfio possibilities.
>
> I gather it has a extra binary that can run on the server and a client app.
>
> From a packagers perspective, I would want the server side not to pull in any gui requirements.
I think that is the right way to do it.
> Jens, what would you recommend in the way of packages:
> Fio - cli only
> Fio-gfio-server
> Fio-gfio-client
I think you only need two packages - fio and gfio. Fio already supports
client/server through the cli, that part was done before gfio. gfio just
connects to the same server as the cli frontend. To run gfio, you need
gfio as the client and fio --server as the backend. So just the two
packages would make the most sense, and only the gfio package would have
gui dependencies (and depend on fio, too).
--
Jens Axboe
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2013-04-14 11:47 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-12 7:40 Unable to Configure latest build Gavin Martin
2013-04-12 8:13 ` Jens Axboe
2013-04-12 8:27 ` Gavin Martin
2013-04-12 8:42 ` Jens Axboe
2013-04-12 9:31 ` Gavin Martin
2013-04-12 9:46 ` Jens Axboe
2013-04-12 11:13 ` Jens Axboe
2013-04-12 11:31 ` Gavin Martin
2013-04-12 11:34 ` Jens Axboe
2013-04-12 12:17 ` Jens Axboe
2013-04-12 10:55 ` Greg Freemyer
2013-04-12 11:16 ` Gavin Martin
2013-04-14 10:01 ` Greg Freemyer
2013-04-14 11:47 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox