Help please

James Linder jam at tigger.ws
Sun Feb 19 16:46:43 PST 2012


On 20/02/2012, at 4:41 AM, Ryan Schmidt wrote:

> On Feb 19, 2012, at 06:21, James Linder wrote:
> 
>> On 19/02/2012, at 4:34 PM, Ryan Schmidt wrote:
>> 
>>> On Feb 18, 2012, at 23:06, James Linder wrote:
>>> 
>>>> On 19/02/2012, at 10:22 AM, Ryan Schmidt wrote:
>>>> 
>>>>> On Feb 18, 2012, at 19:49, James Linder wrote:
>>>>> 
>>>>>> sh-3.2# port install libgnome
>>>>>> Error: Unable to open port: couldn't read file "/opt/local/share/macports/Tcl/port1.0/portmirror.tcl": no such file or directory
>>>>> 
>>>>> Please clean ("sudo port clean libgnome") and try again, using the debug flag ("sudo port -d install libgnome") so we can get more information.
>>>>> 
>>>>> The error "couldn't read file "/opt/local/share/macports/Tcl/port1.0/portmirror.tcl": no such file or directory" is spurious and can be ignored. There should be a different, real error elsewhere in the debug output that we can act upon.
>>>> 
>>>> 
>>>> Sorry!
>>>> 
>>>> sh-3.2# port -d install libgnome
>>>> DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gnome/libgnome
>>>> DEBUG: OS darwin/10.8.0 (Mac OS X 10.6) arch i386
>>>> DEBUG: couldn't read file "/opt/local/share/macports/Tcl/port1.0/portmirror.tcl": no such file or directory
>>> 
>>> Ok, I take it back; the error message is real. And /opt/local/share/macports/Tcl/port1.0/portmirror.tcl should exist. If it does not, reinstall MacPorts. This will not affect the ports you've installed.
>> 
>> OK totally lost, so please suggest this or that.
>> I knowingly and willfully did nothing other than allow firefox to upgrade, but clearly there is trouble here:
> 
> Yes, at least one of the files which comprises MacPorts base appears to be missing. I can't explain why that would be, but it doesn't matter much either; just replace them by reinstalling MacPorts.
> 
>> I can format and reinstall *everything* if need be ....
> 
> I don't see any evidence yet that would suggest that would be necessary.
> 
> 
>> I re-installed macports from the dmg and got errors.
> 
> This should have worked, so please elaborate on the problems you experienced.
> 
>> I moved /opt/local to /opt/oldlocal and reinstalled.
> 
> Using the dmg again? And now it succeeded?
-------------------------------------------------------------------------------
As below - fail
-------------------------------------------------------------------------------

>> Errors again:
>> 
>> haycorn:~ # port selfupdate
>> --->  Updating the ports tree
>> --->  Updating MacPorts base sources using rsync
>> MacPorts base version 2.0.0 installed,
>> MacPorts base version 2.0.3 downloaded.
>> --->  MacPorts base is outdated, installing new version 2.0.3
>> Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl
>> 
>> Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)
>> 
>> I looked for 'error' in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/config.log
>> 
>> and got this mess:
>> haycorn:~ # grep error /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/config.log 
>> Configured with: /var/tmp/llvmgcc42/llvmgcc42-2335.9~9/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --enable-llvm=/var/tmp/llvmgcc42/llvmgcc42-2335.9~9/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/usr/include/c++/4.2.1
>> Configured with: /var/tmp/gcc/gcc-5666.3~123/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
>> conftest.m:12:28: error: ac_nonexistent.h: No such file or directory
>> conftest.m:12:28: error: ac_nonexistent.h: No such file or directory
>> /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:33:31: error: CarbonCore/Finder.h: No such file or directory
> 
> I'm a bit unclear why MacPorts base would have any need for any part of Carbon. Can you "sudo port -d selfupdate" and show us the output?

I included the whole log, I don't know which bits are ignorable ...
To repeat: This is a clean install of macports on a machine that has worked in the past
Ryan thanks for your help

I yesterday posted all the 'error' lines from the log. I guess they are still the same.

haycorn:~ # port -d selfupdate
--->  Updating the ports tree
DEBUG: Synchronizing ports tree(s)
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
DEBUG: /usr/bin/rsync -rtzv --delete-after  rsync://rsync.macports.org/release/tarballs/ports.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
ports.tar

sent 49373 bytes  received 22670 bytes  13098.73 bytes/sec
total size is 49595904  speedup is 688.42
DEBUG: /usr/bin/rsync -rtzv --delete-after  rsync://rsync.macports.org/release/tarballs/ports.tar.rmd160 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
ports.tar.rmd160

