[MacPorts] #54267: While trying to install a port I got "Error: Failed to configure lbzip2"

MacPorts noreply at macports.org
Fri Jun 2 12:32:03 UTC 2017


#54267: While trying to install a port I got "Error: Failed to configure lbzip2"
---------------------------+----------------------
  Reporter:  SchmollTroll  |      Owner:  eborisch
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.4.1
Resolution:                |   Keywords:
      Port:  lbzip2        |
---------------------------+----------------------
Changes (by raimue):

 * cc: raimue@… (added)
 * owner:   => eborisch
 * status:  new => assigned


Comment:

 I missed that this was an attempt to build lbzip2 +universal (that is, for
 more than one architecture). This was implied by argyll, because it can
 only be built as i386.

 {{{
 configure:4643: checking whether the C compiler works
 configure:4665: /usr/bin/clang -pipe -Os -arch x86_64 -arch i386 -arch ppc
 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names
 -arch x86_64 -arch i386 -arch ppc conftest.c  >&5
 error: unable to create target: 'No available targets are compatible with
 this triple, see -version for the available targets.'
 1 error generated.
 configure:4669: $? = 1
 configure:4707: result: no
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "lbzip2"
 | #define PACKAGE_TARNAME "lbzip2"
 | #define PACKAGE_VERSION "2.5"
 | #define PACKAGE_STRING "lbzip2 2.5"
 | #define PACKAGE_BUGREPORT ""
 | #define PACKAGE_URL ""
 | #define PACKAGE "lbzip2"
 | #define VERSION "2.5"
 | /* end confdefs.h.  */
 |
 | int
 | main ()
 | {
 |
 |   ;
 |   return 0;
 | }
 configure:4712: error: in
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_lbzip2/lbzip2/work/lbzip2-2.5':
 configure:4714: error: C compiler cannot create executables
 }}}

 This log shows that it tried to build for i386, x86_64, and ppc. I assume
 you do not actually want to produce binaries for PowerPC. Please check the
 value of the option `universal_archs` in
 `/opt/local/etc/macports/macports.conf`. It is supposed to only list
 x86_64 and i386 for Intel Macs as shown below. And while you are at it,
 also compare and replace other values with their defaults as defined in
 `macports.conf.default` right next to the configuration file.

 {{{
 universal_archs         x86_64 i386
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/54267#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list