r140697 broke building with shared library enabled

make[1]: Entering directory `/home/hkultala26/src/llvm-trunk/llvm/tools/llvm-config'
llvm[1]: Regenerating LibDeps.txt.tmp
llvm[1]: Checking for cyclic dependencies between LLVM libraries.
find-cycles.pl: Circular dependency between *.a files:
find-cycles.pl: libLLVMPTXAsmPrinter.a libLLVMPTXCodeGen.a libLLVMPTXDesc.a
llvm[1]: Building llvm-config script.
cat: /home/hkultala26/src/llvm-trunk/llvm/tools/llvm-config/FinalLibDeps.txt: No such file or directory
make[1]: *** [/home/hkultala26/src/llvm-trunk/llvm/Debug+Asserts/bin/llvm-config] Error 1
make[1]: Leaving directory `/home/hkultala26/src/llvm-trunk/llvm/tools/llvm-config'

make[1]: Entering directory /home/hkultala26/src/llvm-trunk/llvm/tools/llvm-config' llvm[1]: Regenerating LibDeps.txt.tmp llvm[1]: Checking for cyclic dependencies between LLVM libraries. [find-cycles.pl](http://find-cycles.pl): Circular dependency between *.a files: [find-cycles.pl](http://find-cycles.pl): libLLVMPTXAsmPrinter.a libLLVMPTXCodeGen.a libLLVMPTXDesc.a llvm[1]: Building llvm-config script. cat: /home/hkultala26/src/llvm-trunk/llvm/tools/llvm-config/FinalLibDeps.txt: No such file or directory make[1]: *** [/home/hkultala26/src/llvm-trunk/llvm/Debug+Asserts/bin/llvm-config] Error 1 make[1]: Leaving directory /home/hkultala26/src/llvm-trunk/llvm/tools/llvm-config’

Did you try to re-run configure after pulling that commit?

I just tried a shared build with:
…/configure --enable-optimized --enable-assertions --enable-targets=host,ptx --enable-shared

And the build is successful.

What is your configure line, and system OS?

Not sure it's relevant, but I had the same error from clean GIT repo.
SVN clean repo at the same time gave me no errors.

On both cases, Linux Ubuntu 11.04:

$ cmake ../src
$ make -j12

Did you try to re-run configure after pulling that commit?
I just tried a shared build with:
…/configure --enable-optimized --enable-assertions
–enable-targets=host,ptx --enable-shared
And the build is successful.
What is your configure line, and system OS?

Not sure it’s relevant, but I had the same error from clean GIT repo.
SVN clean repo at the same time gave me no errors.

On both cases, Linux Ubuntu 11.04:

$ cmake …/src
$ make -j12

I’ve applied a fix in r140783.

Renato, Heikki, does this fix the build for you?

yup, thanks!

--renato

yes, thanks.