Ticket #22534 (closed defect: fixed)
expat falls to configure
| Reported by: | jacksmoo111@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.1 |
| Keywords: | Cc: | ||
| Port: | expat |
Description (last modified by snc@…) (diff)
SETB-MOBL-M104:~ setbc$ sudo port -d install coreutils +i386 +x86_64
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/coreutils
Warning: Implicit variants should not be explicitly set or unset. i386 will be ignored.
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/coreutils
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port coreutils.
DEBUG: Requested variant i386 is not provided by port coreutils.
DEBUG: Requested variant macosx is not provided by port coreutils.
DEBUG: Requested variant x86_64 is not provided by port coreutils.
---> Computing dependencies for coreutils
DEBUG: Searching for dependency: gettext
DEBUG: Didn't find receipt, going to depspec regex for: gettext
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port gettext.
DEBUG: Requested variant i386 is not provided by port gettext.
DEBUG: Requested variant macosx is not provided by port gettext.
DEBUG: Requested variant x86_64 is not provided by port gettext.
DEBUG: Searching for dependency: gmp
DEBUG: Didn't find receipt, going to depspec regex for: gmp
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gmp
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gmp
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port gmp.
DEBUG: Requested variant i386 is not provided by port gmp.
DEBUG: Requested variant macosx is not provided by port gmp.
DEBUG: Requested variant x86_64 is not provided by port gmp.
DEBUG: Searching for dependency: libiconv
DEBUG: Didn't find receipt, going to depspec regex for: libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port libiconv.
DEBUG: Requested variant i386 is not provided by port libiconv.
DEBUG: Requested variant macosx is not provided by port libiconv.
DEBUG: Requested variant x86_64 is not provided by port libiconv.
DEBUG: Searching for dependency: libiconv
DEBUG: Didn't find receipt, going to depspec regex for: libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Searching for dependency: ncurses
DEBUG: Didn't find receipt, going to depspec regex for: ncurses
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port ncurses.
DEBUG: Requested variant i386 is not provided by port ncurses.
DEBUG: Requested variant macosx is not provided by port ncurses.
DEBUG: Requested variant x86_64 is not provided by port ncurses.
DEBUG: Executing variant darwin_10 provides darwin_10
DEBUG: Searching for dependency: expat
DEBUG: Didn't find receipt, going to depspec regex for: expat
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port expat.
DEBUG: Requested variant i386 is not provided by port expat.
DEBUG: Requested variant macosx is not provided by port expat.
DEBUG: Requested variant x86_64 is not provided by port expat.
DEBUG: Searching for dependency: ncursesw
DEBUG: Didn't find receipt, going to depspec regex for: ncursesw
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port ncursesw.
DEBUG: Requested variant i386 is not provided by port ncursesw.
DEBUG: Requested variant macosx is not provided by port ncursesw.
DEBUG: Requested variant x86_64 is not provided by port ncursesw.
DEBUG: Executing variant darwin_10 provides darwin_10
DEBUG: Searching for dependency: gperf
DEBUG: Didn't find receipt, going to depspec regex for: gperf
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port gperf.
DEBUG: Requested variant i386 is not provided by port gperf.
DEBUG: Requested variant macosx is not provided by port gperf.
DEBUG: Requested variant x86_64 is not provided by port gperf.
DEBUG: Executing org.macports.main (expat)
DEBUG: Skipping completed org.macports.fetch (expat)
DEBUG: Skipping completed org.macports.checksum (expat)
DEBUG: Skipping completed org.macports.extract (expat)
DEBUG: Skipping completed org.macports.patch (expat)
---> Configuring expat
DEBUG: Using compiler 'Mac OS X gcc 4.2'
DEBUG: Executing org.macports.configure (expat)
DEBUG: Environment: CFLAGS='-O2 -arch i386 x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch i386 x86_64' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' F90FLAGS='-O2 -m32' LDFLAGS='-L/opt/local/lib' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-O2 -m32' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch i386 x86_64' FFLAGS='-O2 -m32' CC='/usr/bin/gcc-4.2'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/expat-2.0.1" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man'
checking build system type... i386-apple-darwin10.2.0
checking host system type... i386-apple-darwin10.2.0
checking for gcc... /usr/bin/gcc-4.2
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/expat-2.0.1" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man " returned error 77
Command output: checking build system type... i386-apple-darwin10.2.0
checking host system type... i386-apple-darwin10.2.0
checking for gcc... /usr/bin/gcc-4.2
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
DEBUG: Backtrace: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/expat-2.0.1" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man " returned error 77
Command output: checking build system type... i386-apple-darwin10.2.0
checking host system type... i386-apple-darwin10.2.0
checking for gcc... /usr/bin/gcc-4.2
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
while executing
"$procedure $targetname"
Warning: the following items did not execute (for expat): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: The following dependencies failed to build: gettext expat libiconv gperf ncurses ncursesw gmp
Error: Status 1 encountered during processing.
Attachments
Change History
comment:2 Changed 4 years ago by snc@…
- Priority changed from High to Normal
- Cc jacksmoo111@… removed
- Description modified (diff)
- Owner changed from macports-tickets@… to nox@…
comment:3 Changed 4 years ago by snc@…
- Owner changed from nox@… to ryandesign@…
- Port set to expat
- Summary changed from Coreutls falls to buld to expat falls to configure
comment:4 in reply to: ↑ description Changed 4 years ago by ryandesign@…
Replying to jacksmoo111@…:
SETB-MOBL-M104:~ setbc$ sudo port -d install coreutils +i386 +x86_64
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/coreutils
Warning: Implicit variants should not be explicitly set or unset. i386 will be ignored.
Note that you don't select the +i386 or +powerpc variant manually; MacPorts selects it for you when it's appropriate (based on your hardware).
Note that there is never a variant called +x86_64, or +ppc, or +ppc64. If it's your intention to install coreutils with both the i386 and x86_64 architectures, then you want the +universal variant, and to set universal_archs to "x86_64 i368" in macports.conf. (This is the default for universal_archs on Snow Leopard.)
checking for C compiler default output file name... configure: error: C compiler cannot create executables
This error usually means you don't have Xcode installed.
If you upgraded from a previous Mac OS X version, you may have an older Xcode installed. If so, upgrade to Xcode 3.2 or later. Current version is 3.2.1.
If you upgraded from a previous Mac OS X version, uninstall all ports and reinstall them now that you have Snow Leopard. For more, see Migration.
comment:6 Changed 4 years ago by ryandesign@…
Which version?
Could you attach the config.log? Maybe it will tell us more.
comment:7 follow-up: ↓ 8 Changed 4 years ago by jacksmoo111@…
latest Version Where is config.log i installed macports by dmg
comment:8 in reply to: ↑ 7 Changed 4 years ago by ryandesign@…
Replying to jacksmoo111@…:
latest Version
So that's 3.2.1?
Where is config.log
In the expat source directory, which is in the directory identified by the command port work expat
comment:9 Changed 4 years ago by ryandesign@…
The problem is definitely:
configure:2498: /usr/bin/gcc-4.2 -O2 -arch i386 x86_64 -I/opt/local/include -L/opt/local/lib conftest.c >&5 i686-apple-darwin10-gcc-4.2.1: x86_64: No such file or directory
It thinks "x86_64" is a file it should be compiling. Assuming you are using the +universal variant, it should say "-arch i386 -arch x86_64" to indicate that we want two architectures. I'm unsure how the architectures ended up smooshed together like that. If you are not using the +universal variant, it should just say "-arch x86_64". Could you attach your macports.conf as well? Please add a comment when you have; Trac doesn't send email notifications when you attach files.
comment:10 follow-up: ↓ 11 Changed 4 years ago by jacksmoo111@…
where is macports.conf
comment:11 in reply to: ↑ 10 Changed 4 years ago by ryandesign@…
- Status changed from new to assigned
Replying to jacksmoo111@…:
where is macports.conf
/opt/local/etc/macports/macports.conf
I am able to reproduce your issue if I set build_arch to "i386 x86_64" in macports.conf. If you've set build_arch that way, then please change it back to "x86_64" only. build_arch is not intended to have more than one value. If you want to build for multiple architectures at once, then you need to set universal_archs instead and use the +universal variant when installing ports.
comment:12 Changed 4 years ago by jacksmoo111@…
File added
comment:13 Changed 4 years ago by jacksmoo111@…
i dident mean to compile in 64 bit it doent matter what arch i compile in just get macports working
comment:14 Changed 4 years ago by ryandesign@…
As you see, on line 59 of your macports.conf, you've set "build_arch i386 x86_64". This isn't a legal value for build_arch. It must be a single architecture only. Since you are on Snow Leopard, the default is "x86_64", and that is the value you should set build_arch to unless you have a specific reason not to.
I've filed #22557 requesting MacPorts base detect an improper value in build_arch and alert the user, rather than trying to proceed and causing the more-confusing situation you encountered.
comment:15 Changed 4 years ago by jacksmoo111@…
everything works :-}
comment:16 Changed 4 years ago by snc@…
A suggested prevention for this is in #22557.
comment:17 Changed 4 years ago by ryandesign@…
- Status changed from assigned to closed
- Resolution set to fixed


Cc Me!