Opened 12 years ago

Closed 12 years ago

#33386 closed defect (invalid)

Can't install port due to missing tclIndex file

Reported by: tony19@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: expat

Description

I tried to install git-core and it is complaining of a missing file. Here are the last few lines:

:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/expat-2.0.1" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man 
:info:configure checking build system type... i386-apple-darwin11.3.0
:info:configure checking host system type... i386-apple-darwin11.3.0
:info:configure checking for gcc... /usr/bin/clang
:info:configure checking for C compiler default output file name... configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details.
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/expat-2.0.1" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man " returned error 77
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:configure 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:configure Failed to install expat


:debug:configure 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:configure Log for expat is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log

Attachments (3)

main.log (11.6 KB) - added by tony19@… 12 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log
main.2.log (4.0 KB) - added by tony19@… 12 years ago.
Update of […]/python27/main.log
main.3.log (31.4 KB) - added by tony19@… 12 years ago.
Update of […]/python27/main.log

Download all attachments as: .zip

Change History (13)

Changed 12 years ago by tony19@…

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log

comment:1 Changed 12 years ago by tony19@…

Cc: tony19@… added

Cc Me!

comment:2 in reply to:  description Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: tony19@… removed
Port: git-core python27 removed

Replying to tony19@…:

I tried to install git-core and it is complaining of a missing file.

No, that is not why; that error is irrelevant; the earlier error is the one to pay attention to:

:info:configure checking for C compiler default output file name... configure: error: C compiler cannot create executables

Per wiki:FAQ#missingxcode, this means Xcode is not installed, or not installed properly. Or, per wiki:ProblemHotlist#xcode43, if you are using Xcode 4.3, it means you need to update to MacPorts 2.0.4.

comment:3 Changed 12 years ago by tony19@…

I was using Xcode 4.2 with MacPort 2.0.4. I just installed Xcode 4.3, but there's still a problem (although it seems to be different error than before).

:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.2" && /usr/bin/make -j4 -w all MAKE="/usr/bin/make CC=/usr/bin/clang"
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.2'
:info:build /bin/sh: line 1: 61217 Segmentation fault: 11  DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.2: CC='/usr/bin/llvm-gcc-4.2' LDSHARED='/usr/bin/llvm-gcc-4.2 -bundle -undefined dynamic_lookup -L/opt/local/lib -arch x86_64' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./python.exe -E ./setup.py -q --no-user-cfg build
:info:build make: *** [sharedmods] Error 139
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.2'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.2" && /usr/bin/make -j4 -w all MAKE="/usr/bin/make CC=/usr/bin/clang" " returned error 2
: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 python27): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install python27
: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]"

Changed 12 years ago by tony19@…

Attachment: main.2.log added

Update of [...]/python27/main.log

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Yes, that's a completely different error now.

The new error log you attached contains lines that say "Skipping completed", meaning this is not a clean build attempt. Please clean ("sudo port clean python27") and try again.

Changed 12 years ago by tony19@…

Attachment: main.3.log added

Update of [...]/python27/main.log

comment:5 Changed 12 years ago by tony19@…

Ok, just cleaned and retried but same original error occurred.

$ sudo port clean python27
--->  Cleaning python27

$ sudo port install python27
--->  Computing dependencies for python27
--->  Fetching archive for python27
--->  Attempting to fetch python27-2.7.2_4.darwin_11.x86_64.tbz2 from http://packages.macports.org/python27
--->  Fetching python27
--->  Verifying checksum(s) for python27
--->  Extracting python27
--->  Applying patches to python27
--->  Configuring python27
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for python27 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

$

comment:6 Changed 12 years ago by tony19@…

I reinstalled 4.2.1 and was then able to install git-core (and its dependencies, including Python 2.7) successfully as a result.

comment:7 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

The new main.log you attached shows:

:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details

That's yet another error. The config.log might have provided more details, but per our FAQ it usually means Xcode is not installed properly. Since reinstalling Xcode fixed the problem for you, I'll close the ticket.

comment:8 Changed 12 years ago by toby.fernsler@…

I had the same problem trying to install py-spyder, where tclIndex not being where it was expected seemed to be the problem. I couldn't find the xcode uninstall script (if there is one), so I just trashed xcode.app and I'm reinstalling it.

comment:9 in reply to:  8 Changed 12 years ago by toby.fernsler@…

Resolution: invalid
Status: closedreopened

Replying to toby.fernsler@…:

I had the same problem trying to install py-spyder, where tclIndex not being where it was expected seemed to be the problem. I couldn't find the xcode uninstall script (if there is one), so I just trashed xcode.app and I'm reinstalling it.

Well that didn't work. Here's my error message:

:info:destroot running install_scripts
:info:destroot changing mode of /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-spyder/py27-spyder/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/spyder to 755
:info:destroot running install_egg_info
:info:destroot Removing /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-spyder/py27-spyder/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spyder-2.1.8-py2.7.egg-info
:info:destroot Writing /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-spyder/py27-spyder/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spyder-2.1.8-py2.7.egg-info
:debug:destroot Executing proc-post-org.macports.destroot-destroot-0
:debug:destroot Executing proc-post-org.macports.destroot-destroot-1
:error:destroot Target org.macports.destroot returned: ln: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-spyder/py27-spyder/work/destroot/opt/local/bin/spyder: File exists
:debug:destroot Backtrace: ln: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-spyder/py27-spyder/work/destroot/opt/local/bin/spyder: File exists
    while executing
"$post $targetname"
:info:destroot Warning: the following items did not execute (for py27-spyder): org.macports.activate org.macports.destroot org.macports.install
:error:destroot Failed to install py27-spyder
:debug:destroot couldn't open "/usr/lib/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:destroot Log for py27-spyder is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-spyder/py27-spyder/main.log

For the error where the spyder "file exists", that file is a link to

lrwxr-xr-x   1 root          admin   70 Apr  9 12:02 spyder -> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/spyder 

The link target doesn't exist. Most of the other python frameworks are in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/, and linked to from /opt/local/bin/, not from

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-spyder/py27-spyder/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/ 

which isn't where any of the other builds happened and looks suspiciously recursive. Since everything else builds fine, I think the paths are being constructed incorrectly.

comment:10 Changed 12 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: reopenedclosed

Please don't reopen this ticket. It was indeed a user configuration problem.

Note: See TracTickets for help on using tickets.