NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/58277: poblem with binutils's ld
>Number: 58277
>Category: bin
>Synopsis: poblem with binutils's ld
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 23 14:25:00 +0000 2024
>Originator: Kouichi Hashikawa
>Release: NetBSD-current, 10
>Organization:
>Environment:
>Description:
while compiling binutils's ld, (this is amd64)
--- dependall-binutils ---
# create ld/.depend.elf_i386
(srcdir=/usr/src/external/gpl3/binutils/usr.bin/ld/../../dist/ld EMULATION_NAME=elf_i386 . /usr/src/external/gpl3/binutils/usr.bin/ld/../../dist/ld/emulparams/elf_i386.sh && if [ x"$TEMPLATE_NAME" != x ]; then temp_name=$TEMPLATE_NAME.em; else temp_name=; fi; if [ x"$SCRIPT_NAME" != x ]; then script=$SCRIPT_NAME.sc; else script=; fi; echo "eelf_i386.c: $temp_name $script" ) >.depend.elf_i386
/usr/src/external/gpl3/binutils/usr.bin/ld/../../dist/ld/emulparams/elf_i386.sh: source_sh: not found
/usr/src/external/gpl3/binutils/usr.bin/ld/../../dist/ld/emulparams/elf_i386.sh: source_sh: not found
/usr/src/external/gpl3/binutils/usr.bin/ld/../../dist/ld/emulparams/elf_i386.sh: source_sh: not found
/usr/src/external/gpl3/binutils/usr.bin/ld/../../dist/ld/emulparams/elf_i386.sh: source_sh: not found
/usr/src/external/gpl3/binutils/usr.bin/ld/../../dist/ld/emulparams/elf_i386.sh: source_sh: not found
source_sh is defined at /usrs/src/external/gpl3/binutils/usr.bin/ld/dist/ld/genscripts.sh.
Same problem and Other problem, (on powerpc)
# create ld/.depend.elf32ppc
(srcdir=/usr/src/external/gpl3/binutils/usr.bin/ld/../../dist/ld EMULATION_NAME=elf32ppc . /usr/src/external/gpl3/binutils/usr.bin/ld/../../dist/ld/emulparams/elf32ppc.sh && if [ x"$TEMPLATE_NAME" != x ]; then temp_name=$TEMPLATE_NAME.em; else temp_name=; fi; if [ x"$SCRIPT_NAME" != x ]; then script=$SCRIPT_NAME.sc; else script=; fi; echo "eelf32ppc.c: $temp_name $script" ) >.depend.elf32ppc
/usr/src/external/gpl3/binutils/usr.bin/ld/../../dist/ld/emulparams/elf32ppc.sh: source_sh: not found
/usr/src/external/gpl3/binutils/usr.bin/ld/../../dist/ld/emulparams/elf32ppc.sh: source_sh: not found
grep: ldemul-list.h: No such file or directory
(1) elf32ppc.sh include elf32ppccommon.sh via source_sh, SCRIPT_NAME and TEMPLATE_NAME is defined at elf32ppccommon.sh. Then, .depend.elf32ppc* is incorrect.
(2) elf32ppc.sh contains following line,
if grep -q 'ld_elf32_spu_emulation' ldemul-list.h; then
ldemul-list.h is at /usr/src/external/gpl3/binutils/usr.bin/ld/arch/powerpc/ldemul-list.h, cannot find it.
(other emulparams/*.sh don't use grep .. ldemul-list.sh).
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index