public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] LTP: Compilation error for powerpc
@ 2013-05-27 11:32 Bhushan Bharat-R65777
  2013-05-27 16:39 ` chrubis
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bhushan Bharat-R65777 @ 2013-05-27 11:32 UTC (permalink / raw)
  To: ltp-list@lists.sourceforge.net

Hi All,

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

4)
cd include/mk
cp generic_leaf_target.inc generic_leaf_target.mk cp generic_trunk_target.inc generic_trunk_target.mk cd ../../

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

-------------------------
 
Thanks
-Bharat


------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] LTP: Compilation error for powerpc
  2013-05-27 11:32 [LTP] LTP: Compilation error for powerpc Bhushan Bharat-R65777
@ 2013-05-27 16:39 ` chrubis
       [not found]   ` <6A3DF150A5B70D4F9B66A25E3F7C888D070438D1@039-SN2MPN1-013.039d.mgd.msft.net>
  2013-05-27 18:33 ` Jan Stancek
  2013-05-28  0:50 ` Mike Frysinger
  2 siblings, 1 reply; 7+ messages in thread
From: chrubis @ 2013-05-27 16:39 UTC (permalink / raw)
  To: Bhushan Bharat-R65777; +Cc: ltp-list@lists.sourceforge.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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] LTP: Compilation error for powerpc
       [not found]   ` <6A3DF150A5B70D4F9B66A25E3F7C888D070438D1@039-SN2MPN1-013.039d.mgd.msft.net>
@ 2013-05-27 17:14     ` chrubis
  0 siblings, 0 replies; 7+ messages in thread
From: chrubis @ 2013-05-27 17:14 UTC (permalink / raw)
  To: Bhushan Bharat-R65777; +Cc: ltp-list@lists.sourceforge.net

Hi!
> > > 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.
> 
> Does someone know where are the required .mk files? I did no found the .mk files so for experiment I converted .inc to .mk. 
> 

Required mk files? Which ones? You should not touch the mk files that
are shipped with the project.

-- 
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] LTP: Compilation error for powerpc
  2013-05-27 11:32 [LTP] LTP: Compilation error for powerpc Bhushan Bharat-R65777
  2013-05-27 16:39 ` 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
  2 siblings, 2 replies; 7+ messages in thread
From: Jan Stancek @ 2013-05-27 18:33 UTC (permalink / raw)
  To: Bhushan Bharat-R65777; +Cc: ltp-list





----- Original Message -----
> From: "Bhushan Bharat-R65777" <R65777@freescale.com>
> To: ltp-list@lists.sourceforge.net
> Sent: Monday, 27 May, 2013 1:32:32 PM
> Subject: [LTP] LTP: Compilation error for powerpc
> 
> Hi All,
> 
> 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:

I (or rather automated testing) compile it directly on powerpc as:
# make autotools
# ./configure
# make

Base on that gcc path, I'm guessing you are cross-compiling it on x86_64.
I tried that just now and built OK:
# make autotools
# env CC=/opt/crosstool/gcc-4.4.7-20120601-glibc-2.12-2-gc4ccff1/powerpc64-unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-gcc \
      LD=/opt/crosstool/gcc-4.4.7-20120601-glibc-2.12-2-gc4ccff1/powerpc64-unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-ld \
      STRIP=/opt/crosstool/gcc-4.4.7-20120601-glibc-2.12-2-gc4ccff1/powerpc64-unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-strip \
      ./configure --host=ppc64
...
# file testcases/kernel/syscalls/open/open01
testcases/kernel/syscalls/open/open01: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped

Regards,
Jan

> 
> 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
> 
> 4)
> cd include/mk
> cp generic_leaf_target.inc generic_leaf_target.mk cp generic_trunk_target.inc
> generic_trunk_target.mk cd ../../
> 
> 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
> 
> -------------------------
>  
> Thanks
> -Bharat
> 
> 
> ------------------------------------------------------------------------------
> 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
> 

------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] LTP: Compilation error for powerpc
  2013-05-27 11:32 [LTP] LTP: Compilation error for powerpc Bhushan Bharat-R65777
  2013-05-27 16:39 ` chrubis
  2013-05-27 18:33 ` Jan Stancek
