Ticket #32093 (closed defect: duplicate)
libmemcached: clang: error: cannot specify -o when generating multiple output files
| Reported by: | jmaclabs@… | Owned by: | brett@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.3 |
| Keywords: | lion clang | Cc: | ryandesign@… |
| Port: | libmemcached |
Description (last modified by ryandesign@…) (diff)
Installation failure due to "shell command failed"
Mac OS X Lion 10.7.2 (11C74) running XCode 4.2 (4D199)
I executed the suggested alternate install commands for those running XCode 4.2 that specify the compiler but I got the same error each time.
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for libmemcached): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install libmemcached
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
while executing
"open [file join $dir tclIndex]"
:notice:build Log for libmemcached is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libmemcached/libmemcached/main.log
Attachments
Change History
comment:3 Changed 18 months ago by ryandesign@…
- Owner changed from macports-tickets@… to ryandesign@…
- Keywords lion added; php5, memcached, lion, xcode removed
- Description modified (diff)
- Cc jmaclabs@… removed
None of the error you've shown is relevant. Please "sudo port clean php5-memcached" and "sudo port install php5-memcached" and attach the main.log.
Changed 18 months ago by jmaclabs@…
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libmemcached/libmemcached/main.log
comment:4 Changed 18 months ago by jmaclabs@…
The log snippet I included in the original description is taken from the main.log. I have attached that log.
The problem appears to be straight forward:
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
while executing
The file 'tclIndex' is not found in the location expected.
Upon investigation of my recently upgraded Mac OS X Lion system, the file was found here:
/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts/tclIndex
I don't know why tclIndex is now located in the "Scripts" directory after my Lion OS upgrade, but, there it is.
comment:5 Changed 18 months ago by ryandesign@…
- Owner changed from ryandesign@… to brett@…
- Cc ryandesign@… added
- Port changed from php5-memcached to libmemcached
- Keywords clang added
- Summary changed from php5-memcached @1.0.2 install fails on mac os x lion with xcode 4.2 to libmemcached: clang: error: cannot specify -o when generating multiple output files
The tclIndex errors are spurious and not related to the problem.
The real first error in the log seems to be:
clang: error: cannot specify -o when generating multiple output files


Checked for presence of 'tclIndex' and it's indeed not found.
Actual location of tclIndex is:
/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts/tclIndex