sent 64 bytes  received 636 bytes  280.00 bytes/sec
total size is 512  speedup is 0.73
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports.tar
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports
Adding port audio/audiofile
Adding port graphics/libpng
Adding port graphics/pngcrush
Adding port lang/gcc47
Adding port php/php5-cairo
Adding port python/py-sip
Adding subport py24-sip
Adding subport py25-sip
Adding subport py26-sip
Adding subport py27-sip
Adding subport py31-sip
Adding subport py32-sip
Adding port www/phpmyadmin
Adding port x11/wine-devel

Total number of ports parsed:	14 
Ports successfully parsed:	14 
Ports failed:			0 
Up-to-date ports skipped:	13630

DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
--->  Updating MacPorts base sources using rsync
receiving file list ... done
base.tar

sent 10864 bytes  received 111 bytes  3135.71 bytes/sec
total size is 3226624  speedup is 294.00
receiving file list ... done
base.tar.rmd160

sent 64 bytes  received 116 bytes  51.43 bytes/sec
total size is 512  speedup is 2.84
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base.tar
MacPorts base version 2.0.0 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.0.3 downloaded.
--->  MacPorts base is outdated, installing new version 2.0.3
DEBUG: Permissions OK
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

checking build system type... x86_64-apple-darwin10.8.0
checking host system type... x86_64-apple-darwin10.8.0
checking target system type... x86_64-apple-darwin10.8.0
checking MacPorts version... 2.0.3
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.6.8
checking Xcode location... /Developer
checking Xcode version... 4.0.2
checking for gcc... /usr/bin/cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/cc accepts -g... yes
checking for /usr/bin/cc option to accept ISO C89... none needed
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... yes
checking whether gcc accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for mtree... /usr/sbin/mtree
checking for chown... /usr/sbin/chown
checking for cp... /bin/cp
checking for cpio... /usr/bin/cpio
checking for diff... /usr/bin/diff
checking for dscl... /usr/bin/dscl
checking for dseditgroup... /usr/sbin/dseditgroup
checking for file... /usr/bin/file
checking for bzr... no
checking for cvs... /usr/bin/cvs
checking for svn... /usr/bin/svn
checking for git... /usr/bin/git
checking for hg... no
checking for gzip... /usr/bin/gzip
checking for lipo... /usr/bin/lipo
checking for patch... /usr/bin/patch
checking for rmdir... /bin/rmdir
checking for rsync... /usr/bin/rsync
checking for openssl... /usr/bin/openssl
checking for sed... /usr/bin/sed
checking for tar... /usr/bin/tar
checking for unzip... /usr/bin/unzip
checking for zip... /usr/bin/zip
checking for bsdmake... /usr/bin/bsdmake
checking for make... /usr/bin/make
checking for hdiutil... /usr/bin/hdiutil
checking for launchd... yes
checking for launchctl... /bin/launchctl
checking for xcodebuild... /usr/bin/xcodebuild
checking for gnutar... /usr/bin/gnutar
checking for gnumake... /usr/bin/gnumake
checking for gnupatch... no
checking for gpatch... no
checking for bzip2... /usr/bin/bzip2
checking for lzma... no
checking for xz... no
checking for lsbom... /usr/bin/lsbom
checking for mkbom... /usr/bin/mkbom
checking for pax... /bin/pax
checking for xar... /usr/bin/xar
checking for open... /usr/bin/open
checking for sed... (cached) /usr/bin/sed
checking which sed flag to use for extended regexp... -E (BSD)
checking for tar... (cached) /usr/bin/tar
checking whether tar supports -q... yes (bsdtar)
checking for tar... (cached) /usr/bin/tar
checking for gnutar... (cached) /usr/bin/gnutar
checking for which tar variant to use... /usr/bin/gnutar
checking for /usr/bin/gnutar --no-same-owner support... yes
checking for patch... (cached) /usr/bin/patch
checking for gpatch... no
checking for GNU (FSF) patch... /usr/bin/patch
checking how to mark unused variables... 
checking for gcc symbol visibility attribute... __attribute__((visibility("hidden")))
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking how to run the Objective C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking objc/objc.h usability... yes
checking objc/objc.h presence... yes
checking for objc/objc.h... yes
checking if linking libobjc requires pthreads... no
checking for Apple Objective-C runtime... yes
checking for GNU Objective C runtime... no
configure: Using Apple Objective-C runtime
checking for Apple Foundation library... no
configure: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library
configure: error: Could not find a working Foundation implementation
shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install" returned error 1
DEBUG: Error installing new MacPorts base: shell command failed (see log for details)
    while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)


Cheers
James


More information about the macports-users mailing list