macPorts selfupdate returned error 1

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

macPorts selfupdate returned error 1

Howard Baumer
I haven’t run macports for 5+ years and tried updating it.  This is what I got.  Any help would be greatly appreciated.  Or should I just uninstall and reinstall?

Command:
[HowardsLaptop:~] howard% sudo port -d selfupdate >&! portSelfupdateLog.txt

Here’s the debug log:

Warning: No index(es) found! Have you synced your source indexes?
--->  Updating the ports tree
DEBUG: Synchronizing ports tree(s)
Synchronizing local ports tree from <a href="rsync://rsync.macports.org/release/ports/" class="">rsync://rsync.macports.org/release/ports/
DEBUG: /usr/bin/rsync -rtzv --delete-after <a href="rsync://rsync.macports.org/release/ports/" class="">rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports

Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.

Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.


receiving file list ... done

sent 16 bytes  received 850988 bytes  27016.00 bytes/sec
total size is 160787705  speedup is 188.94
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/base
--->  Updating MacPorts base sources using rsync

Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.

Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.


receiving file list ... done
skipping non-regular file "vendor/tcl"
skipping non-regular file "vendor/tcllib"
skipping non-regular file "vendor/tclx"
skipping non-regular file "vendor/thread"
./
vendor/
deleting config.log
deleting confdefs.h
deleting vendor/tcl/unix/
deleting vendor/tcl/

sent 28 bytes  received 180741 bytes  11662.52 bytes/sec
total size is 78708953  speedup is 435.41
MacPorts base version 1.8.2 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.4.1 downloaded.
--->  MacPorts base is outdated, installing new version 2.4.1
DEBUG: Permissions OK
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

configure: WARNING: unrecognized options: --with-tclpackage
checking build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking target system type... x86_64-apple-darwin15.6.0
checking MacPorts version... 2.4.1
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.11.6
checking Xcode location... /Applications/Xcode.app/Contents/Developer
checking Xcode version... 8.0
checking for clang... clang
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 clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for clang... clang
checking whether we are using the GNU Objective C compiler... yes
checking whether clang accepts -g... yes
checking for bsdmake... no
checking for pmake... no
checking for bzip2... /usr/bin/bzip2
checking for bzr... no
checking for chown... /usr/sbin/chown
checking for cp... /bin/cp
checking for cpio... /usr/bin/cpio
checking for cvs... no
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 find... /usr/bin/find
checking for git... /usr/bin/git
checking for gnumake... /usr/bin/gnumake
checking for gnupatch... no
checking for gpatch... no
checking for gnutar... no
checking for gtar... no
checking for gzip... /usr/bin/gzip
checking for hdiutil... /usr/bin/hdiutil
checking for hg... no
checking for launchctl... /bin/launchctl
checking for lipo... /usr/bin/lipo
checking for lsbom... /usr/bin/lsbom
checking for lzma... no
checking for make... /usr/bin/make
checking for man... /usr/bin/man
checking for mdfind... /usr/bin/mdfind
checking for mdls... /usr/bin/mdls
checking for mkbom... /usr/bin/mkbom
checking for mtree... /usr/sbin/mtree
checking for open... /usr/bin/open
checking for openssl... /usr/bin/openssl
checking for patch... /usr/bin/patch
checking for pax... /bin/pax
checking for rmdir... /bin/rmdir
checking for rsync... /usr/bin/rsync
checking for sandbox-exec... /usr/bin/sandbox-exec
checking for sed... /usr/bin/sed
checking for svn... /usr/bin/svn
checking for swig... no
checking for tar... /usr/bin/tar
checking for unzip... /usr/bin/unzip
checking for xar... /usr/bin/xar
checking for xcodebuild... /usr/bin/xcodebuild
checking for xcrun... /usr/bin/xcrun
checking for xz... no
checking for zip... /usr/bin/zip
checking for launchd... yes
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... no
checking for which tar variant to use... /usr/bin/tar
checking for /usr/bin/tar --no-same-owner support... no
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... clang -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... yes
configure: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library
configure: Using Apple Foundation library
checking for CoreFoundation framework... yes
checking for SystemConfiguration framework... yes
checking for IOKit framework... yes
checking for CFNotificationCenterGetDarwinNotifyCenter... yes
checking for whether we will build daemondo... yes
checking for ports tree... configure: WARNING: No ports tree found
checking for MacPorts config directory... ${sysconfdir}/macports
checking for install user... root
checking for install group... admin
checking for macports user... macports
checking what permissions to use for installation directories... 0755
checking for Applications installation directory... /Applications/MacPorts
checking for Frameworks installation directory... /opt/local/Library/Frameworks
checking for Universal CPU architectures... x86_64 i386
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/wait.h that is POSIX.1 compatible... yes
checking crt_externs.h usability... yes
checking crt_externs.h presence... yes
checking for crt_externs.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libkern/OSAtomic.h usability... yes
checking libkern/OSAtomic.h presence... yes
checking for libkern/OSAtomic.h... yes
checking libproc.h usability... yes
checking libproc.h presence... yes
checking for libproc.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking spawn.h usability... yes
checking spawn.h presence... yes
checking for spawn.h... yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking sys/event.h usability... yes
checking sys/event.h presence... yes
checking for sys/event.h... yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/paths.h usability... yes
checking sys/paths.h presence... yes
checking for sys/paths.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for OSAtomicCompareAndSwap32... yes
checking for OSAtomicCompareAndSwap64... yes
checking for OSAtomicCompareAndSwapPtr... yes
checking for __getdirentries64... yes
checking for bzero... yes
checking for clearenv... no
checking for copyfile... yes
checking for fgetln... yes
checking for flock... yes
checking for fls... yes
checking for kqueue... yes
checking for lockf... yes
checking for memset... yes
checking for posix_spawn... yes
checking for setmode... yes
checking for strcasecmp... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strncasecmp... yes
checking for sysctlbyname... yes
checking if readlink conforms to POSIX 1003.1a... yes
checking CommonCrypto/CommonDigest.h usability... yes
checking CommonCrypto/CommonDigest.h presence... yes
checking for CommonCrypto/CommonDigest.h... yes
checking for readline in -lreadline... yes
checking whether rl_username_completion_function is declared... no
checking whether rl_filename_completion_function is declared... yes
checking whether rl_completion_matches is declared... yes
checking whether username_completion_function is declared... yes
checking whether filename_completion_function is declared... yes
checking whether completion_matches is declared... yes
checking for target platform... darwin 15
checking for curl-config... /usr/bin/curl-config
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking sqlite3ext.h usability... yes
checking sqlite3ext.h presence... yes
checking for sqlite3ext.h... yes
checking for SQLite >= 3003011... yes
checking for kqueue... (cached) yes
checking for kevent... yes
checking whether trace mode is supported on this platform... yes
configure: === configuring in vendor/tcl/unix (/opt/local/var/macports/sources/rsync.macports.org/release/base/vendor/tcl/unix)
configure: error: no configure script found in vendor/tcl/unix
DEBUG: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && ./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
    while executing
