mvsa
mvsa

Reputation: 65

Using Clang to get function definitions

I would like use clang to get the functions names from a cpp file. I found some tutorials but always I received this error when I executed 'make':

/usr/bin/ld: error: ../../lib/libLLVMSelectionDAG.a: ELF section name out of range collect2: error: ld returned 1 exit status tools/lto/CMakeFiles/LTO.dir/build.make:269: recipe for target 'lib/libLTO.so.7.0.0svn' failed make[2]: * [lib/libLTO.so.7.0.0svn] Error 1 CMakeFiles/Makefile2:18957: recipe for target 'tools/lto/CMakeFiles/LTO.dir/all' failed make[1]: * [tools/lto/CMakeFiles/LTO.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2

Any idea of how can I solve this problem or any tutorial?

Thanks in advance.

Upvotes: 0

Views: 695

Answers (1)

mvsa
mvsa

Reputation: 65

I solved the problem increasing the /dev/sda1 size and removing the file ../../lib/libLLVMSelectionDAG.a After that I only executed 'make' and It worked.

Upvotes: 2

Related Questions