This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13093] New: ../glibc-$VERS/[...]/ldd-rewrite.sed: No such file or directory
- From: "christophe.jarry at ouvaton dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Mon, 15 Aug 2011 09:22:06 +0000
- Subject: [Bug libc/13093] New: ../glibc-$VERS/[...]/ldd-rewrite.sed: No such file or directory
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13093
Bug #: 13093
Summary: ../glibc-$VERS/[...]/ldd-rewrite.sed: No such file or
directory
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: christophe.jarry@ouvaton.org
Classification: Unclassified
Note: this test has been run with glibc-2.13 + ports, but git version of the
"problematic" file (elf/Makefile) has the same problem as the one described
below.
After having patched glibc sources with
http://sources.redhat.com/bugzilla/attachment.cgi?id=5897, I tried to
cross-compile glibc 2.13 + MIPS port with GCC 4.6.0 and:
echo "libc_cv_forced_unwind=yes" > config.cache
echo "libc_cv_c_cleanup=yes" >> config.cache
BUILD_CC="gcc" \
CC="mips64el-unknown-linux-gnu-gcc -march=loongson2f -mabi=n32" \
AR="mips64el-unknown-linux-gnu-ar" \
RANLIB="mips64el-unknown-linux-gnu-ranlib" \
../glibc-2.13/configure \
--prefix=/usr \
--libexecdir=/usr/lib/glibc \
--build=mipsel-cross-linux-gnu \
--host=mips64el-unknown-linux-gnu \
--disable-profile \
--enable-add-ons \
--with-tls \
--enable-kernel=2.6.26 \
--with-__thread \
--with-binutils=/microcebus/cross-tools/bin \
--with-headers=/microcebus/usr/include \
--cache-file=config.cache
make
make gives me the following error message:
LC_ALL=C sed -e 's%@RTLD@%/lib32/ld.so.1%g' -e 's%@VERSION@%2.13%g' -e
's%@BASH@%/bin/bash%g' -e 's%@TEXTDOMAINDIR@%/usr/share/locale%g' < ldd.bash.in
| LC_ALL=C sed -f
../glibc-2.13/ports/sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed >
/microcebus/build/glibc-build/elf/ldd.new
sed: couldn't open file
../glibc-2.13/ports/sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: No
such file or directory
make[2]: *** [/microcebus/build/glibc-build/elf/ldd] Error 4
make[2]: Leaving directory `/microcebus/build/glibc-2.13/elf'
make[1]: *** [elf/others] Error 2
make[1]: Leaving directory `/microcebus/build/glibc-2.13'
make: *** [all] Error 2
../glibc-2.13/elf/Makefile contains the line:
LC_ALL=C sed $($(ldd-shell)-ldd-rewrite) < $< | LC_ALL=C sed -f
$(ldd-rewrite-script) > $@.new
My glibc-build/config.make contains:
ldd-rewrite-script =
../glibc-2.13/ports/sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed
So I replaced the following line of ../glibc-2.13/elf/Makefile:
LC_ALL=C sed $($(ldd-shell)-ldd-rewrite) < $< | LC_ALL=C sed -f
$(ldd-rewrite-script) > $@.new
by:
LC_ALL=C sed $($(ldd-shell)-ldd-rewrite) < $< | LC_ALL=C sed -f
../$(ldd-rewrite-script) > $@.new
Then, make works as intended.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.