Linking error when building 9base

Sven Schober sschober at sssm.de
Sun May 30 10:12:35 PDT 2010


Hi MacPorters!

I'm trying to create a Portfile for 9base [1], a collection of utilities ported from Plan9 (actually a stripped down version of plan9ports). So i studied a few different Portfiles and came up with a draft, i'll attach to this mail.

Now, my problem is that linking fails with:

LD yacc
ld: library not found for -lcrt0.o
collect2: ld returned 1 exit status
make[1]: *** [yacc] Error 1
make: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd "/Users/sven/.macports/opt/local/var/macports/build/_Users_sven_Fun_macports_ports_sysutils_9base/work/9base-5" && /usr/bin/make -j4 all CC="/usr/bin/gcc-4.2" LDFLAGS="-L/opt/local/lib -static" " returned error 2
DEBUG: Backtrace: shell command " cd "/Users/sven/.macports/opt/local/var/macports/build/_Users_sven_Fun_macports_ports_sysutils_9base/work/9base-5" && /usr/bin/make -j4 all CC="/usr/bin/gcc-4.2" LDFLAGS="-L/opt/local/lib -static" " returned error 2
    while executing


(The full build log is attached to this mail. )

Googling didn't help me much, i only came up with people having problems building universal binaries [2].

I had a look and the SDK seems only to contain a crt1.o: 

-rw-r--r--  1 root  wheel    15K Mar 26 07:12 /Developer/SDKs/MacOSX10.6.sdk/usr/lib/crt1.o

Has anybody an idea, what could be causing this? 

I'm quite new to the whole macports business so please excuse if this is obvious :)


Ciao,
 Sven

[1]<http://tools.suckless.org/9base>
[2]<http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00686.html>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 7750 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20100530/3a961c34/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Portfile
Type: application/octet-stream
Size: 950 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20100530/3a961c34/attachment-0001.obj>


More information about the macports-dev mailing list