[MacPorts] #64727: Can't build on clean macOS Lion

MacPorts noreply at macports.org
Thu Feb 24 16:11:40 UTC 2022


#64727: Can't build on clean macOS Lion
--------------------+-----------------------------
 Reporter:  catap   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  gettext-runtime
--------------------+-----------------------------
 Let assume that I've installed MacPorts to brand new prefix:
 /opt/bootstrap.

 An attempt to run `sudo /opt/bootstrap/bin/port install --unrequested
 gettext-runtime` fails with error:
 {{{
 --->  Building gettext-runtime
 Executing:  cd
 "/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime" && /usr/bin/make -j1
 -w all
 make: Entering directory
 `/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime'
 /usr/bin/make  all-recursive
 make[1]: Entering directory
 `/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime'
 Making all in doc
 make[2]: Entering directory
 `/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime/doc'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory
 `/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime/doc'
 Making all in intl
 make[2]: Entering directory
 `/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime/intl'
 /usr/bin/make  all-am
 make[3]: Entering directory
 `/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime/intl'
 sed -e '/IN_LIBGLOCALE/d' \
             -e 's,@''HAVE_POSIX_PRINTF''@,1,g' \
             -e 's,@''HAVE_ASPRINTF''@,1,g' \
             -e 's,@''HAVE_SNPRINTF''@,1,g' \
             -e 's,@''HAVE_WPRINTF''@,1,g' \
             -e 's,@''HAVE_NAMELESS_LOCALES''@,0,g' \
             -e 's,@''HAVE_NEWLOCALE''@,1,g' \
           < ./libgnuintl.in.h \
         | if test 'no' = yes; then \
             sed -e 's/extern \([^()]*\);/extern __declspec (dllimport)
 \1;/'; \
           else \
             cat; \
           fi \
         | sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \
               -e "/#define _LIBINTL_H/r ./export.h" \
         | sed -e 's,@''HAVE_VISIBILITY''@,1,g' \
           > libgnuintl.h
 /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/clang
 -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/opt/bootstrap/share/locale\"
 -DLOCALE_ALIAS_PATH=\"\" -DLIBDIR=\"/opt/bootstrap/lib\"
 -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL  -DENABLE_RELOCATABLE=1
 -DIN_LIBRARY -DINSTALLDIR=\"/opt/bootstrap/lib\" -DNO_XMALLOC
 -Dset_relocation_prefix=libintl_set_relocation_prefix
 -Drelocate=libintl_relocate -Drelocate2=libintl_relocate2
 -DDEPENDS_ON_LIBICONV=1 -I/opt/bootstrap/include -fvisibility=hidden -pipe
 -Os -arch x86_64 -c -o bindtextdom.lo ./bindtextdom.c
 libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I..
 -DLOCALEDIR=\"/opt/bootstrap/share/locale\" -DLOCALE_ALIAS_PATH=\"\"
 -DLIBDIR=\"/opt/bootstrap/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL
 -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY
 -DINSTALLDIR=\"/opt/bootstrap/lib\" -DNO_XMALLOC
 -Dset_relocation_prefix=libintl_set_relocation_prefix
 -Drelocate=libintl_relocate -Drelocate2=libintl_relocate2
 -DDEPENDS_ON_LIBICONV=1 -I/opt/bootstrap/include -fvisibility=hidden -pipe
 -Os -arch x86_64 -c ./bindtextdom.c  -fno-common -DPIC -o
 .libs/bindtextdom.o
 In file included from ./bindtextdom.c:18:
 ../config.h:1148:5: error: builtin feature check macro requires a
 parenthesized identifier
 #if _GL_HAS_ATTRIBUTE (const)
     ^
 ../config.h:1089:34: note: expanded from macro '_GL_HAS_ATTRIBUTE'
 # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
                                  ^
 ../config.h:1148:5: error: expected end of line in preprocessor expression
 #if _GL_HAS_ATTRIBUTE (const)
     ^
 ../config.h:1089:63: note: expanded from macro '_GL_HAS_ATTRIBUTE'
 # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
                                                               ^
 2 errors generated.
 make[3]: *** [bindtextdom.lo] Error 1
 make[3]: Leaving directory
 `/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime/intl'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory
 `/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime/intl'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime'
 Command failed:  cd
 "/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext
 /gettext-runtime/work/gettext-0.21/gettext-runtime" && /usr/bin/make -j1
 -w all
 }}}

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


More information about the macports-tickets mailing list