Return-Path: Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NFjaX-0002aS-To for ltp-list@lists.sourceforge.net; Wed, 02 Dec 2009 07:25:25 +0000 Received: from smtp-gate3.ryobi.co.jp ([210.163.224.134]) by sfi-mx-2.v28.ch3.sourceforge.com with smtp (Exim 4.69) id 1NFjaP-0002eM-1y for ltp-list@lists.sourceforge.net; Wed, 02 Dec 2009 07:25:25 +0000 From: "Mitani" References: <000001ca7245$b829af90$287d0eb0$@co.jp> <364299f40912010218h39e6f89eo36e49bfe9e083a23@mail.gmail.com> In-Reply-To: <364299f40912010218h39e6f89eo36e49bfe9e083a23@mail.gmail.com> Date: Wed, 2 Dec 2009 16:25:02 +0900 Message-ID: <000001ca7320$90365cf0$b0a316d0$@co.jp> MIME-Version: 1.0 Content-Language: ja Subject: Re: [LTP] build failure with ltp-2009-12-01 cvs List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ltp-list-bounces@lists.sourceforge.net To: 'Garrett Cooper' Cc: ltp-list@lists.sourceforge.net I ran "runltp" with "ltp-2009-12-02.tar.gz" version in system as follows. (1) kernel 2.6.18-164.el5 - architecture x86 = (2) kernel 2.6.18-164.el5 - architecture x86_64 But same failure occured again: ------------ make[4]: Entering directory `/home/LTP/ltp-2009-12-02/testcases/kernel/containers/libclone' gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -I/home/LTP/ltp-2009-12-02/testcases/k ernel/include -I../../../../include -I../../../../include -c -o libclone.o libclone.c In file included from libclone.h:31, from libclone.c:17: /home/LTP/ltp-2009-12-02/testcases/kernel/include/linux_syscall_numbers.h:24 : error: weak declaration of 'syscall_cleanup_stub' must be public make[4]: *** [libclone.o] Error 1 make[4]: Leaving directory `/home/LTP/ltp-2009-12-02/testcases/kernel/containers/libclone' ------------ Regars-- -Tomonori Mitani -----Original Message----- From: Garrett Cooper [mailto:yanegomi@gmail.com] = Sent: Tuesday, December 01, 2009 7:18 PM To: Mitani Cc: ltp-list@lists.sourceforge.net Subject: Re: [LTP] build failure with ltp-2009-12-01 cvs On Mon, Nov 30, 2009 at 9:18 PM, Mitani wrote: > Hi, > > I tried to "make" with "ltp-2009-12-01.tar.gz" version. > I tried it in systems as follows: > =A0(1) kernel 2.6.18-164.el5 - architecture x86 > =A0(2) kernel 2.6.18-164.el5 - architecture x86_64 > > But both failed with following message: > > ------------ > [...] > make[3]: Entering directory > `/home/LTP/ltp-2009-12-01/testcases/kernel/containers' > make -C libclone -f > "/home/LTP/ltp-2009-12-01/testcases/kernel/containers/libclone/Makefil > e" all > make[4]: Entering directory > `/home/LTP/ltp-2009-12-01/testcases/kernel/containers/libclone > ' > gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall > -I/home/LTP/ltp-2009-12-01/testcases/k > ernel/include -I../../../../include -I../../../../include =A0-c -o libclone.o > libclone.c > In file included from libclone.h:31, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from libclone.c:17: > /home/LTP/ltp-2009-12-01/testcases/kernel/include/linux_syscall_numbers.h:24 > : error: weak > declaration of 'syscall_cleanup_stub' must be public > make[4]: *** [libclone.o] Error 1 > make[4]: Leaving directory > `/home/LTP/ltp-2009-12-01/testcases/kernel/containers/libclone' > make[3]: *** [libclone/libclone.a] Error 2 > make[3]: Leaving directory > `/home/LTP/ltp-2009-12-01/testcases/kernel/containers' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/LTP/ltp-2009-12-01/testcases/kernel' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/home/LTP/ltp-2009-12-01/testcases' > make: *** [testcases-all] Error 2 > ------------ > > > I tried to avoid this failure by revising "${LTPROOT}/testcases > /kernel/include/linux_syscall_numbers.h". > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- linux_syscall_numbers.h.org 2009-12-01 09:52:25.000000000 +0900 > +++ linux_syscall_numbers.h =A0 =A0 2009-12-01 11:37:10.000000000 +0900 > @@ -21,7 +21,7 @@ > =A0* result in compile-time errors and folks get the granularity they des= ire > =A0* when writing testcases. > =A0*/ > -static void syscall_cleanup_stub(void) __attribute__ ((weakref > ("cleanup"))); > +void syscall_cleanup_stub(void) __attribute__ ((weakref ("cleanup"))); > > =A0static void cleanup(void); > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > After applying this patch, "make" and "make install" succeeded in > both (1) and (2) systems. > > > Can I get some advice whether my revise above is right? It may work for your version of binutils, but it doesn't work for mine: make -C libclone -f "/scratch/ltp-dev2/ltp/testcases/kernel/containers/libclone/Makefile" all make[4]: Entering directory `/scratch/ltp-dev2/ltp/testcases/kernel/containers/libclone' gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -I/scratch/ltp-dev2/ltp/testcases/kernel/include -I../../../../include -I../../../../include -c -o libclone.o libclone.c In file included from libclone.h:31, from libclone.c:17: /scratch/ltp-dev2/ltp/testcases/kernel/include/linux_syscall_numbers.h:24: error: weakref 'syscall_cleanup_stub' must have static linkage make[4]: *** [libclone.o] Error 1 make[4]: Leaving directory `/scratch/ltp-dev2/ltp/testcases/kernel/containers/libclone' make[3]: *** [libclone/libclone.a] Error 2 make[3]: Leaving directory `/scratch/ltp-dev2/ltp/testcases/kernel/containers' make[2]: *** [all] Error 2 make[2]: Leaving directory `/scratch/ltp-dev2/ltp/testcases/kernel' make[1]: *** [all] Error 2 make[1]: Leaving directory `/scratch/ltp-dev2/ltp/testcases' make: *** [testcases-all] Error 2 Please try the latest from CVS to see whether or not the new hidden refs fixes your issue. Thanks, -Garrett ---------------------------------------------------------------------------= --- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. = Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list