bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/22302] New: Unable to link glibc-2.24 for mips64-linux-gnu


From: krissn at op dot pl
Subject: [Bug binutils/22302] New: Unable to link glibc-2.24 for mips64-linux-gnuabi64 (assertion fail elfxx-mips.c:9011)
Date: Mon, 16 Oct 2017 05:47:38 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22302

            Bug ID: 22302
           Summary: Unable to link glibc-2.24 for mips64-linux-gnuabi64
                    (assertion fail elfxx-mips.c:9011)
           Product: binutils
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: krissn at op dot pl
  Target Milestone: ---

I'm trying to build a cross-toolchaing on a Gentoo amd64 system using Gentoo's
crossdev tool and portage.

When it comes to building glibc the compilation fails with an assertion in
ld.bfd:

make[2]: Wejście do katalogu
'/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/glibc-2.24/nptl'
mips64-linux-gnuabi64-gcc -mabi=64 -Wl,-O1 -Wl,--as-needed -Wl,-O1
-Wl,--as-needed  -shared -static-libgcc -Wl,-O1  -Wl,-z,defs
-Wl,-dynamic-linker=/lib64/ld.so.1
-B/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/nptl/
-B/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/csu/
-B/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/nptl/
-Wl,--version-script=/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/libpthread.map
-Wl,-soname=libpthread.so.0 -Wl,-z,relro
-Wl,--enable-new-dtags,-z,nodelete,-z,initfirst -e __nptl_main
-L/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl
-L/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/math
-L/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/elf
-L/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/dlfcn
-L/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/nss
-L/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/nis
-L/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/rt
-L/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/resolv
-L/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/crypt
-L/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/mathvec
-L/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/nptl
-Wl,-rpath-link=/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl:/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/math:/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/elf:/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/dlfcn:/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/nss:/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/nis:/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/rt:/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/resolv:/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/crypt:/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/mathvec:/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/nptl
-o
/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/nptl/libpthread.so
-T
/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/shlib.lds
/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/csu/abi-note.o
-Wl,--whole-archive
/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/nptl/libpthread_pic.a
-Wl,--no-whole-archive  -Wl,--start-group
/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/libc.so
/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/libc_nonshared.a
-Wl,--as-needed
/var/tmp/portage/cross-mips64-linux-gnuabi64/glibc-2.24-r4/work/build-n64-mips64-linux-gnuabi64-nptl/elf/ld.so
-Wl,--no-as-needed -Wl,--end-group
/usr/libexec/gcc/mips64-linux-gnuabi64/ld: BFD (Gentoo 2.29.1 p1.0) 2.29.1
assertion fail
/var/tmp/portage/cross-mips64-linux-gnuabi64/binutils-2.29.1/work/binutils-2.29.1/bfd/elfxx-mips.c:9011
/usr/libexec/gcc/mips64-linux-gnuabi64/ld: BFD (Gentoo 2.29.1 p1.0) 2.29.1
assertion fail
/var/tmp/portage/cross-mips64-linux-gnuabi64/binutils-2.29.1/work/binutils-2.29.1/bfd/elfxx-mips.c:9011
/usr/libexec/gcc/mips64-linux-gnuabi64/ld: BFD (Gentoo 2.29.1 p1.0) 2.29.1
assertion fail
/var/tmp/portage/cross-mips64-linux-gnuabi64/binutils-2.29.1/work/binutils-2.29.1/bfd/elfxx-mips.c:9011
/usr/libexec/gcc/mips64-linux-gnuabi64/ld: BFD (Gentoo 2.29.1 p1.0) 2.29.1
assertion fail
/var/tmp/portage/cross-mips64-linux-gnuabi64/binutils-2.29.1/work/binutils-2.29.1/bfd/elfxx-mips.c:9011
/usr/libexec/gcc/mips64-linux-gnuabi64/ld: BFD (Gentoo 2.29.1 p1.0) 2.29.1
assertion fail
/var/tmp/portage/cross-mips64-linux-gnuabi64/binutils-2.29.1/work/binutils-2.29.1/bfd/elfxx-mips.c:9011
/usr/libexec/gcc/mips64-linux-gnuabi64/ld: BFD (Gentoo 2.29.1 p1.0) 2.29.1
assertion fail
/var/tmp/portage/cross-mips64-linux-gnuabi64/binutils-2.29.1/work/binutils-2.29.1/bfd/elfxx-mips.c:9011
collect2: error: ld returned 1 exit status

Snippet from relevant code:

bfd_boolean
_bfd_mips_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
                                     struct elf_link_hash_entry *h)
{
  bfd *dynobj;
  struct mips_elf_link_hash_entry *hmips;
  struct mips_elf_link_hash_table *htab;
  asection *s, *srel;

  htab = mips_elf_hash_table (info);
  BFD_ASSERT (htab != NULL);

  dynobj = elf_hash_table (info)->dynobj;
  hmips = (struct mips_elf_link_hash_entry *) h;

  /* Make sure we know what is going on here.  */
  BFD_ASSERT (dynobj != NULL
              && (h->needs_plt
                  || h->u.weakdef != NULL
                  || (h->def_dynamic
                      && h->ref_regular
                      && !h->def_regular)));     <<< elfxx-mips.c:9011

  hmips = (struct mips_elf_link_hash_entry *) h;

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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