* [Buildroot] [git commit] package/gmp: fix compile error for riscv
@ 2023-08-22 18:08 Thomas Petazzoni via buildroot
2023-08-23 8:39 ` Waldemar Brodkorb
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-22 18:08 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=6d8deb4b23ee57a69308bcdc5ceafa02aacc1edd
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
In commit 87b2a30319394c2cc79efae1af7833cad8c62b32 gmp got updated
to 6.2.1, since then the compile error exist.
Compile error looks like this:
tmp-mul_1.s: Assembler messages:
tmp-mul_1.s:55: Error: unrecognized opcode `mul a5,a7,a3'
tmp-mul_1.s:57: Error: unrecognized opcode `mulhu a7,a7,a3'
Patch should be backported to stable branches.
Fixes:
- http://autobuild.buildroot.net/results/2f2/2f2112bea73adbf49eabb62fe6cda6a9cd5d0567
- http://autobuild.buildroot.net/results/566/566a4945555b781ed127997176f73b3c17ecab5d
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
package/gmp/gmp.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/gmp/gmp.mk b/package/gmp/gmp.mk
index 9b402767fd..3b732dfa71 100644
--- a/package/gmp/gmp.mk
+++ b/package/gmp/gmp.mk
@@ -23,6 +23,11 @@ ifeq ($(BR2_m68k_cf)$(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6)$(BR2_ARM_CP
GMP_CONF_OPTS += --disable-assembly
endif
+# GMP needs M extension for riscv assembly
+ifeq ($(BR2_RISCV_ISA_CUSTOM_RVM),)
+GMP_CONF_OPTS += --disable-assembly
+endif
+
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
GMP_CONF_OPTS += --enable-cxx
else
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Buildroot] [git commit] package/gmp: fix compile error for riscv
2023-08-22 18:08 [Buildroot] [git commit] package/gmp: fix compile error for riscv Thomas Petazzoni via buildroot
@ 2023-08-23 8:39 ` Waldemar Brodkorb
2023-08-23 20:45 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 5+ messages in thread
From: Waldemar Brodkorb @ 2023-08-23 8:39 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: buildroot
Hi Thomas,
Thomas Petazzoni via buildroot wrote,
> commit: https://git.buildroot.net/buildroot/commit/?id=6d8deb4b23ee57a69308bcdc5ceafa02aacc1edd
> branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
>
> In commit 87b2a30319394c2cc79efae1af7833cad8c62b32 gmp got updated
> to 6.2.1, since then the compile error exist.
>
> Compile error looks like this:
> tmp-mul_1.s: Assembler messages:
> tmp-mul_1.s:55: Error: unrecognized opcode `mul a5,a7,a3'
> tmp-mul_1.s:57: Error: unrecognized opcode `mulhu a7,a7,a3'
>
> Patch should be backported to stable branches.
>
> Fixes:
> - http://autobuild.buildroot.net/results/2f2/2f2112bea73adbf49eabb62fe6cda6a9cd5d0567
> - http://autobuild.buildroot.net/results/566/566a4945555b781ed127997176f73b3c17ecab5d
>
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
> package/gmp/gmp.mk | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/package/gmp/gmp.mk b/package/gmp/gmp.mk
> index 9b402767fd..3b732dfa71 100644
> --- a/package/gmp/gmp.mk
> +++ b/package/gmp/gmp.mk
> @@ -23,6 +23,11 @@ ifeq ($(BR2_m68k_cf)$(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6)$(BR2_ARM_CP
> GMP_CONF_OPTS += --disable-assembly
> endif
I think we need to guard it with BR2_riscv or not?
> +# GMP needs M extension for riscv assembly
> +ifeq ($(BR2_RISCV_ISA_CUSTOM_RVM),)
> +GMP_CONF_OPTS += --disable-assembly
> +endif
best regards
Waldemar
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [git commit] package/gmp: fix compile error for riscv
@ 2023-08-22 18:08 Thomas Petazzoni via buildroot
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-22 18:08 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=97c06c5b593a05716a3bd8941d2e208fa592cb38
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
In commit 87b2a30319394c2cc79efae1af7833cad8c62b32 gmp got updated
to 6.2.1, since then the compile error exist.
Compile error looks like this:
tmp-mul_1.s: Assembler messages:
tmp-mul_1.s:55: Error: unrecognized opcode `mul a5,a7,a3'
tmp-mul_1.s:57: Error: unrecognized opcode `mulhu a7,a7,a3'
Patch should be backported to stable branches.
Fixes:
- http://autobuild.buildroot.net/results/2f2/2f2112bea73adbf49eabb62fe6cda6a9cd5d0567
- http://autobuild.buildroot.net/results/566/566a4945555b781ed127997176f73b3c17ecab5d
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
package/gmp/gmp.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/gmp/gmp.mk b/package/gmp/gmp.mk
index c52a5214a6..1a50b0bf69 100644
--- a/package/gmp/gmp.mk
+++ b/package/gmp/gmp.mk
@@ -20,6 +20,11 @@ ifeq ($(BR2_m68k_cf)$(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6)$(BR2_ARM_CP
GMP_CONF_OPTS += --disable-assembly
endif
+# GMP needs M extension for riscv assembly
+ifeq ($(BR2_RISCV_ISA_RVM),)
+GMP_CONF_OPTS += --disable-assembly
+endif
+
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
GMP_CONF_OPTS += --enable-cxx
else
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-09-07 15:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-22 18:08 [Buildroot] [git commit] package/gmp: fix compile error for riscv Thomas Petazzoni via buildroot
2023-08-23 8:39 ` Waldemar Brodkorb
2023-08-23 20:45 ` Thomas Petazzoni via buildroot
2023-08-24 5:03 ` Waldemar Brodkorb
-- strict thread matches above, loose matches on Subject: below --
2023-08-22 18:08 Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.