[LLVMbugs] [Bug 10045] New: [PATCH] fix linking on Linux

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 29 05:40:18 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10045

           Summary: [PATCH] fix linking on Linux
           Product: libc++
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: hhinnant at apple.com
        ReportedBy: bugzillas at petteriraty.eu
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6664)
 --> (http://llvm.org/bugs/attachment.cgi?id=6664)
buildit.patch

By default if you follow the instructions you get the problems reported here:

http://thread.gmane.org/gmane.comp.compilers.clang.devel/12942

Using the attached patch and the live ebuild here I was able to use clang++
with libcxx.

http://git.overlays.gentoo.org/gitweb/?p=dev/betelgeuse.git;a=blob;f=sys-libs/libcxx/libcxx-9999.ebuild;h=67b0ff9e1af3b47c59cedebf1213c3cfbe7462a3;hb=0d152a8fdc5e346a07980e61163e114a9f92f9ac

$ clang++ -std=c++0x -stdlib=libc++ test.cpp -o test_clang
$ ./test_clang
Calling foo
�<A�o��w��o�8_����y��������o��w�_������o��w��o��<A�o��w��o�8_����y�P��0���o��w�_��0���o��w��o�

The garbage seems to be a known bug (#8992).

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list