[LLVMbugs] [Bug 18310] New: Clang fails with undefined reference to `_ZTIDn' when C++11 support is enabled
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Dec 22 08:52:32 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18310
Bug ID: 18310
Summary: Clang fails with undefined reference to `_ZTIDn' when
C++11 support is enabled
Product: clang
Version: 3.3
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: hongli at phusion.nl
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I am trying to compile Phusion Passenger (www.phusionpassenger.org, git master
as found at https://github.com/phusion/passenger) on FreeBSD 10.0 with Clang
3.3. When -std=gnu++11 or -std=c++11 is given, Clang fails with the following
while linking the PassengerHelperAgent executable:
buildout/agents/PassengerHelperAgent.o: In function
`_ZNK5boost13function_base6targetIDnEEPKT_v':
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/ext/boost/function/function_base.hpp:670:
undefined reference to `_ZTIDn'
Removing the -std=... flag makes the error go away.
This only appears to happen on FreeBSD. Compiling Phusion Passenger with
-std=gnu++11/c++11 on Mac OS X 10.9 with Apple Clang 5.0 (clang-500.2.79)
(based on LLVM 3.3svn) does not result in any linker errors.
Is this a problem in Clang or a problem in the Phusion Passenger code? Here are
the instructions for compiling Phusion Passenger.
1. Download the git master source code from Github.
2. Run ./bin/passenger-install-apache2-module. It will check for required
dependencies and run the build system and the compiler. Install any missing
dependencies it tells you about.
3. Watch Clang fail when linking PassengerHelperAgent.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131222/82f83597/attachment.html>
More information about the llvm-bugs
mailing list