Building MacPorts using MacPorts

Anders F Björklund afb at macports.org
Thu Apr 3 23:17:51 PDT 2008


Michael Franz wrote:

> I am trying to use macport to build and install macports.  I used  
> sudo port -v build macports and get build errors.  I find this  
> strange since if I just download the source and compile with the  
> instructions on the website it works without a problem.
>
> cc -dynamiclib -L/usr/local/lib  registry.o util.o entry.o  
> entryobj.o -o registry.dylib -L/System/Library/Frameworks/ 
> Tcl.framework/Versions/8.4 -ltclstub8.4 -arch ppc -arch i386 -L/usr/ 
> local/lib   ../cregistry/cregistry.a -lsqlite3
> ld: warning -L: directory name (/usr/local/lib) does not exist
> ld: warning -L: directory name (/usr/local/lib) does not exist
> ld: warning -L: directory name (/usr/local/lib) does not exist
> ld: warning -L: directory name (/usr/local/lib) does not exist
> ld: archive: ../cregistry/cregistry.a has no table of contents, add  
> one with ranlib(1) (can't load from it)
> ld: archive: ../cregistry/cregistry.a has no table of contents, add  
> one with ranlib(1) (can't load from it)
> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link  
> edit command failed
> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link  
> edit command failed
> lipo: can't figure out the architecture type of: /var/tmp// 
> ccC9sGem.out
> make[2]: *** [registry.dylib] Error 1
> make[1]: *** [all] Error 1
> make: *** [all] Error 1
>
> this is on tiger intel and it also fails on leopard.
>
> Is there a way to build macports with macports?

This is a bug in 1.6.0, fixed in 1.6.1 and later (unreleased).

See http://trac.macports.org/projects/macports/changeset/32105

--anders



More information about the macports-users mailing list