[MacPorts] #60145: fftw-3 @3.3.8_1 does not configure on PPC Leopard, Mac OS X 10.5.8, because of error: expected expression before ')' token

MacPorts noreply at macports.org
Sat Feb 29 14:19:14 UTC 2020


#60145: fftw-3 @3.3.8_1 does not configure on PPC Leopard, Mac OS X 10.5.8, because
of error: expected expression before ')' token
-----------------------+--------------------
 Reporter:  ballapete  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.6.2
 Keywords:  leopard    |       Port:  fftw-3
-----------------------+--------------------
 {{{
 checking size of unsigned int... 0
 checking size of long... 0
 checking size of unsigned long... 0
 checking size of long long... 0
 checking size of unsigned long long... 0
 checking size of size_t... configure: error: in
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_math_fftw-3/fftw-3/work/fftw-3.3.8':
 configure: error: cannot compute sizeof (size_t)
 See `config.log' for more details
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_math_fftw-3/fftw-3/work/fftw-3.3.8"
 && ./configure --prefix=/opt/local --enable-threads --disable-fortran
 --enable-shared --with-our-malloc --enable-fma
 Exit code: 77
 }}}

 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_math_fftw-3/fftw-3/work/fftw-3.3.8`
 contains:

 {{{
 configure:16407: checking size of size_t
 configure:16412: /Developer/usr/bin/llvm-gcc-4.2 -std=gnu99 -o conftest
 -pipe -O3 -fno-common -fomit-frame-pointer -fstrict-aliasing -arch ppc
 -Wl,-no_compact_unwind -I/opt/local/include -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch ppc conftest.c  >&5
 ld: unknown option: -no_compact_unwind
 collect2: ld returned 1 exit status
 configure:16412: $? = 1
 configure: program exited with status 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "fftw"
 | #define PACKAGE_TARNAME "fftw"
 | #define PACKAGE_VERSION "3.3.8"
 | #define PACKAGE_STRING "fftw 3.3.8"
 | #define PACKAGE_BUGREPORT "fftw at fftw.org"
 | #define PACKAGE_URL ""
 | #define PACKAGE "fftw"
 | #define VERSION "3.3.8"
 | #define FFTW_ENABLE_ALLOCA 1
 | #define WITH_OUR_MALLOC 1
 | #define ARCH_PREFERS_FMA 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_DLFCN_H 1
 | #define LT_OBJDIR ".libs/"
 | #define STDC_HEADERS 1
 | #define HAVE_FCNTL_H 1
 | #define HAVE_FENV_H 1
 | #define HAVE_LIMITS_H 1
 | #define HAVE_STDDEF_H 1
 | #define HAVE_SYS_TIME_H 1
 | #define HAVE_ALTIVEC_H 1
 | #define TIME_WITH_SYS_TIME 1
 | #define HAVE_LONG_DOUBLE 1
 | #define SIZEOF_INT 0
 | #define SIZEOF_UNSIGNED_INT 0
 | #define SIZEOF_LONG 0
 | #define SIZEOF_UNSIGNED_LONG 0
 | #define SIZEOF_LONG_LONG 0
 | #define SIZEOF_UNSIGNED_LONG_LONG 0
 | /* end confdefs.h.  */
 | #include <stdio.h>
 | #ifdef HAVE_SYS_TYPES_H
 | # include <sys/types.h>
 | #endif
 | #ifdef HAVE_SYS_STAT_H
 | # include <sys/stat.h>
 | #endif
 | #ifdef STDC_HEADERS
 | # include <stdlib.h>
 | # include <stddef.h>
 | #else
 | # ifdef HAVE_STDLIB_H
 | #  include <stdlib.h>
 | # endif
 | #endif
 | #ifdef HAVE_STRING_H
 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 | #  include <memory.h>
 | # endif
 | # include <string.h>
 | #endif
 | #ifdef HAVE_STRINGS_H
 | # include <strings.h>
 | #endif
 | #ifdef HAVE_INTTYPES_H
 | # include <inttypes.h>
 | #endif
 | #ifdef HAVE_STDINT_H
 | # include <stdint.h>
 | #endif
 | #ifdef HAVE_UNISTD_H
 | # include <unistd.h>
 | #endif
 | static long int longval () { return (long int) (sizeof (size_t)); }
 | static unsigned long int ulongval () { return (long int) (sizeof
 (size_t)); }
 | #include <stdio.h>
 | #include <stdlib.h>
 | int
 | main ()
 | {
 |
 |   FILE *f = fopen ("conftest.val", "w");
 |   if (! f)
 |     return 1;
 |   if (((long int) (sizeof (size_t))) < 0)
 |     {
 |       long int i = longval ();
 |       if (i != ((long int) (sizeof (size_t))))
 |       return 1;
 |       fprintf (f, "%ld", i);
 |     }
 |   else
 |     {
 |       unsigned long int i = ulongval ();
 |       if (i != ((long int) (sizeof (size_t))))
 |       return 1;
 |       fprintf (f, "%lu", i);
 |     }
 |   /* Do not output a trailing newline, as this causes \r\n confusion
 |      on some platforms.  */
 |   return ferror (f) || fclose (f) != 0;
 |
 |   ;
 |   return 0;
 | }
 configure:16416: error: in
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_math_fftw-3/fftw-3/work/fftw-3.3.8':
 configure:16418: error: cannot compute sizeof (size_t)
 See `config.log' for more details
 }}}

 So this should not use `-no_compact_unwind`!

 Compiler used is `powerpc-apple-darwin9-llvm-gcc-4.2 (GCC) 4.2.1 (Based on
 Apple Inc. build 5555) (LLVM build 2064.3)` or ` /Developer/usr/bin/llvm-
 gcc-4.2`.

-- 
Ticket URL: <https://trac.macports.org/ticket/60145>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list