This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Couldn't open file ../glibc-2.10.1/.../ldd-rewrite.sed


Hello everyone,

I am attempting to build [G]LFS with version 6.5 of the guide at
http://www.linuxfromscratch.org/lfs/view/stable (now version 6.6), on
my Lemote Yeelong with a mips64 arch.

All went fine until i compiled glibc-2.10.1. I first downloaded
glibc-ports-2.10.1.tar.bz2 to be able to compile glibc on mips64, and
extracted the glibc-ports tarball under my glibc-2.10.1 directory.
Then, under glibc-2.10.1, i did:

  mkdir -v ../glibc-build
  cd ../glibc-build

then:

  ../glibc-2.10.1/configure --prefix=/tools \
      --host=$LFS_TGT --build=$(../glibc-2.10.1/scripts/config.guess) \
      --disable-profile --enable-add-ons \
      --enable-kernel=2.6.18 --with-headers=/tools/include \
      libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes

This works fine, but then:

  make

gives me the following error:

  make[3]: Leaving directory `/mnt/lfs/sources/glibc-2.10.1/elf'
  mips64-lfs-linux-gnu-gcc -mabi=n32 -nostdlib -nostartfiles
-o /mnt/lfs/sources/glibc-build/elf/sprof
-Wl,-dynamic-linker=/tools/lib/ld.so.1  -Wl,-z,combreloc
-Wl,-z,relro  /mnt/lfs/sources/glibc-build/csu/crt1.o /mnt/lfs/sources/glibc-build/csu/crti.o
`mips64-lfs-linux-gnu-gcc -mabi=n32
--print-file-name=crtbegin.o` /mnt/lfs/sources/glibc-build/elf/sprof.o /mnt/lfs/sources/glibc-build/dlfcn/libdl.so.2
-Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl /mnt/lfs/sources/glibc-build/libc.so.6 /mnt/lfs/sources/glibc-build/libc_nonshared.a
-lgcc -lgcc_eh  `mips64-lfs-linux-gnu-gcc -mabi=n32
--print-file-name=crtend.o` /mnt/lfs/sources/glibc-build/csu/crtn.o
LC_ALL=C sed -e 's%@RTLD@%/tools/lib/ld.so.1%g' -e
's%@VERSION@%2.10.1%g' -e 's%@BASH@%/bin/bash%g' -e
's%@TEXTDOMAINDIR@%/tools/share/locale%g' < ldd.bash.in | LC_ALL=C sed
-f ../glibc-2.10.1/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed
> /mnt/lfs/sources/glibc-build/elf/ldd.new sed: couldn't open
> file ../glibc-2.10.1/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed:
> No such file or directory make[2]: ***
> [/mnt/lfs/sources/glibc-build/elf/ldd] Error 4 make[2]: Leaving
> directory `/mnt/lfs/sources/glibc-2.10.1/elf' make[1]: ***
> [elf/others] Error 2 make[1]: Leaving directory
> `/mnt/lfs/sources/glibc-2.10.1' make: *** [all] Error 2

Being in the glibc-2.10.1/elf directory, i understand that trying to
look inside ../glibc-2.10.1/.../ldd-rewrite.sed instead
of ../../glibc-2.10.1/.../ldd-rewrite.sed fails.


So far, i have been able to find the following, which may have been
involved in this error:

- in glibc-2.10.1/configure L8604:

  ldd_rewrite_script=no

- in glibc-2.10.1/elf/Makefile L361-388:

  common-ldd-rewrite = -e
's%@RTLD@%$(slibdir)/$(rtld-installed-name)%g' \ -e
's%@VERSION@%$(version)%g' sh-ldd-rewrite = $(common-ldd-rewrite) -e
's%@BASH@%/bin/sh%g;s/\$$"/"/g' bash-ldd-rewrite =
$(common-ldd-rewrite) -e 's%@BASH@%$(BASH)%g' \ -e
's%@TEXTDOMAINDIR@%$(msgcatdir)%g'

  ifneq ($(have-bash2),yes)
  ldd-shell = sh
  else
  ldd-shell = bash
  endif

  ifeq ($(ldd-rewrite-script),no)
  define gen-ldd
  LC_ALL=C sed $($(ldd-shell)-ldd-rewrite) < $< > $@.new
  endef
  else
  define gen-ldd
  LC_ALL=C sed $($(ldd-shell)-ldd-rewrite) < $< | LC_ALL=C sed -f
$(ldd-rewrite-script) > $@.new endef
  endif

  $(objpfx)ldd: ldd.bash.in $(common-objpfx)soversions.mk \
  	        $(common-objpfx)config.make
  	  $(gen-ldd)
	  chmod 555 $@.new
	  mv -f $@.new $@


I compared those lines with those found in glibc-2.11.1 source code, i
found no difference.

Could you help me find where the problem comes from?

Thanks for your help,

Christophe


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]