bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: struct rusage redefinition issues on ppc - gnu time-1.7


From: Aijaz Baig
Subject: Re: struct rusage redefinition issues on ppc - gnu time-1.7
Date: Thu, 27 Jun 2013 13:01:04 +0530

Hi Bob and other folks reading this.

WindRiver is a prominent embedded linux vendor and the version we are 
using aka 4 is based on the Linux 2.6.34+ kernel and gcc 4.4.1/eglibc 
2.11/gdb 7 toolchains. 

I've tried your suggestion but it still does not work. Heres the build log 
for the same:

powerpc-wrs-linux-gnu-gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 
-DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1  -I. -I. 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
time.c
powerpc-wrs-linux-gnu-gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 
-DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1  -I. -I. 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
getopt.c
powerpc-wrs-linux-gnu-gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 
-DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1  -I. -I. 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
getopt1.c
powerpc-wrs-linux-gnu-gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 
-DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1  -I. -I. 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
error.c
powerpc-wrs-linux-gnu-gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 
-DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1  -I. -I. 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
resuse.c
rm -f t-version.c
echo 'const char *version_string = "'GNU time 1.7'";' \
> t-version.c
if cmp -s version.c t-version.c; then   \
  rm t-version.c;                       \
else                                    \
  mv t-version.c version.c;             \
fi
echo timestamp > stamp-v
powerpc-wrs-linux-gnu-gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 
-DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1  -I. -I. 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
--sysroot=/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot 
-I/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/include 
version.c
powerpc-wrs-linux-gnu-gcc 
-L/tcs_space/Aijaz/export/sysroot/fsl_p4080-glibc_cgl/sysroot/usr/lib -o 
time time.o getopt.o getopt1.o error.o resuse.o version.o
/opt/WindRiver_4_3/wrlinux-4/layers/updates/RCPL-4.3-WRL.0015/wrll-toolchain-4.4a-418/powerpc/toolchain/x86-linux2/bin/../lib/gcc/powerpc-wrs-linux-gnu/4.4.1/../../../../powerpc-wrs-linux-gnu/bin/ld:
 
crt1.o: No such file: No such file or directory

For your information, I had first configured the system with --host 
pointing to my CROSS_COMPILE variable which is powerpc-wrs-linux-gnu.

Regards,
Aijaz Baig
Tata Consultancy Services
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




reply via email to

[Prev in Thread] Current Thread [Next in Thread]