public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/27414] New: links-dso-program linking fails, riscv32, upgrade 2.32+patches -> 2.33
@ 2021-02-13 23:54 dilfridge at gentoo dot org
  2021-02-14 11:51 ` [Bug build/27414] " schwab@linux-m68k.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dilfridge at gentoo dot org @ 2021-02-13 23:54 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 27414
           Summary: links-dso-program linking fails, riscv32, upgrade
                    2.32+patches -> 2.33
           Product: glibc
           Version: 2.33
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: dilfridge at gentoo dot org
                CC: carlos at redhat dot com
  Target Milestone: ---

Created attachment 13225
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13225&action=edit
full build log

I am trying to update a riscv32 (ilp32) chroot, which so far used glibc-2.32
plus the rv32 patchset backported from master branch.

The build of glibc-2.33 fails with undefined symbols:

riscv32-unknown-linux-gnu-gcc -mabi=ilp32 -march=rv32imac -pipe -O2 -Wl,-O1
-Wl,--as-needed
-Wl,-rpath-link=/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl:/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/math:/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/mathvec:/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/support:/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/nptl
-pie -Wl,-O1 -nostdlib -nostartfiles -o
/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/support/links-dso-program
 -Wl,-O1 -Wl,--as-needed  -Wl,-z,combreloc -Wl,-z,relro 
/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/csu/Scrt1.o
/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/csu/crti.o
`riscv32-unknown-linux-gnu-gcc -mabi=ilp32 -march=rv32imac -pipe -O2 -Wl,-O1
-Wl,--as-needed  --print-file-name=crtbeginS.o`
/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/support/links-dso-program.o
-lstdc++ -lgcc -lgcc_s 
-Wl,-dynamic-linker=/lib32/ilp32/ld-linux-riscv32-ilp32.so.1 -Wl,-z,now
/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/libc.so.6
/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/libc_nonshared.a
-Wl,--as-needed
/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/elf/ld.so
-Wl,--no-as-needed -lgcc  `riscv32-unknown-linux-gnu-gcc -mabi=ilp32
-march=rv32imac -pipe -O2 -Wl,-O1 -Wl,--as-needed  --print-file-name=crtendS.o`
/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/csu/crtn.o
/usr/lib/gcc/riscv32-unknown-linux-gnu/10.2.0/../../../../riscv32-unknown-linux-gnu/bin/ld:
/usr/lib/gcc/riscv32-unknown-linux-gnu/10.2.0/libstdc++.so: undefined reference
to `__lxstat@GLIBC_2.33'
/usr/lib/gcc/riscv32-unknown-linux-gnu/10.2.0/../../../../riscv32-unknown-linux-gnu/bin/ld:
/usr/lib/gcc/riscv32-unknown-linux-gnu/10.2.0/libstdc++.so: undefined reference
to `__fxstat64@GLIBC_2.33'
/usr/lib/gcc/riscv32-unknown-linux-gnu/10.2.0/../../../../riscv32-unknown-linux-gnu/bin/ld:
/usr/lib/gcc/riscv32-unknown-linux-gnu/10.2.0/libstdc++.so: undefined reference
to `__xstat@GLIBC_2.33'
collect2: error: ld returned 1 exit status
make[2]: *** [../Rules:218:
/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl/support/links-dso-program]
Error 1
make[2]: Leaving directory
'/var/tmp/portage/sys-libs/glibc-2.33/work/glibc-2.33/support'
make[1]: *** [Makefile:480: support/others] Error 2
make[1]: Leaving directory
'/var/tmp/portage/sys-libs/glibc-2.33/work/glibc-2.33'
make: *** [Makefile:9: all] Error 2
make: Leaving directory
'/var/tmp/portage/sys-libs/glibc-2.33/work/build-ilp32-riscv32-unknown-linux-gnu-nptl'
 * ERROR: sys-libs/glibc-2.33::gentoo failed (compile phase):
 *   emake failed


The environment is somewhat experimental (a mostly functional rv32 qemu-user
chroot). More eyes on the problem would be appreciated though.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug build/27414] links-dso-program linking fails, riscv32, upgrade 2.32+patches -> 2.33
  2021-02-13 23:54 [Bug build/27414] New: links-dso-program linking fails, riscv32, upgrade 2.32+patches -> 2.33 dilfridge at gentoo dot org
@ 2021-02-14 11:51 ` schwab@linux-m68k.org
  2021-02-14 12:48 ` dilfridge at gentoo dot org
  2021-11-28  0:28 ` sam at gentoo dot org
  2 siblings, 0 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2021-02-14 11:51 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
2.33 is the first version with official support for riscv32, so you need to
rebootstrap your system.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug build/27414] links-dso-program linking fails, riscv32, upgrade 2.32+patches -> 2.33
  2021-02-13 23:54 [Bug build/27414] New: links-dso-program linking fails, riscv32, upgrade 2.32+patches -> 2.33 dilfridge at gentoo dot org
  2021-02-14 11:51 ` [Bug build/27414] " schwab@linux-m68k.org
@ 2021-02-14 12:48 ` dilfridge at gentoo dot org
  2021-11-28  0:28 ` sam at gentoo dot org
  2 siblings, 0 replies; 4+ messages in thread
From: dilfridge at gentoo dot org @ 2021-02-14 12:48 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from Andreas K. Huettel <dilfridge at gentoo dot org> ---
(In reply to Andreas Schwab from comment #1)
> 2.33 is the first version with official support for riscv32, so you need to
> rebootstrap your system.

Ack, thanks. 

Let's see how this goes...

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug build/27414] links-dso-program linking fails, riscv32, upgrade 2.32+patches -> 2.33
  2021-02-13 23:54 [Bug build/27414] New: links-dso-program linking fails, riscv32, upgrade 2.32+patches -> 2.33 dilfridge at gentoo dot org
  2021-02-14 11:51 ` [Bug build/27414] " schwab@linux-m68k.org
  2021-02-14 12:48 ` dilfridge at gentoo dot org
@ 2021-11-28  0:28 ` sam at gentoo dot org
  2 siblings, 0 replies; 4+ messages in thread
From: sam at gentoo dot org @ 2021-11-28  0:28 UTC (permalink / raw)
  To: glibc-bugs

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

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-28  0:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-13 23:54 [Bug build/27414] New: links-dso-program linking fails, riscv32, upgrade 2.32+patches -> 2.33 dilfridge at gentoo dot org
2021-02-14 11:51 ` [Bug build/27414] " schwab@linux-m68k.org
2021-02-14 12:48 ` dilfridge at gentoo dot org
2021-11-28  0:28 ` sam at gentoo dot org

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).