From: Jens Axboe <axboe@kernel.dk>
To: Aaron Carroll <aaronc@cse.unsw.edu.au>
Cc: David N <android.wm.edu@gmail.com>, fio@vger.kernel.org
Subject: Re: problem FIO compiling for Android
Date: Tue, 12 Feb 2013 09:57:40 +0100 [thread overview]
Message-ID: <20130212085740.GA21269@kernel.dk> (raw)
In-Reply-To: <5119A093.2030409@cse.unsw.edu.au>
On Tue, Feb 12 2013, Aaron Carroll wrote:
> On 12/02/13 4:25 AM, Jens Axboe wrote:
> > On Mon, Feb 11 2013, David N wrote:
> >> Hello Everyone,
> >>
> >> I've been trying to compile FIO for Android but keep getting error
> >> bellow. Can anybody give me any guidance please?
> >>
> >> I very much appreciate!
> >>
> >> David
> >>
> >>
> >> david@david-HP-ubuntu:~/development/android/external/fio-2.0.13$ make
> >> UNAME=Android CROSS_COMPILE=$CCOMPILER
> >> CC init.o
> >> init.c: In function ‘free_shm’:
> >> init.c:224:18: error: storage size of ‘sbuf’ isn’t known
> >> init.c:233:3: warning: implicit declaration of function ‘shmdt’
> >> [-Wimplicit-function-declaration]
> >> init.c:234:3: warning: implicit declaration of function ‘shmctl’
> >> [-Wimplicit-function-declaration]
> >> init.c:224:18: warning: unused variable ‘sbuf’ [-Wunused-variable]
> >> init.c: In function ‘setup_thread_area’:
> >> init.c:263:3: warning: implicit declaration of function ‘shmget’
> >> [-Wimplicit-function-declaration]
> >> init.c:277:2: warning: implicit declaration of function ‘shmat’
> >> [-Wimplicit-function-declaration]
> >> init.c:277:10: warning: assignment makes pointer from integer without
> >> a cast [enabled by default]
> >> make: *** [init.o] Error 1
> >
> > Lets CC in Aaron, who added the port.
>
> The switch to configure broke Android. I got a very minimal build
> working with the attached patch and:
>
> make
> cross_prefix=~/dev/android-toolchain-r8c/bin/arm-linux-androideabi-
> UNAME=Android
I thought it might have broken it, Android is pretty much the only
platform I cannot build/test on myself.
Will apply your patch.
--
Jens Axboe
prev parent reply other threads:[~2013-02-12 8:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CACTzACVkfEmHrCTJExxOpPqD7tZLMbmW7n3pJza-g87sZaaK1g@mail.gmail.com>
2013-02-11 16:13 ` problem FIO compiling for Android David N
2013-02-11 17:25 ` Jens Axboe
2013-02-12 1:53 ` Aaron Carroll
2013-02-12 5:39 ` David N
2013-02-12 5:58 ` Aaron Carroll
2013-02-12 6:20 ` David N
2013-02-12 6:27 ` Aaron Carroll
2013-02-12 6:34 ` David N
2013-02-12 6:43 ` Aaron Carroll
2013-02-12 6:55 ` David N
2013-02-13 1:12 ` Aaron Carroll
2013-02-13 5:13 ` David N
2013-02-12 8:57 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130212085740.GA21269@kernel.dk \
--to=axboe@kernel.dk \
--cc=aaronc@cse.unsw.edu.au \
--cc=android.wm.edu@gmail.com \
--cc=fio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox