sudo port selfupdate fails

Johannes Ruscheinski ruschein at gmail.com
Mon Sep 5 19:04:31 PDT 2011


Hi Ryan,

The next problem that I am running into now is:

...
Failed to parse file x11/mesa/Portfile: invalid command name
"get_canonical_archflags"

Total number of ports parsed:	1079
Ports successfully parsed:	0
Ports failed:			1079
Up-to-date ports skipped:	7126

DEBUG: MacPorts sources location:
/opt/local/var/macports/sources/rsync.macports.org/release/base
--->  Updating MacPorts base sources using rsync
receiving file list ... done
./
Mk/
doc/
portmgr/freebsd/
src/
src/cregistry/
...
eleting src/registry2.0/registry_autoconf.tcl
deleting src/registry2.0/registry.o
deleting src/registry2.0/entryobj.o
deleting src/registry2.0/entry.o

sent 114 bytes  received 6887 bytes  4667.33 bytes/sec
total size is 2966586  speedup is 423.74
MacPorts base version 1.9.99 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.0.2 downloaded.
--->  MacPorts base is outdated, installing new version 2.0.2
DEBUG: Permissions OK
Installing new MacPorts release in /opt/local as root:admin;
permissions 0755; Tcl-Package in /Library/Tcl
...
===> making all in src/package1.0
===> making all in src/pextlib1.0
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common Pextlib.c -o Pextlib.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common strsed.c -o strsed.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common fgetln.c -o fgetln.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common md5cmd.c -o md5cmd.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common setmode.c -o setmode.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common xinstall.c -o xinstall.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common fs-traverse.c -o fs-traverse.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common strcasecmp.c -o strcasecmp.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common vercomp.c -o vercomp.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common filemap.c -o filemap.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common base32cmd.c -o base32cmd.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common sha1cmd.c -o sha1cmd.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common curl.c -o curl.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common rmd160cmd.c -o rmd160cmd.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common sha256cmd.c -o sha256cmd.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common readline.c -o readline.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common uid.c -o uid.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common tracelib.c -o tracelib.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common tty.c -o tty.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common readdir.c -o readdir.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common pipe.c -o pipe.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common flock.c -o flock.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common system.c -o system.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common mktemp.c -o mktemp.o
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic     -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"
-fno-common realpath.c -o realpath.o
/usr/bin/llvm-gcc-4.2 -dynamiclib -g -O2 -W -Wall -pedantic
-Wl,-single_module Pextlib.o strsed.o fgetln.o md5cmd.o setmode.o
xinstall.o fs-traverse.o strcasecmp.o vercomp.o filemap.o base32cmd.o
sha1cmd.o curl.o rmd160cmd.o sha256cmd.o readline.o uid.o tracelib.o
tty.o readdir.o pipe.o flock.o system.o mktemp.o realpath.o -o
Pextlib.dylib -L/System/Library/Frameworks/Tcl.framework/Versions/8.5
-ltclstub8.5   -lcurl  -lreadline
===> making all in src/registry2.0
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic
-I/Library/Frameworks/Mono.framework/Versions/2.2/include
-DHAVE_CONFIG_H -I.. -I.  -I"/usr/include" -fno-common registry.c -o
registry.o
In file included from ../cregistry/registry.h:35,
                 from registry.c:39:
/Library/Frameworks/Mono.framework/Versions/2.2/include/sqlite3.h:198:
warning: ISO C90 does not support 'long long'
/Library/Frameworks/Mono.framework/Versions/2.2/include/sqlite3.h:199:
warning: ISO C90 does not support 'long long'
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic
-I/Library/Frameworks/Mono.framework/Versions/2.2/include
-DHAVE_CONFIG_H -I.. -I.  -I"/usr/include" -fno-common util.c -o
util.o
In file included from util.h:36,
                 from util.c:37:
/Library/Frameworks/Mono.framework/Versions/2.2/include/sqlite3.h:198:
warning: ISO C90 does not support 'long long'
/Library/Frameworks/Mono.framework/Versions/2.2/include/sqlite3.h:199:
warning: ISO C90 does not support 'long long'
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic
-I/Library/Frameworks/Mono.framework/Versions/2.2/include
-DHAVE_CONFIG_H -I.. -I.  -I"/usr/include" -fno-common entry.c -o
entry.o
In file included from entry.c:36:
/Library/Frameworks/Mono.framework/Versions/2.2/include/sqlite3.h:198:
warning: ISO C90 does not support 'long long'
/Library/Frameworks/Mono.framework/Versions/2.2/include/sqlite3.h:199:
warning: ISO C90 does not support 'long long'
/usr/bin/llvm-gcc-4.2 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W
-Wall -pedantic
-I/Library/Frameworks/Mono.framework/Versions/2.2/include
-DHAVE_CONFIG_H -I.. -I.  -I"/usr/include" -fno-common entryobj.c -o
entryobj.o
In file included from entryobj.c:36:
/Library/Frameworks/Mono.framework/Versions/2.2/include/sqlite3.h:198:
warning: ISO C90 does not support 'long long'
/Library/Frameworks/Mono.framework/Versions/2.2/include/sqlite3.h:199:
warning: ISO C90 does not support 'long long'
/usr/bin/llvm-gcc-4.2 -dynamiclib -g -O2 -W -Wall -pedantic
-I/Library/Frameworks/Mono.framework/Versions/2.2/include
-Wl,-single_module registry.o util.o entry.o entryobj.o
../cregistry/cregistry.a -o registry.dylib
-L/System/Library/Frameworks/Tcl.framework/Versions/8.5 -ltclstub8.5
-L/Library/Frameworks/Mono.framework/Versions/2.2/lib -lsqlite3
ld: warning: ignoring file
/Library/Frameworks/Mono.framework/Versions/2.2/lib/libsqlite3.dylib,
missing required architecture x86_64 in file
Undefined symbols for architecture x86_64:
  "_sqlite3_errmsg", referenced from:
      _set_sqlite_result in util.o
      _reg_sqlite_error in cregistry.a(registry.o)
      _reg_detach in cregistry.a(registry.o)
      _reg_close in cregistry.a(registry.o)
      _reg_attach in cregistry.a(registry.o)
      _reg_open in cregistry.a(registry.o)
  "_sqlite3_mprintf", referenced from:
      _set_object in util.o
      _set_entry in util.o
      _get_object in util.o
      _reg_sqlite_error in cregistry.a(registry.o)
      _reg_detach in cregistry.a(registry.o)
      _reg_attach in cregistry.a(registry.o)
      _reg_open in cregistry.a(registry.o)
      ...
  "_sqlite3_free", referenced from:
...

Any idea what to do about that?


On 5 September 2011 18:01, Ryan Schmidt <ryandesign at macports.org> wrote:
>
> On Sep 5, 2011, at 19:59, Johannes Ruscheinski wrote:
>
>>>> Creating port index in /opt/mports/trunk/dports
>>>> Failed to parse file archivers/arj/Portfile: invalid command name
>>>> "get_canonical_archflags"
>>>>
>>>
>>>
>>>> Any idea what might be wrong and how to fix it?
>>>
>>> This is normal, unfortunately, for users upgrading from MacPorts 1.x now. get_canonical_archs, installs_libs, and others, are new commands only MacPorts 2 understands. We should not have been trying to rebuild the port index when upgrading the MaCPorts version. We've already fixed this for the future, but unfortunately can't do anything about it for users upgrading from 1.x. Despite all these errors, you should now have MacPorts 2 installed, and simply running selfupdate again should rebuild the port index correctly with MacPorts 2.
>>
>> I did interrupt this before it was done.  I assume it should be fine
>> just doing it again (twice?).  Am I correct?
>
> Yes, I believe that should be fine.
>
>
>



-- 
Johannes

Obligatory current favourite quotes:

"We are all atheists about most of the gods that societies have ever
believed in. Some of us just go one god further."
--Richard Dawkins

"Religion is regarded by the common people as true, by the wise as
false, and by the rulers as useful".
 -- Seneca
"I have more confidence in the methods of science, based on the amazing
record of science and its ability over the centuries to answer
unanswerable questions, than I do in the methods of faith (what are they?)."
 -- David J. Gross "Physics Nobel Laureate"

"Atheism is a religion to the same extent that not collecting stamps is a
 hobby."
 -- seen on Slashdot.org

http://xkcd.com/808/


More information about the macports-users mailing list