* riscv --enable-targets=all on 32-bit host
@ 2021-03-12 12:30 Alan Modra
2021-03-12 13:59 ` Nelson Chu
0 siblings, 1 reply; 2+ messages in thread
From: Alan Modra @ 2021-03-12 12:30 UTC (permalink / raw)
To: binutils
Attempting to build --enable-targets=all on a 32-bit host results in a
number of errors like the following.
eelf32lriscv.o: in function `gldelf32lriscv_after_allocation':
eelf32lriscv.c:98: undefined reference to `bfd_elf32_riscv_restart_relax_sections'
That's due to needing --enable-64-bit-bfd to get the riscv BFD support
built.
* Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
(ALL_64_EMULATION_SOURCES): ..here.
* Makefile.in: Regenerate.
diff --git a/ld/Makefile.am b/ld/Makefile.am
index 3fcaab71dc..606a9179b1 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -262,12 +262,6 @@ ALL_EMULATION_SOURCES = \
eelf32ppcsim.c \
eelf32ppcvxworks.c \
eelf32ppcwindiss.c \
- eelf32lriscv.c \
- eelf32lriscv_ilp32f.c \
- eelf32lriscv_ilp32.c \
- eelf32briscv.c \
- eelf32briscv_ilp32f.c \
- eelf32briscv_ilp32.c \
eelf32rl78.c \
eelf32rx.c \
eelf32rx_linux.c \
@@ -416,6 +410,12 @@ ALL_64_EMULATION_SOURCES = \
eelf32ltsmipn32.c \
eelf32ltsmipn32_fbsd.c \
eelf32mipswindiss.c \
+ eelf32lriscv.c \
+ eelf32lriscv_ilp32f.c \
+ eelf32lriscv_ilp32.c \
+ eelf32briscv.c \
+ eelf32briscv_ilp32f.c \
+ eelf32briscv_ilp32.c \
eelf64_aix.c \
eelf64bpf.c \
eelf64_ia64.c \
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: riscv --enable-targets=all on 32-bit host
2021-03-12 12:30 riscv --enable-targets=all on 32-bit host Alan Modra
@ 2021-03-12 13:59 ` Nelson Chu
0 siblings, 0 replies; 2+ messages in thread
From: Nelson Chu @ 2021-03-12 13:59 UTC (permalink / raw)
To: Alan Modra; +Cc: Binutils
Hi Alan,
Thanks for fixing this. And sorry again for accidentally breaking the
host 32-bit target-all this time...
Thank you very much
Nelson
On Fri, Mar 12, 2021 at 8:30 PM Alan Modra via Binutils
<binutils@sourceware.org> wrote:
>
> Attempting to build --enable-targets=all on a 32-bit host results in a
> number of errors like the following.
>
> eelf32lriscv.o: in function `gldelf32lriscv_after_allocation':
> eelf32lriscv.c:98: undefined reference to `bfd_elf32_riscv_restart_relax_sections'
>
> That's due to needing --enable-64-bit-bfd to get the riscv BFD support
> built.
>
> * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
> (ALL_64_EMULATION_SOURCES): ..here.
> * Makefile.in: Regenerate.
>
> diff --git a/ld/Makefile.am b/ld/Makefile.am
> index 3fcaab71dc..606a9179b1 100644
> --- a/ld/Makefile.am
> +++ b/ld/Makefile.am
> @@ -262,12 +262,6 @@ ALL_EMULATION_SOURCES = \
> eelf32ppcsim.c \
> eelf32ppcvxworks.c \
> eelf32ppcwindiss.c \
> - eelf32lriscv.c \
> - eelf32lriscv_ilp32f.c \
> - eelf32lriscv_ilp32.c \
> - eelf32briscv.c \
> - eelf32briscv_ilp32f.c \
> - eelf32briscv_ilp32.c \
> eelf32rl78.c \
> eelf32rx.c \
> eelf32rx_linux.c \
> @@ -416,6 +410,12 @@ ALL_64_EMULATION_SOURCES = \
> eelf32ltsmipn32.c \
> eelf32ltsmipn32_fbsd.c \
> eelf32mipswindiss.c \
> + eelf32lriscv.c \
> + eelf32lriscv_ilp32f.c \
> + eelf32lriscv_ilp32.c \
> + eelf32briscv.c \
> + eelf32briscv_ilp32f.c \
> + eelf32briscv_ilp32.c \
> eelf64_aix.c \
> eelf64bpf.c \
> eelf64_ia64.c \
>
> --
> Alan Modra
> Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-12 14:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12 12:30 riscv --enable-targets=all on 32-bit host Alan Modra
2021-03-12 13:59 ` Nelson Chu
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).