public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* Cross toolchain build failure.
@ 2020-10-17  1:32 sotrdg sotrdg
  0 siblings, 0 replies; only message in thread
From: sotrdg sotrdg @ 2020-10-17  1:32 UTC (permalink / raw)
  To: libc-help

First issue is that .oS will build fail on case-insensitive filesystem, so please avoid them thank you.
https://github.com/riscv/riscv-gnu-toolchain/issues/523

However. After modifying all the .oS in makefiles and .mk files, I still encounter build failure. Why does this happen?

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

d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ar.exe cqv /build-glibc/elf/rtld-libc.aT
mv -f /build-glibc/elf/rtld-libc.aT /build-glibc/elf/rtld-libc.a
make[3]: Leaving directory '/glibc/elf'
x86_64-linux-gcc   -nostdlib -nostartfiles -r -o /build-glibc/elf/librtld.os '-Wl,-(' /build-glibc/elf/dl-allobjs.os /build-glibc/elf/rtld-libc.a -lgcc '-Wl,-)' \
          -Wl,-Map,/build-glibc/elf/librtld.os.map
x86_64-linux-gcc   -nostdlib -nostartfiles -shared -o /build-glibc/elf/ld.so.new                \
          -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs       \
          /build-glibc/elf/librtld.os -Wl,--version-script=/build-glibc/ld.map          \
          -Wl,-soname=ld-linux-x86-64.so.2                      \
          -Wl,-defsym=_begin=0
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:/msys64/build-glibc/elf/librtld.os: in function `dlmopen_doit':
D:\msys64\glibc\elf/rtld.c:655: undefined reference to `__environ'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:/msys64/build-glibc/elf/librtld.os: in function `process_dl_debug':
D:\msys64\glibc\elf/rtld.c:2542: undefined reference to `memcmp'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:\msys64\glibc\elf/rtld.
c:2588: undefined reference to `_exit'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:\msys64\glibc\elf/rtld.c:2553: undefined reference to `strnlen'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:\msys64\glibc\elf/rtld.c:2553: undefined reference to `memcpy'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:/msys64/build-glibc/elf/librtld.os: in function `version_check_doit':
D:\msys64\glibc\elf/rtld.c:682: undefined reference to `_exit'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:/msys64/build-glibc/elf/librtld.os: in function `audit_list_next':
D:\msys64\glibc\elf/rtld.c:244: undefined reference to `strcspn'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:\msys64\glibc\elf/rtld.c:247: undefined reference to `memcpy'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:/msys64/build-glibc/elf/librtld.os: in function `dso_name_valid_for_suid':
D:\msys64\glibc\elf/rtld.c:179: undefined reference to `strlen'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:\msys64\glibc\elf/rtld.c:180: undefined reference to `memchr'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:/msys64/build-glibc/elf/librtld.os: in function `handle_preload_list':
D:\msys64\glibc\elf/rtld.c:898: undefined reference to `strcspn'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:\msys64\glibc\elf/rtld.c:901: undefined reference to `memcpy'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:/msys64/build-glibc/elf/librtld.os: in function `dso_name_valid_for_suid':
D:\msys64\glibc\elf/rtld.c:179: undefined reference to `strlen'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:\msys64\glibc\elf/rtld.c:180: undefined reference to `memchr'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:/msys64/build-glibc/elf/librtld.os: in function `process_envvars':
D:\msys64\glibc\elf/rtld.c:2601: undefined reference to `_environ'
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: D:/msys64/build-glibc/elf/librtld.os: relocation R_X86_64_PC32 against undefined hidden symbol `_environ' can not be used when making a shared object
d:/msys64/x86_64-linux/bin/../lib/gcc/x86_64-linux/11.0.0/../../../../x86_64-linux/bin/ld.exe: final link failed: bad value
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:567: /build-glibc/elf/ld.so] Error 1
make[2]: Leaving directory '/glibc/elf'
make[1]: *** [Makefile:479: elf/subdir_lib] Error 2
make[1]: Leaving directory '/glibc'
make: *** [Makefile:9: all] Error 2

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-17  1:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-17  1:32 Cross toolchain build failure sotrdg sotrdg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).