"macports::selfupdate [array get global_options]"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && ./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



Howard

______________________________
Howard Baumer

Reply | Threaded
Open this post in threaded view
|

Re: macPorts selfupdate returned error 1

Mojca Miklavec-2
On 19 May 2017 at 10:36, Howard Baumer wrote:
> I haven’t run macports for 5+ years and tried updating it.  This is what I
> got.  Any help would be greatly appreciated.  Or should I just uninstall and
> reinstall?

There are migration instructions:
     https://trac.macports.org/wiki/Migration

But in some cases (depending on your exact circumstances) MacPorts
only guarantees "compatibility" for one year. It may work longer, but
we certainly don't test what happens with upgrades after five years.

I don't know how to explain your particular problem and didn't try to
look at the sources (it's not even clear to me why MacPorts is being
built from source rather than fetched from the binary archive), but
you probably upgraded a bunch of OSes during those five years. You'll
get least headaches by uninstalling all ports, removing MacPorts and
doing a clean install.

Mojca
Reply | Threaded
Open this post in threaded view
|

Re: macPorts selfupdate returned error 1

Howard Baumer
Thanks Mojca,  uninstall of ports, clearing out the old macPorts and installing for El Capitain did the trick

thanks,
Howard


______________________________
Howard Baumer
[hidden email]





> On May 19, 2017, at 12:21 PM, Mojca Miklavec <[hidden email]> wrote:
>
> On 19 May 2017 at 10:36, Howard Baumer wrote:
>> I haven’t run macports for 5+ years and tried updating it.  This is what I
>> got.  Any help would be greatly appreciated.  Or should I just uninstall and
>> reinstall?
>
> There are migration instructions:
>    https://trac.macports.org/wiki/Migration
>
> But in some cases (depending on your exact circumstances) MacPorts
> only guarantees "compatibility" for one year. It may work longer, but
> we certainly don't test what happens with upgrades after five years.
>
> I don't know how to explain your particular problem and didn't try to
> look at the sources (it's not even clear to me why MacPorts is being
> built from source rather than fetched from the binary archive), but
> you probably upgraded a bunch of OSes during those five years. You'll
> get least headaches by uninstalling all ports, removing MacPorts and
> doing a clean install.
>
> Mojca

Reply | Threaded
Open this post in threaded view
|

Re: macPorts selfupdate returned error 1

Daniel J. Luke
Glad it's working for you - this was actually this bug:

https://trac.macports.org/ticket/53414

(you had a very old config option in your macports.conf file that caused the build to fail)

> On May 19, 2017, at 8:56 AM, Howard Baumer <[hidden email]> wrote:
> Thanks Mojca,  uninstall of ports, clearing out the old macPorts and installing for El Capitain did the trick

--
Daniel J. Luke