Óscar,
Thanks for the help. I think I'm closer now ... hopefully; although
I'm still getting the same error. The "gcc -v" output looks very
similar to yours now. Do you see any other obvious configuration
issues? I don't know what to try next....
$ ~/Desktop/Build/JamCloud/JamCloudServer$ gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../llvm-gcc-svn/configure --prefix=/home/cjones/
Desktop/Install/llvm-gcc-svn --program-prefix=llvm- --enable-
languages=c,c++ --disable-multilib --enable-llvm=/home/cjones/Desktop/
Install/llvm
$ ~/Desktop/Install/llvm/bin/clang -fblocks -v -o a.out main.c
clang version 1.1 (http://llvm.org/svn/llvm-project/cfe/trunk )
Target: x86_64-unknown-linux-gnu
Thread model: posix
"/home/cjones/Desktop/Install/llvm/bin/../libexec/clang-cc" -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name main.c --
relocation-model static --disable-fp-elim --unwind-tables=1 --
mcpu=x86-64 --fmath-errno=1 -v -fblocks -fdiagnostics-show-option -o /
tmp/cc.s -x c main.c
clang-cc version 1.1 based upon llvm 2.7svn hosted on x86_64-unknown-
linux-gnu
ignoring nonexistent directory "/System/Library/Frameworks"
ignoring nonexistent directory "/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/home/cjones/Desktop/Install/llvm/lib/clang/1.1/include
/usr/local/include
/usr/include
End of search list.
"/home/cjones/Desktop/Install/llvm-gcc-svn/bin/gcc" -fblocks -v -c -
m64 -o /tmp/cc.o -x assembler /tmp/cc.s
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../llvm-gcc-svn/configure --prefix=/home/cjones/
Desktop/Install/llvm-gcc-svn --program-prefix=llvm- --enable-
languages=c,c++ --disable-multilib --enable-llvm=/home/cjones/Desktop/
Install/llvm
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5653) (LLVM build)
as --traditional-format -V -Qy --64 -o /tmp/cc.o /tmp/cc.s
GNU assembler version 2.19.1 (x86_64-linux-gnu) using BFD version (GNU
Binutils for Ubuntu) 2.19.1
"/home/cjones/Desktop/Install/llvm-gcc-svn/bin/gcc" -fblocks -v -m64
-o a.out /tmp/cc.o
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../llvm-gcc-svn/configure --prefix=/home/cjones/
Desktop/Install/llvm-gcc-svn --program-prefix=llvm- --enable-
languages=c,c++ --disable-multilib --enable-llvm=/home/cjones/Desktop/
Install/llvm
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5653) (LLVM build)
/home/cjones/Desktop/Install/llvm-gcc-svn/libexec/gcc/x86_64-unknown-
linux-gnu/4.2.1/collect2 --eh-frame-hdr -m elf_x86_64 -dynamic-linker /
lib64/ld-linux-x86-64.so.2 -o a.out /usr/lib/../lib64/crt1.o /usr/
lib/../lib64/crti.o /home/cjones/Desktop/Install/llvm-gcc-svn/lib/gcc/
x86_64-unknown-linux-gnu/4.2.1/crtbegin.o -L/home/cjones/Desktop/
Install/llvm-gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.2.1 -L/home/
cjones/Desktop/Install/llvm-gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/
4.2.1/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/home/
cjones/Desktop/Install/llvm-gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/
4.2.1/../../.. /tmp/cc.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -
lgcc --as-needed -lgcc_s --no-as-needed /home/cjones/Desktop/Install/
llvm-gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.2.1/crtend.o /usr/
lib/../lib64/crtn.o
/tmp/cc.o:(.rodata+0x0): undefined reference to `_NSConcreteGlobalBlock'
collect2: ld returned 1 exit status
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
> Your llvm-gcc is not using llvm. Please see README.LLVM on gcc source
> root directory.
>
> This is how llvm-gcc -v looks when properly built:
>
> oscar at qcore
> :~/dev/llvm$ gcc-bin/bin/llvm-gcc -v
> Using built-in specs.
> Target: x86_64-unknown-linux-gnu
> Configured with: ../gcc/configure --disable-multilib --prefix=/home/
> oscar/dev/llvm/gccbuild/../gcc-bin --program-prefix=llvm- --enable-
> llvm=/home/oscar/lib/llvm64StaticRelease/ --enable-languages=c,c++
> Thread model: posix
> gcc version 4.2.1 (Based on Apple Inc. build 5653) (LLVM build)
>
> `--enable-llvm` is the key `configure` option for using LLVM with
> llvm-gcc.
>
> Apart from this, if you use cmake to build LLVM, you must pass the
> path
> to the *install* directory of LLVM to --enable-llvm, this means that
> you
> must execute `make install` on the directory where you built llvm. The
> variable CMAKE_INSTALL_PREFIX may be interesting to you on this
> regard,
> see the cmake docs.
>
> That said, it is possible that the problem about the undefined
> reference
> is not related to llvm-gcc.
--
Curtis Jones
curtisjones.us
404.723.3728
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2427 bytes
Desc: not available
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20090923/69681a24/attachment.bin>