From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from w1.tutanota.de (w1.tutanota.de [81.3.6.162]) by sourceware.org (Postfix) with ESMTPS id 9B168387086F for ; Fri, 8 Jan 2021 20:57:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9B168387086F Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 180CCFA0036 for ; Fri, 8 Jan 2021 20:57:20 +0000 (UTC) Date: Fri, 8 Jan 2021 21:57:20 +0100 (CET) From: spaze@tutanota.com To: libc-help@sourceware.org Message-ID: Subject: Glibc crashes while linking MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2021 20:57:23 -0000 Hello, I am trying to compile glibc for my personal project, and while everything = was installing, an error has occured while it was linking files: make[3]: Leaving directory '/mnt/d/akari/glibc-2.32/elf'=20 gcc -B/cross-tools/bin/=C2=A0=C2=A0 -nostdlib -nostartfiles -r -o /mnt/d/ak= ari/glibc-build/elf/librtld.os '-Wl,-(' /mnt/d/akari/glibc-build/elf/dl-all= objs.os /mnt/d/akari/glibc-build/elf/rtld-libc.a -lgcc '-Wl,-)' \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -Wl,-Map,/mnt/d/akar= i/glibc-build/elf/librtld.os.map gcc -B/cross-tools/bin/=C2=A0=C2=A0 -nostdlib -nostartfiles -shared -o /mnt= /d/akari/glibc-build/elf/ld.so.new=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -Wl,-z,combreloc -Wl= ,-z,relro -Wl,--hash-style=3Dboth -Wl,-z,defs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /mnt/d/akari/glibc-b= uild/elf/librtld.os -Wl,--version-script=3D/mnt/d/akari/glibc-build/ld.map= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -Wl,-soname=3Dld-lin= ux-x86-64.so.2=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -Wl,-defsym=3D_begin= =3D0 /usr/bin/ld: /mnt/d/akari/glibc-build/elf/librtld.os: in function `dl_main'= : /mnt/d/akari/glibc-2.32/elf/rtld.c:1785: undefined reference to `__access' /usr/bin/ld: /mnt/d/akari/glibc-build/elf/librtld.os: in function `process_= envvars': /mnt/d/akari/glibc-2.32/elf/rtld.c:2814: undefined reference to `__GI___ope= n64_nocancel' /usr/bin/ld: /mnt/d/akari/glibc-2.32/elf/rtld.c:2788: undefined reference t= o `__access' /usr/bin/ld: /mnt/d/akari/glibc-build/elf/librtld.os: in function `lose': /mnt/d/akari/glibc-2.32/elf/dl-load.c:839: undefined reference to `__GI___c= lose_nocancel' /usr/bin/ld: /mnt/d/akari/glibc-build/elf/librtld.os: in function `open_ver= ify': /mnt/d/akari/glibc-2.32/elf/dl-load.c:1623: undefined reference to `__GI___= open64_nocancel' /usr/bin/ld: /mnt/d/akari/glibc-2.32/elf/dl-load.c:1636: undefined referenc= e to `rtld_errno' /usr/bin/ld: /mnt/d/akari/glibc-build/elf/librtld.os: relocation R_X86_64_P= C32 against undefined hidden symbol `rtld_errno' can not be used when makin= g a shared object /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make[2]: *** [Makefile:566: /mnt/d/akari/glibc-build/elf/ld.so] Error 1 make[2]: Leaving directory '/mnt/d/akari/glibc-2.32/elf' make[1]: *** [Makefile:470: elf/subdir_lib] Error 2 make[1]: Leaving directory '/mnt/d/akari/glibc-2.32' make: *** [Makefile:9: all] Error 2 I do not know why this happened, but I can assume something is wrong with t= he=C2=A0librtld.os file.=C2=A0 If someone was willing to help me I would be= really grateful. Kind regards.