@ 2013-05-28  0:50 ` Mike Frysinger
  2 siblings, 0 replies; 7+ messages in thread
From: Mike Frysinger @ 2013-05-28  0:50 UTC (permalink / raw)
  To: ltp-list; +Cc: Bhushan Bharat-R65777


[-- Attachment #1.1: Type: Text/Plain, Size: 458 bytes --]

On Monday 27 May 2013 07:32:32 Bhushan Bharat-R65777 wrote:
> 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:

as mentioned by other people, manual file management is an expert/advanced 
technique.  if you don't hack on LTP, then don't do it that way.  use the 
autotool step instead and run configure with the normal settings.
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 421 bytes --]

------------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] LTP: Compilation error for powerpc
  2013-05-27 18:33 ` Jan Stancek
@ 2013-05-28  3:16   ` Bhushan Bharat-R65777
  2013-05-28  3:31   ` Bhushan Bharat-R65777
  1 sibling, 0 replies; 7+ messages in thread
From: Bhushan Bharat-R65777 @ 2013-05-28  3:16 UTC (permalink / raw)
  To: Jan Stancek; +Cc: ltp-list@lists.sourceforge.net



> -----Original Message-----
> From: Jan Stancek [mailto:jstancek@redhat.com]
> Sent: Tuesday, May 28, 2013 12:03 AM
> To: Bhushan Bharat-R65777
> Cc: ltp-list@lists.sourceforge.net
> Subject: Re: [LTP] LTP: Compilation error for powerpc
> 
> 
> 
> 
> 
> ----- Original Message -----
> > From: "Bhushan Bharat-R65777" <R65777@freescale.com>
> > To: ltp-list@lists.sourceforge.net
> > Sent: Monday, 27 May, 2013 1:32:32 PM
> > Subject: [LTP] LTP: Compilation error for powerpc
> >
> > Hi All,
> >
> > 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:
> 
> I (or rather automated testing) compile it directly on powerpc as:
> # make autotools

I get bellow error with "make autotools"

r65777@perfidc-01:~/LTP/try$ make autotools 
sed -n '1{s:LTP-:m4_define([LTP_VERSION],[:;s:$:]):;p;q}' ChangeLog > m4/ltp-version.m4
aclocal -I m4
/usr/share/aclocal/snacc.m4:24: warning: underquoted definition of AM_PATH_SNACC
/usr/share/aclocal/snacc.m4:24:   run info '(automake)Extending aclocal'
/usr/share/aclocal/snacc.m4:24:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
autoconf
autoheader
make: *** No rule to make target `m4/Makefile.am', needed by `m4/Makefile.in'.  Stop.
r65777@perfidc-01:~/LTP/try$ cd m4/

Thanks
-Bharat  

> # ./configure
> # make
> 
> Base on that gcc path, I'm guessing you are cross-compiling it on x86_64.
> I tried that just now and built OK:
> # make autotools
> # env CC=/opt/crosstool/gcc-4.4.7-20120601-glibc-2.12-2-gc4ccff1/powerpc64-
> unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-gcc \
>       LD=/opt/crosstool/gcc-4.4.7-20120601-glibc-2.12-2-gc4ccff1/powerpc64-
> unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-ld \
>       STRIP=/opt/crosstool/gcc-4.4.7-20120601-glibc-2.12-2-gc4ccff1/powerpc64-
> unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-strip \
>       ./configure --host=ppc64
> ...
> # file testcases/kernel/syscalls/open/open01
> testcases/kernel/syscalls/open/open01: ELF 64-bit MSB executable, 64-bit PowerPC
> or cisco 7500, version 1 (SYSV), dynamically linked (uses shared libs), for
> GNU/Linux 2.6.4, not stripped
> 
> Regards,
> Jan
> 
> >
> > 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/b
> > in/powerpc-linux-gnu-ar
> > +CC                      :=
> > /opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/b
> > in/powerpc-linux-gnu-gcc
> >
> > 3)
> > cp include/config.h.default include/config.h
> >
> > 4)
> > cd include/mk
> > cp generic_leaf_target.inc generic_leaf_target.mk cp
> > generic_trunk_target.inc generic_trunk_target.mk cd ../../
> >
> > 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/b
> > in/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
> >
> > -------------------------
> >
> > Thanks
> > -Bharat
> >
> >
> > ----------------------------------------------------------------------
> > -------- 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
> >

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] LTP: Compilation error for powerpc
  2013-05-27 18:33 ` Jan Stancek
  2013-05-28  3:16   ` Bhushan Bharat-R65777
