Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2024 09:47:22 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a004acd196a9 - main - math/fftw3-float: fix build on powerpc64le 15
Message-ID:  <202401100947.40A9lMw9076723@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a004acd196a9a554caf5a891817eeef48e1ff97c

commit a004acd196a9a554caf5a891817eeef48e1ff97c
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-01-05 23:24:08 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-01-10 09:46:58 +0000

    math/fftw3-float: fix build on powerpc64le 15
    
    configure: error: Need a version of gcc with -maltivec
---
 math/fftw3/files/patch-configure | 47 ++++++++++++++++++++++++++++++++++++++--
 1 file changed, 45 insertions(+), 2 deletions(-)

diff --git a/math/fftw3/files/patch-configure b/math/fftw3/files/patch-configure
index dab230ed959a..72d34f151801 100644
--- a/math/fftw3/files/patch-configure
+++ b/math/fftw3/files/patch-configure
@@ -1,6 +1,6 @@
---- configure.orig	2020-12-30 00:12:14 UTC
+--- configure.orig	2021-09-14 14:43:44 UTC
 +++ configure
-@@ -14937,7 +14937,7 @@ fi
+@@ -14938,7 +14938,7 @@ case "${ax_cv_c_compiler_vendor}" in
  esac
  
  case "${ax_cv_c_compiler_vendor}" in
@@ -9,3 +9,46 @@
          # SSE/SSE2
          if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then
              if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi
+@@ -15293,14 +15293,14 @@ else
+ if test "x$ax_check_compiler_flags" = xyes; then
+ 	ALTIVEC_CFLAGS="-faltivec"
+ else
+-	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5
+-$as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; }
+-if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then :
++	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec" >&5
++$as_echo_n "checking whether C compiler accepts -maltivec... " >&6; }
++if ${ax_cv_c_flags__maltivec+:} false; then :
+   $as_echo_n "(cached) " >&6
+ else
+ 
+       ax_save_FLAGS=$CFLAGS
+-      CFLAGS="-maltivec -mabi=altivec"
++      CFLAGS="-maltivec"
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ 
+@@ -15313,19 +15313,19 @@ if ac_fn_c_try_compile "$LINENO"; then :
+ }
+ _ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :
+-  ax_cv_c_flags__maltivec__mabi_altivec=yes
++  ax_cv_c_flags__maltivec=yes
+ else
+-  ax_cv_c_flags__maltivec__mabi_altivec=no
++  ax_cv_c_flags__maltivec=no
+ fi
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+       CFLAGS=$ax_save_FLAGS
+ fi
+ 
+-eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec
++eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
+ $as_echo "$ax_check_compiler_flags" >&6; }
+ if test "x$ax_check_compiler_flags" = xyes; then
+-	ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__"
++	ALTIVEC_CFLAGS="-maltivec -DFAKE__VEC__"
+ else
+ 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5
+ $as_echo_n "checking whether C compiler accepts -fvec... " >&6; }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401100947.40A9lMw9076723>