git: 074d1888974a - main - lang/gcc10: fix runtime on powerpc64le
Piotr Kubaj
pkubaj at FreeBSD.org
Thu Apr 29 11:33:25 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=074d1888974ae64e1bdaf4e46a8e7f967f2c2618
commit 074d1888974ae64e1bdaf4e46a8e7f967f2c2618
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-04-29 11:33:40 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-04-29 11:33:40 +0000
lang/gcc10: fix runtime on powerpc64le
It looks like this part was omitted during upstreaming.
Its lack causes gcc to be compiled successfully, but fail at building simple programs:
/usr/local/bin/ld: /usr/local/lib/gcc10/libgcc_s.so: undefined reference to `.__udivmodti4'
/usr/local/bin/ld: /usr/local/lib/gcc10/libgcc_s.so: undefined reference to `.__ctzdi2'
/usr/local/bin/ld: /usr/local/lib/gcc10/libgcc_s.so: undefined reference to `.__parityti2'
/usr/local/bin/ld: /usr/local/lib/gcc10/libgcc_s.so: undefined reference to `.__enable_execute_stack'
---
lang/gcc10/files/patch-gcc_configure | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lang/gcc10/files/patch-gcc_configure b/lang/gcc10/files/patch-gcc_configure
new file mode 100644
index 000000000000..c83a180b248d
--- /dev/null
+++ b/lang/gcc10/files/patch-gcc_configure
@@ -0,0 +1,11 @@
+--- gcc/configure.orig 2021-04-29 10:19:44 UTC
++++ gcc/configure
+@@ -29405,7 +29405,7 @@ $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1"
+ esac
+
+ case "$target:$tm_file" in
+- powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
++ powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
+ case "$target" in
+ *le-*-linux*)
+ emul_name="-melf64lppc"
More information about the dev-commits-ports-all
mailing list