build failure with ltp-2009-12-01 cvs
Hi,
I tried to "make" with "ltp-2009-12-01.tar.gz" version. I tried it in systems as follows:
(1) kernel 2.6.18-164.el5 - architecture x86
(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 -c -o libclone.o libclone.c
In file included from libclone.h:31,
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".
============
linux_syscall_numbers.h 2009-12-01 11:37:10.000000000 +0900 renamed from linux_syscall_numbers.h.org 2009-12-01 09:52:25.000000000 +0900 +0 -1
@@ -21,7 +21,7 @@ * result in compile-time errors and folks get the granularity they desire * when writing testcases. */ -static void syscall_cleanup_stub(void) __attribute__ ((weakref
("cleanup")));
+void syscall_cleanup_stub(void) __attribute__ ((weakref ("cleanup")));
static void cleanup(void);
============
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?
Thank you--
-Tomonori Mitani
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 58 lines · Mitani
Hi,
I tried to "make" with "ltp-2009-12-01.tar.gz" version. I tried it in systems as follows:
(1) kernel 2.6.18-164.el5 - architecture x86
(2) kernel 2.6.18-164.el5 - architecturex86_64But 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/Makefile" 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 -c -o libclone.olibclone.c
In file included from libclone.h:31,
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".
============
linux_syscall_numbers.h 2009-12-01 11:37:10.000000000 +0900 renamed from linux_syscall_numbers.h.org 2009-12-01 09:52:25.000000000 +0900 +1
-1@@ -21,7 +21,7 @@ * result in compile-time errors and folks get the granularity they desire * when writing testcases. */ -static void syscall_cleanup_stub(void) __attribute__ ((weakref ("cleanup"))); +void syscall_cleanup_stub(void) __attribute__ ((weakref ("cleanup"))); static void cleanup(void);
Quoted 7 lines
============
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
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:[email protected]]
Sent: Tuesday, December 01, 2009 7:18 PM
To: Mitani
Cc: [email protected]
Subject: Re: [LTP] build failure with ltp-2009-12-01 cvs
Quoted 9 lines · Mitani
Hi,
I tried to "make" with "ltp-2009-12-01.tar.gz" version. I tried it in systems as follows:
(1) kernel 2.6.18-164.el5 - architecture x86
(2) kernel 2.6.18-164.el5 - architecturex86_64But both failed with following message:
Quoted 13 lines
------------
[...]
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/Makefile" 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 -c -o
libclone.o
Quoted 4 lines
libclone.c
In file included from libclone.h:31,
from libclone.c:17:
/home/LTP/ltp-2009-12-01/testcases/kernel/include/linux_syscall_numbers.h:24
Quoted 32 lines
: 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".
============
linux_syscall_numbers.h 2009-12-01 11:37:10.000000000 +0900 renamed from linux_syscall_numbers.h.org 2009-12-01 09:52:25.000000000 +0900 +1
-1@@ -21,7 +21,7 @@ * result in compile-time errors and folks get the granularity they desire * when writing testcases. */ -static void syscall_cleanup_stub(void) __attribute__ ((weakref ("cleanup"))); +void syscall_cleanup_stub(void) __attribute__ ((weakref ("cleanup"))); static void cleanup(void);
Quoted 7 lines
============
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 132 lines · Mitani
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 - architecturex86_64But 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.olibclone.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:[email protected]]
Sent: Tuesday, December 01, 2009 7:18 PM
To: Mitani
Cc: [email protected]
Subject: Re: [LTP] build failure with ltp-2009-12-01 cvsQuoted 9 lines · Mitani
Hi,
I tried to "make" with "ltp-2009-12-01.tar.gz" version. I tried it in systems as follows:
(1) kernel 2.6.18-164.el5 - architecture x86
(2) kernel 2.6.18-164.el5 - architecturex86_64But both failed with following message:
Quoted 13 lines
------------
[...]
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/Makefile" 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 -c -olibclone.o
Quoted 4 lines
libclone.c
In file included from libclone.h:31,
from libclone.c:17:
/home/LTP/ltp-2009-12-01/testcases/kernel/include/linux_syscall_numbers.h:24Quoted 32 lines
: 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".
============
linux_syscall_numbers.h 2009-12-01 11:37:10.000000000 +0900 renamed from linux_syscall_numbers.h.org 2009-12-01 09:52:25.000000000 +0900 +1
-1@@ -21,7 +21,7 @@ * result in compile-time errors and folks get the granularity they desire * when writing testcases. */ -static void syscall_cleanup_stub(void) __attribute__ ((weakref ("cleanup"))); +void syscall_cleanup_stub(void) __attribute__ ((weakref ("cleanup"))); static void cleanup(void);Quoted 7 lines
============
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(quoted diff) +0
-2-I/scratch/ltp-dev2/ltp/testcases/kernel/include -I../../../../include -I../../../../include -c -o libclone.o libclone.cIn 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
Quoted 2 lines
Please try the latest from CVS to see whether or not the new hidden refs fixes your issue.
I grabbed Fedora Core 3 so I'll try validating and fixing this
issue on both newer and older versions of binutils by tonight. 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list