@ 2013-05-28  3:31   ` Bhushan Bharat-R65777
  1 sibling, 0 replies; 7+ messages in thread
From: Bhushan Bharat-R65777 @ 2013-05-28  3:31 UTC (permalink / raw)
  To: Bhushan Bharat-R65777, Jan Stancek; +Cc: ltp-list@lists.sourceforge.net



> -----Original Message-----
> From: Bhushan Bharat-R65777
> Sent: Tuesday, May 28, 2013 8:47 AM
> To: 'Jan Stancek'
> Cc: ltp-list@lists.sourceforge.net
> Subject: RE: [LTP] LTP: Compilation error for powerpc
> 
> 
> 
> > -----Original Message-----
> > From: Jan Stancek [mailto:jstancek@redhat.com]
> > Sent: Tuesday, May 28, 2013 12:03 AM
> > To: Bhushan Bharat-R65777
> > Cc: ltp-list@lists.sourceforge.net
> > Subject: Re: [LTP] LTP: Compilation error for powerpc
> >
> >
> >
> >
> >
> > ----- Original Message -----
> > > From: "Bhushan Bharat-R65777" <R65777@freescale.com>
> > > To: ltp-list@lists.sourceforge.net
> > > Sent: Monday, 27 May, 2013 1:32:32 PM
> > > Subject: [LTP] LTP: Compilation error for powerpc
> > >
> > > Hi All,
> > >
> > > 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:
> >
> > I (or rather automated testing) compile it directly on powerpc as:
> > # make autotools
> 
> I get bellow error with "make autotools"
> 
> r65777@perfidc-01:~/LTP/try$ make autotools sed -n '1{s:LTP-
> :m4_define([LTP_VERSION],[:;s:$:]):;p;q}' ChangeLog > m4/ltp-version.m4 aclocal
> -I m4
> /usr/share/aclocal/snacc.m4:24: warning: underquoted definition of AM_PATH_SNACC
> /usr/share/aclocal/snacc.m4:24:   run info '(automake)Extending aclocal'
> /usr/share/aclocal/snacc.m4:24:   or see
> http://sources.redhat.com/automake/automake.html#Extending-aclocal
> autoconf
> autoheader
> make: *** No rule to make target `m4/Makefile.am', needed by `m4/Makefile.in'.
> Stop.
> r65777@perfidc-01:~/LTP/try$ cd m4/

I did a fresh clone and followed the steps mentioned here. Now it is building nicely now.

Thank a lot
-Bharat

> 
> Thanks
> -Bharat
> 
> > # ./configure
> > # make
> >
> > Base on that gcc path, I'm guessing you are cross-compiling it on x86_64.
> > I tried that just now and built OK:
> > # make autotools
> > # env
> > CC=/opt/crosstool/gcc-4.4.7-20120601-glibc-2.12-2-gc4ccff1/powerpc64-
> > unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-gcc \
> >
> > LD=/opt/crosstool/gcc-4.4.7-20120601-glibc-2.12-2-gc4ccff1/powerpc64-
> > unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-ld \
> >
> > STRIP=/opt/crosstool/gcc-4.4.7-20120601-glibc-2.12-2-gc4ccff1/powerpc6
> > 4- unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-strip \
> >       ./configure --host=ppc64
> > ...
> > # file testcases/kernel/syscalls/open/open01
> > testcases/kernel/syscalls/open/open01: ELF 64-bit MSB executable,
> > 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked
> > (uses shared libs), for GNU/Linux 2.6.4, not stripped
> >
> > Regards,
> > Jan
> >
> > >
> > > 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
> > > /b
> > > in/powerpc-linux-gnu-ar
> > > +CC                      :=
> > > /opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu
> > > /b
> > > in/powerpc-linux-gnu-gcc
> > >
> > > 3)
> > > cp include/config.h.default include/config.h
> > >
> > > 4)
> > > cd include/mk
> > > cp generic_leaf_target.inc generic_leaf_target.mk cp
> > > generic_trunk_target.inc generic_trunk_target.mk cd ../../
> > >
> > > 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
> > > /b in/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
> > >
> > > -------------------------
> > >
> > > Thanks
> > > -Bharat
> > >
> > >
> > > --------------------------------------------------------------------
> > > --
> > > -------- 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
> > >

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-05-28  3:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-27 11:32 [LTP] LTP: Compilation error for powerpc Bhushan Bharat-R65777
2013-05-27 16:39 ` chrubis
     [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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox