NetBSD-Bugs archive

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

port-pmax/57245: (Most?) MIPS Ports: Error: symbol type "gnu_indirect_function" is not supported by MIPS targets



>Number:         57245
>Category:       port-pmax
>Synopsis:       (Most?) MIPS Ports: Error: symbol type "gnu_indirect_function" is not supported by MIPS targets
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-pmax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 26 14:20:00 +0000 2023
>Originator:     Jan-Benedict Glaw
>Release:        Last tested on HEAD (commit 840287686d07191aeb8db5ff71daa795559d05c9 as of Sat Feb 25 13:57:37 2023 +0000), but since a few days/weeks
>Organization:
>Environment:
Linux lili 5.16.0-4-amd64 #1 SMP PREEMPT Debian 5.16.12-1 (2022-03-08) x86_64 GNU/Linux
>Description:
I'm doing a lot of Free Software test builds (http://toolchain.lug-owl.de/) and recently, all?/most? MIPS builds for NetBSD (cross-builds from Linux and builds from within a amd64 NetBSD system) fail:

./build.sh -P -U -m pmax -a mipsel -E -D /var/lib/laminar/run/netbsd-pmax-mipsel/6/dest-pmax-mipsel -R /var/lib/laminar/run/netbsd-pmax-mipsel/6/release-pmax-mipsel tools

./build.sh -P -U -u -m pmax -a mipsel -E -D /var/lib/laminar/run/netbsd-pmax-mipsel/6/dest-pmax-mipsel -R /var/lib/laminar/run/netbsd-pmax-mipsel/6/release-pmax-mipsel release
[...]
[bld rls 2023-02-08 13:33:26] dependall ===> tests/libexec/ld.elf_so/helper_ifunc_dso
[bld rls 2023-02-08 13:33:26] #    create  helper_ifunc_dso/h_helper_ifunc.d
[bld rls 2023-02-08 13:33:26] CC=/var/lib/laminar/run/netbsd-pmax-mipsel/6/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/mipsel--netbsd-gcc /va
r/lib/laminar/run/netbsd-pmax-mipsel/6/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/nbmkdep -f h_helper_ifunc.d.tmp  --   -std=gnu99 -Wall -Ws
trict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wsystem-headers -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -W
shadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror -Wno-missin
g-noreturn  --sysroot=/var/lib/laminar/run/netbsd-pmax-mipsel/6/dest-pmax-mipsel -I/var/lib/laminar/run/netbsd-pmax-mipsel/6/NetBSD-src/tests/libexec/ld
.elf_so/helper_ifunc_dso/../../.. -Wp,-fno-canonical-system-headers     /var/lib/laminar/run/netbsd-pmax-mipsel/6/NetBSD-src/tests/libexec/ld.elf_so/hel
per_ifunc_dso/h_helper_ifunc.c &&  mv -f h_helper_ifunc.d.tmp h_helper_ifunc.d
[bld rls 2023-02-08 13:33:27] #    create  helper_ifunc_dso/.depend
[bld rls 2023-02-08 13:33:27] rm -f .depend
[bld rls 2023-02-08 13:33:27] CC=/var/lib/laminar/run/netbsd-pmax-mipsel/6/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/mipsel--netbsd-gcc /va
r/lib/laminar/run/netbsd-pmax-mipsel/6/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/nbmkdep -s .o\ .po\ .pico\ .go\ .ln\ .d -d -f .depend h_he
lper_ifunc.d
[bld rls 2023-02-08 13:33:27] #   compile  helper_ifunc_dso/h_helper_ifunc.pico
[bld rls 2023-02-08 13:33:27] /var/lib/laminar/run/netbsd-pmax-mipsel/6/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/mipsel--netbsd-gcc -O2 -f
debug-prefix-map=\$DESTDIR= -fdebug-prefix-map=\$NETBSDSRCDIR=/usr/src -fdebug-prefix-map=\$X11SRCDIR=/usr/xsrc -fdebug-regex-map='/usr/src/(.*)/obj$=/u
sr/obj/\1' -fdebug-regex-map='/usr/src/(.*)/obj/(.*)=/usr/obj/\1/\2' -fdebug-regex-map='/usr/src/(.*)/obj\..*=/usr/obj/\1' -fdebug-regex-map='/usr/src/(
.*)/obj\..*/(.*)=/usr/obj/\1/\2'   -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -W
no-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsig
n-compare -Wformat=2  -Wno-format-zero-length  -Werror -Wno-missing-noreturn   -fPIE    --sysroot=/var/lib/laminar/run/netbsd-pmax-mipsel/6/dest-pmax-mi
psel -I/var/lib/laminar/run/netbsd-pmax-mipsel/6/NetBSD-src/tests/libexec/ld.elf_so/helper_ifunc_dso/../../.. -Wp,-iremap,/var/lib/laminar/run/netbsd-pm
ax-mipsel/6/dest-pmax-mipsel: -Wp,-fno-canonical-system-headers -Wp,-iremap,/var/lib/laminar/run/netbsd-pmax-mipsel/6/NetBSD-src:/usr/src -Wp,-iremap,/u
sr/xsrc:/usr/xsrc  -c    -fPIC   /var/lib/laminar/run/netbsd-pmax-mipsel/6/NetBSD-src/tests/libexec/ld.elf_so/helper_ifunc_dso/h_helper_ifunc.c -o h_hel
per_ifunc.pico
[bld rls 2023-02-08 13:33:27] /tmp/ccYF10VN.s: Assembler messages:
[bld rls 2023-02-08 13:33:27] /tmp/ccYF10VN.s:11: Error: symbol type "gnu_indirect_function" is not supported by MIPS targets
[bld rls 2023-02-08 13:33:27] /tmp/ccYF10VN.s:15: Error: symbol type "gnu_indirect_function" is not supported by MIPS targets
[bld rls 2023-02-08 13:33:27] 
[bld rls 2023-02-08 13:33:27] *** Failed target:  h_helper_ifunc.pico

>How-To-Repeat:
Use any recent HEAD commit (I'm fetching via GIT, should work equally via CVS of course) and build on a NetBSD or Linux box as outlined above.

PMAX is only one of many here. These all fail with similar diagnostics:

algor-mips64el
algor-mipsel
arc-mipsel
cobalt-mipsel
emips-mipseb
evbmips-mipseb
evbmips-mipsel
ews4800mips-mipseb
hpcmips-mipsel
mipsco-mipseb
newsmips-mipseb
playstation2-mipsel
pmax-mipsel
sbmips-mipseb
sbmips-mipsel
sgimips-mipseb

Other compiler issues:

arc-mips64el      ("Fatal error: selected target format 'elf32-ntradlittlemips' unknown" while building libc's CSU code)
cobalt-mips64el   (ditto)
evbmips-mips64el  (ditto)
pmax-mips64el     (ditto)
sbmips-mips64el   (ditto)

evbmips-mipsn64eb ("Fatal error: selected target format 'elf32-ntradbigmips' unknown" while building libc's CSU code)
evbmips-mips64eb  (ditto)
sbmips-mips64eb   (ditto)
sgimips-mips64eb  (ditto)

evbmips-mipsn64el ("error: unknown type name 'bool'")
>Fix:
If it helps, I'd try to bisect between last-known-working and first-broken, but I guess it was a Binutils import and some configury option went missing (or needs to be supplied right now.)



Home | Main Index | Thread Index | Old Index