From: chrubis@suse.cz
To: Bhushan Bharat-R65777 <R65777@freescale.com>
Cc: "ltp-list@lists.sourceforge.net" <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] LTP: Compilation error for powerpc
Date: Mon, 27 May 2013 18:39:33 +0200 [thread overview]
Message-ID: <20130527163932.GA32583@rei> (raw)
In-Reply-To: <6A3DF150A5B70D4F9B66A25E3F7C888D070433E5@039-SN2MPN1-013.039d.mgd.msft.net>
Hi!
> There are a number of good test cases which we run to test various
> features ( like ptrace/memory etc). I tried below steps and failed to
> compile successfully:
>
> 1)
> cp include/mk/config.mk.default include/mk/config.mk
>
> 2)
> vi include/mk/config.mk
> -AR := ar
> -CC := gcc
> +AR := /opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-ar
> +CC := /opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc
>
> 3)
> cp include/config.h.default include/config.h
Hmm you stil need a to set path to the headers and libraries. Unlike
kernel LTP needs libc headers and libraries to build.
There are some configure parameters for that but I do not know how to
set these. Perhaps somebody on the list knows better.
> 4)
> cd include/mk
> cp generic_leaf_target.inc generic_leaf_target.mk cp generic_trunk_target.inc generic_trunk_target.mk cd ../../
This is certainly wrong thing to do. The inc files are included from the
mk files.
> 5)
> Make
>
> Getting error :
>
> make[4]: Entering directory `/home/r65777/LTP/try/testcases/kernel/containers/libclone'
> /opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -I/home/r65777/LTP/try/testcases/kernel/include -c -o libclone.o libclone.c In file included from libclone.h:31:0,
> from libclone.c:17:
> /home/r65777/LTP/try/testcases/kernel/include/linux_syscall_numbers.h:18:21: fatal error: cleanup.c: No such file or directory compilation terminated.
> make[4]: *** [libclone.o] Error 1
> make[4]: Leaving directory `/home/r65777/LTP/try/testcases/kernel/containers/libclone'
> make[3]: *** [libclone/libclone.a] Error 2
> make[3]: Leaving directory `/home/r65777/LTP/try/testcases/kernel/containers'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/r65777/LTP/try/testcases/kernel'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/r65777/LTP/try/testcases'
> make: *** [testcases-all] Error 2
That may be caused by the damage done by copying the inc files over the
mk files or anything else.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2013-05-27 16:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-27 11:32 [LTP] LTP: Compilation error for powerpc Bhushan Bharat-R65777
2013-05-27 16:39 ` chrubis [this message]
[not found] ` <6A3DF150A5B70D4F9B66A25E3F7C888D070438D1@039-SN2MPN1-013.039d.mgd.msft.net>
2013-05-27 17:14 ` chrubis
2013-05-27 18:33 ` Jan Stancek
2013-05-28 3:16 ` Bhushan Bharat-R65777
2013-05-28 3:31 ` Bhushan Bharat-R65777
2013-05-28 0:50 ` Mike Frysinger
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=20130527163932.GA32583@rei \
--to=chrubis@suse.cz \
--cc=R65777@freescale.com \
--cc=ltp-list@lists.sourceforge.net \
/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