> Did Xcode 3.1.4 already include clang?
No. I installed llvm+clang-2.6-i386-darwin9.tar.gz from llvm.org.
Using the default /usr/bin/as (Apple Inc version cctools-698.1~1, GNU assembler version 1.38) OR the llvm-v2.6 llvm-as symlinked to /usr/local/bin/as (with /usr/local/bin occurring in the path before /usr/bin) and:
make clean all FPC="/usr/local/lib/fpc/3.0.4/ppc386" CROSSBINDIR="/Users/trev/bin/clang/bin/" OS_TARGET=darwin CPU_TARGET=i386 CPU_SOURCE=i386
results in:
/bin/mkdir -p i386/units/i386-darwin
/usr/local/share/fpcsrc/fpc-3.2.0/compiler/ppc1 -Ur -Xs -O2 -n -Fui386 -Fusystems -Fu/usr/local/share/fpcsrc/fpc-3.2.0/rtl/units/i386-darwin -Fii386 -FD/Users/trev/bin/clang/bin/ -FE. -FUi386/units/i386-darwin -dRELEASE -Aas-darwin -di386 -dGDB -dBROWSERLOG -Fux86 -Sew pp.pas
ld: could not find entry point "start" (perhaps missing crt1.o)
An error occurred while linking
pp.pas(266,1) Error: Error while linking
pp.pas(266,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[5]: *** [ppc386] Error 1
make[4]: *** [next] Error 2
make[3]: *** [ppc2] Error 2
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.i386-darwin] Error 2
crt1.o exists in:
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/crt1.o
/usr/lib/crt1.o