[llvm-commits] [llvm] r55557 - in /llvm/trunk: Makefile.config.in Makefile.rules autoconf/configure.ac autoconf/m4/visibility_inlines_hidden.m4 configure

Matthijs Kooijman m.kooijman at student.utwente.nl
Tue Sep 2 02:44:41 PDT 2008


Hi Daniel,

> Enable -fvisibility-inlines-hidden by default for compilers which > support it.
This change is causing massive linking failures at least on 32bit linux. I'm
not sure what is causing this exactly, but disabling
-fvisibility-inlines-hidden again fixes the build.

A quick check seems to suggest it does work properly on 64bit linux.

I'm reverting this patch for now. If you need me to test other patches, feel
free to send them over (though I'm only in office for one or two days per
week...)

The errors I'm seeing are like the following (but then over a hundred pages of
them). These errors are generated when linking tablegen, I'm not sure if the
problems are limited to that, or will also occure when linking the tools.

g++ -I/home/kooijman/src/llvm-trunk/include
	-I/home/kooijman/src/llvm-trunk/utils/TableGen -D_DEBUG -D_GNU_SOURCE
	-D__STDC_LIMIT_MACROS -g -fvisibility-inlines-hidden -Woverloaded-virtual
	-pedantic -Wall -W -Wwrite-strings -Wno-long-long -Wunused
	-Wno-unused-parameter -g -o /home/kooijman/src/llvm-trunk/Debug/bin/tblgen
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/AsmWriterEmitter.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/CallingConvEmitter.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/CodeEmitterGen.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/CodeGenDAGPatterns.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/CodeGenInstruction.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/CodeGenTarget.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/DAGISelEmitter.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/FastISelEmitter.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/InstrEnumEmitter.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/InstrInfoEmitter.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/IntrinsicEmitter.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/LLVMCConfigurationEmitter.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/Record.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/RegisterInfoEmitter.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/SubtargetEmitter.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/TGLexer.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/TGParser.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/TableGen.o
	/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/TableGenBackend.o
	-Wl,--export-dynamic  -L/home/kooijman/src/llvm-trunk/Debug/lib
	-lLLVMSupport -lLLVMSystem -lpthread -ldl -lm -Wl,--rpath
	-Wl,/home/kooijman/src/llvm-trunk/Debug/bin
/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/AsmWriterEmitter.o: In
function `llvm::utostr_32(unsigned int, bool)':
/home/kooijman/src/llvm-trunk/include/llvm/ADT/StringExtras.h:58: undefined
reference to `std::allocator<char>::allocator()'
/home/kooijman/src/llvm-trunk/include/llvm/ADT/StringExtras.h:58: undefined
reference to `std::allocator<char>::~allocator()'
/home/kooijman/src/llvm-trunk/include/llvm/ADT/StringExtras.h:58: undefined
reference to `std::allocator<char>::~allocator()'
/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/AsmWriterEmitter.o: In
function `llvm::utostr(unsigned long long, bool)':
/home/kooijman/src/llvm-trunk/include/llvm/ADT/StringExtras.h:77: undefined
reference to `std::allocator<char>::allocator()'
/home/kooijman/src/llvm-trunk/include/llvm/ADT/StringExtras.h:77: undefined
reference to `std::allocator<char>::~allocator()'
/home/kooijman/src/llvm-trunk/include/llvm/ADT/StringExtras.h:77: undefined
reference to `std::allocator<char>::~allocator()'
/home/kooijman/src/llvm-trunk/utils/TableGen/Debug/AsmWriterEmitter.o: In
function `AsmWriterInst':
/home/kooijman/src/llvm-trunk/utils/TableGen/AsmWriterEmitter.cpp:125:
undefined reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::find_first_of(char const*, unsigned int) const'
/home/kooijman/src/llvm-trunk/utils/TableGen/AsmWriterEmitter.cpp:126:
undefined reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::size() const'

Gr.

Matthijs



More information about the llvm-commits mailing list