Opened 7 years ago
Closed 7 years ago
#54267 closed defect (invalid)
While trying to install a port I got "Error: Failed to configure lbzip2"
Reported by: | SchmollTroll | Owned by: | eborisch (Eric A. Borisch) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.1 |
Keywords: | Cc: | raimue@… | |
Port: | lbzip2 |
Description
Hi there,
While trying to install the port "argyll" I got an error with lbzip2.
The main.log is attached. Thanks for your attention!
Attachments (2)
Change History (7)
Changed 7 years ago by SchmollTroll
Attachment: | lbzip2_main.log added |
---|
comment:1 Changed 7 years ago by raimue (Rainer Müller)
The log points to a problem with your Xcode installation:
:info:configure checking whether the C compiler works... no :info:configure configure: 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': :info:configure configure: error: C compiler cannot create executables :info:configure See `config.log' for more details
The config.log
in the directory mentioned might contain more clues. You could also just try running /usr/bin/clang --version
from a shell. Have you installed Xcode and the Command Line Tools?
comment:2 Changed 7 years ago by SchmollTroll
Thanks for your fast answer. I have the regular XCode 5.1.1 (seems to be the regular version vor OS X 10.8) with the cli tools.
/usr/bin/clang --version shows me the following:
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin12.6.0
Thread model: posix
I have already installed many ports that all seem to work so far.
I attach the config.log from the path /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_lbzip2/lbzip2/work/lbzip2-2.5/config.log
Changed 7 years ago by SchmollTroll
Attachment: | config.log added |
---|
lbzip2 config.log from the compiler
comment:3 Changed 7 years ago by raimue (Rainer Müller)
Cc: | raimue@… added |
---|---|
Owner: | set to eborisch |
Status: | new → assigned |
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
comment:4 Changed 7 years ago by SchmollTroll
THANKS A LOT!!!
universal_archs x86_64 i386 ppc
Shame on me! This was my problem - no clue why this was in my config file. All working fine now.
comment:5 Changed 7 years ago by mf2k (Frank Schima)
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
MacPort lbzip2 main.log