[MacPorts] #62283: Cannot build port devel/gettext with GCC

MacPorts noreply at macports.org
Sat Feb 13 11:03:37 UTC 2021


#62283: Cannot build port devel/gettext with GCC
------------------------+---------------------------
 Reporter:  papadave66  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.4
 Keywords:  gcc         |       Port:  devel/gettext
------------------------+---------------------------
 Build would fail on configure step:
 {{{
 # port -v build gettext compiler.whitelist=gcc
 configure.cxx_stdlib=libstdc++
 --->  Computing dependencies for gettext.
 --->  Fetching distfiles for gettext
 --->  Verifying checksums for gettext
 --->  Checksumming gettext-0.19.8.1.tar.gz
 --->  Extracting gettext
 --->  Extracting gettext-0.19.8.1.tar.gz
 Executing:  cd
 "/opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work"
 && /usr/bin/gzip -dc
 '/opt/ports/var/macports/distfiles/gettext/gettext-0.19.8.1.tar.gz' |
 /usr/bin/tar -xf -
 --->  Applying patches to gettext
 --->  Applying write-java.c.patch
 Executing:  cd
 "/opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.19.8.1"
 && /usr/bin/patch -p0 <
 '/opt/ports/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/gettext/files
 /write-java.c.patch'
 patching file gettext-tools/src/write-java.c
 --->  Applying configure.patch
 Executing:  cd
 "/opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.19.8.1"
 && /usr/bin/patch -p0 <
 '/opt/ports/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/gettext/files/configure.patch'
 patching file gettext-runtime/configure
 patching file gettext-tools/configure
 --->  Configuring gettext
 Executing:  cd
 "/opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.19.8.1"
 && ./configure --prefix=/opt/ports ac_cv_prog_AWK=/usr/bin/awk
 ac_cv_path_GREP=/usr/bin/grep ac_cv_path_SED=/usr/bin/sed --disable-csharp
 --disable-java --disable-native-java --disable-openmp --without-emacs
 --with-included-gettext --with-included-glib --with-included-libcroco
 --with-included-libunistring --with-included-libxml --without-cvs
 --without-git --without-xz
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
 checking for gawk... (cached) /usr/bin/awk
 checking whether make sets $(MAKE)... yes
 checking whether make supports nested variables... yes
 checking build system type... x86_64-apple-darwin19.6.0
 checking host system type... x86_64-apple-darwin19.6.0
 checking that generated files are newer than configure... done
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating gnulib-local/Makefile
 === configuring in gettext-runtime
 (/opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.19.8.1
 /gettext-runtime)
 configure: running /bin/sh ./configure --disable-option-checking '--
 prefix=/opt/ports'  'ac_cv_prog_AWK=/usr/bin/awk'
 'ac_cv_path_GREP=/usr/bin/grep' 'ac_cv_path_SED=/usr/bin/sed' '--disable-
 csharp' '--disable-java' '--disable-native-java' '--disable-openmp'
 '--without-emacs' '--with-included-gettext' '--with-included-glib'
 '--with-included-libcroco' '--with-included-libunistring' '--with-
 included-libxml' '--without-cvs' '--without-git' '--without-xz'
 'CC=/usr/local/bin/gcc' 'CFLAGS=-pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch
 x86_64' 'LDFLAGS=-L/opt/ports/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
 -arch x86_64' 'CPPFLAGS=-no-cpp-precomp
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk'
 'CXX=/usr/local/bin/g++' 'CXXFLAGS=-pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch
 x86_64' --cache-file=/dev/null --srcdir=.
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... ../build-aux/install-sh -c -d
 checking for gawk... (cached) /usr/bin/awk
 checking whether make sets $(MAKE)... yes
 checking whether make supports nested variables... yes
 checking for gcc... /usr/local/bin/gcc
 checking whether the C compiler works... no
 configure: error: in
 `/opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.19.8.1
 /gettext-runtime':
 configure: error: C compiler cannot create executables
 See `config.log' for more details
 configure: error: ./configure failed for gettext-runtime
 Command failed:  cd
 "/opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.19.8.1"
 && ./configure --prefix=/opt/ports ac_cv_prog_AWK=/usr/bin/awk
 ac_cv_path_GREP=/usr/bin/grep ac_cv_path_SED=/usr/bin/sed --disable-csharp
 --disable-java --disable-native-java --disable-openmp --without-emacs
 --with-included-gettext --with-included-glib --with-included-libcroco
 --with-included-libunistring --with-included-libxml --without-cvs
 --without-git --without-xz
 Exit code: 77
 Error: Failed to configure gettext, consult
 /opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.19.8.1/config.log
 Error: Failed to configure gettext: configure failure: command execution
 failed
 Error: See
 /opt/ports/var/macports/logs/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port gettext failed
 }}}

 Because an unsupported C preprocessor flag {{{-no-cpp-precomp}}} was added
 from Portfile; from
 {{{/opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.19.8.1
 /gettext-runtime/config.log}}}:
 {{{
 configure:4365: checking whether the C compiler works
 configure:4387: /usr/local/bin/gcc -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch
 x86_64 -no-cpp-pr
 ecomp -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
 -L/opt/ports/lib -Wl,-headerpad_max_install_names -Wl,-syslibr
 oot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64
 conftest.c  >&5
 gcc: error: unrecognized command-line option '-no-cpp-precomp'
 configure:4391: $? = 1
 configure:4429: result: no
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "gettext-runtime"
 | #define PACKAGE_TARNAME "gettext-runtime"
 | #define PACKAGE_VERSION "0.19.8.1"
 | #define PACKAGE_STRING "gettext-runtime 0.19.8.1"
 | #define PACKAGE_BUGREPORT "bug-gnu-gettext at gnu.org"
 | #define PACKAGE_URL ""
 | #define PACKAGE "gettext-runtime"
 | #define VERSION "0.19.8.1"
 | /* end confdefs.h.  */
 |
 | int
 | main ()
 | {
 |
 |   ;
 |   return 0;
 | }
 configure:4434: error: in
 `/opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.19.8.1
 /gettext-runtime':
 configure:4436: error: C compiler cannot create executables
 }}}

 {{{ports/devel/gettext/Portfile}}} contains:
 {{{
 configure.cppflags      -no-cpp-precomp
 }}}
 Commentting this line out fixes the issue.

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


More information about the macports-tickets mailing list