This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Errors with make check of glibc v2.20 while cross compiling for powerpc
- From: Ramana <ramana dot venkat83 at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 31 Mar 2015 12:44:10 +0530
- Subject: Errors with make check of glibc v2.20 while cross compiling for powerpc
- Authentication-results: sourceware.org; auth=none
Hi,
I am cross compiling the glibc v2.20 for powerpc and with make check,
invoked from the build machine, I am getting the following kind of
errors (there are several of them in total).
touch: cannot touch
`/proj/ppc/obj_glibc_0_scratch/localedata/de_DE.ISO-8859-1/LC_CTYPE':
No such file or directory
/bin/sh: line 3:
/proj/ppc/obj_glibc_0_scratch/localedata/de_DE.ISO-8859-1/LC_CTYPE.test-result:
No such file or directory
make[2]: *** [/proj/ppc/obj_glibc_0_scratch/localedata/de_DE.ISO-8859-1/LC_CTYPE]
Error 1
/usr/bin/install -c -m 644 ../include/sys/types.h /usr/include/sys/types.h
/usr/bin/install: cannot remove `/usr/include/sys/types.h': Permission denied
make[2]: *** [/usr/include/sys/types.h] Error 1
Following are the build steps with which the above mentioned errors
are seen, in the same order of invocation.
Configure:
BUILD_CC=gcc 'CC="powerpc-unknown-linux-gnu-gcc' -mcpu=e5500 -m32
-falign-loops=1 -mno-isel '-msoft-float"'
'CXX="powerpc-unknown-linux-gnu-g++' -mcpu=e5500 -m32 -falign-loops=1
-mno-isel '-msoft-float"' AR=powerpc-unknown-linux-gnu-ar
RANLIB=powerpc-unknown-linux-gnu-ranlib ../obj_glibc_2/configure
--disable-profile --without-gd --without-cvs --prefix=/usr
libc_cv_c_cleanup=yes --build=x86_64-unknown-linux-gnu
--with-headers=/proj/ppc/gcc-4.9.2-XMe5500-linux/i686-linux/powerpc-unknown-linux-gnu/libc/usr/include
--host=powerpc-unknown-linux-gnu --with-cpu=e5500 --without-fp
--enable-profile --enable-kernel=2.6.32 --enable-add-ons
--disable-multi-arch libc_cv_powerpc64_tls=yes
libc_cv_powerpc32_tls=yes
make:
make -j 12 all
install:
make -j 1 install
DESTDIR=/proj/ppc/gcc-4.9.2-XMe5500-linux/i686-linux/powerpc-unknown-linux-gnu/libc/nof
make check:
make -k 'cross-test-wrapper=/proj/ppc/obj_glibc_2/scripts/cross-test-ssh.sh
xxx_host' check
But if I specify the same DESTDIR used in install step with make check
also, invoked as below from the build machine, the above errors are no
longer present. Is it proper (or required) to specify the DESTDIR with
make check as well?
make -k 'cross-test-wrapper=/proj/ppc/obj_glibc_2/scripts/cross-test-ssh.sh
xxx_host' check
DESTDIR=/proj/ppc/gcc-4.9.2-XMe5500-linux/i686-linux/powerpc-unknown-linux-gnu/libc/nof
Thank you,
Venkata Ramanaiah N