From owner-freebsd-toolchain@FreeBSD.ORG Mon May 13 11:06:53 2013 Return-Path: Delivered-To: freebsd-toolchain@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 88987A00 for ; Mon, 13 May 2013 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 5FBE085C for ; Mon, 13 May 2013 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4DB6rXR076041 for ; Mon, 13 May 2013 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4DB6q7U076039 for freebsd-toolchain@FreeBSD.org; Mon, 13 May 2013 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 May 2013 11:06:52 GMT Message-Id: <201305131106.r4DB6q7U076039@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-toolchain@FreeBSD.org Subject: Current problem reports assigned to freebsd-toolchain@FreeBSD.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 May 2013 11:06:53 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/175930 toolchain [headers] clang does not define __STDC_ISO_10646__, de 1 problem total. From owner-freebsd-toolchain@FreeBSD.ORG Tue May 14 00:35:56 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AF426190 for ; Tue, 14 May 2013 00:35:56 +0000 (UTC) (envelope-from alex@154cm.com) Received: from nm7-vm0.access.bullet.mail.sp2.yahoo.com (nm7-vm0.access.bullet.mail.sp2.yahoo.com [98.139.44.116]) by mx1.freebsd.org (Postfix) with ESMTP id 7E79D2FF for ; Tue, 14 May 2013 00:35:56 +0000 (UTC) Received: from [98.139.44.100] by nm7.access.bullet.mail.sp2.yahoo.com with NNFMP; 14 May 2013 00:35:50 -0000 Received: from [67.195.14.111] by tm5.access.bullet.mail.sp2.yahoo.com with NNFMP; 14 May 2013 00:35:50 -0000 Received: from [127.0.0.1] by smtp108.sbc.mail.gq1.yahoo.com with NNFMP; 14 May 2013 00:35:50 -0000 X-Yahoo-Newman-Id: 37795.26276.bm@smtp108.sbc.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: PcfK.0IVM1l61EbqoZxgPVkUm47SL8VhcfD2661sF3xqwJn RHBD6W_X40zESidLNcyfsUT.qieh.fT8q0xwspsAjYStW8uCD.e1zuDJrxEP B.oQLuVR3FngK3O2p_Y64dRpuwjH8kaSwd8iw3PI10NYpDphmRvD0I0b6a_. HaCHR7GrZBs6WG6xQiOLprFNkpsSPbq2mqkW3lAyFT8qSLa7PlWXJ7L4VZ0t UE1iM5oX7PMyzPjlZt_ZKgSWHszBtnOfFCbRBnkKrbloozDBbK2AW5ow8CNM UBI0CLQvZb5yPhC8FlaqzBiYTnNy3v3Rk1moqK78pyqgAX3JJevwkR_b_Cbc 6XHPPzRRIlQcrFpzHTlWnEVawl6E8nVDlLWA6thiO_ooV2UB7SRmsjusbuJ2 gPi7s4OrRMPHwPHmU.9bXO93mQ7azaPrFptlfoOTqKyrwhlSisfdEaNflwFx HyIqaEuZkXAieS5fCG3ZV4PyaSzfpREMK X-Yahoo-SMTP: 5Gpe5lSswBBjxDLzXR4T6WeX4oSzvbvEC6CXOr15Kd9FvJA- X-Rocket-Received: from Antikythera (alex@99.189.173.81 with login) by smtp108.sbc.mail.gq1.yahoo.com with SMTP; 13 May 2013 17:35:49 -0700 PDT From: "Alexander K. Beros" To: Subject: missing some c++11 support for clang in FreeBSD Date: Mon, 13 May 2013 17:35:40 -0700 Message-ID: <000301ce503a$fb8e8630$f2ab9290$@154cm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac5QOpjtudyw1K42R8a0dbGbzPwbsg== Content-Language: en-us X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 May 2013 00:35:56 -0000 I have just started using clang (on FreeBSD 9.1 AMD64) and encountered a couple problems. I have worked around these points, but in case they represent something unintentional (as opposed to some error on my part while building from the port) I would like to mention them. I am using FreeBSD clang version 3.1 (branches/release_31 156863) 20120523 Target: x86_64-unknown-freebsd9.0 Thread model: posix A key element in solving both problems was the installation of gcc47. That was unexpected since I initially installed clang under the assumption that FBSD is moving from gcc to clang and since gcc42 doesn't support c++11. 1.. Symptom: %> clang++ -std=c++11 -stdlib=libstdc++ refparms.c++ initListTest.cpp:43:10: fatal error: 'initializer_list' file not found #include I had included initializer_list. Temporary Solution: I built gcc47 from the port and then added the following to my .cshrc file alias clang11 'clang++ -std=c++11 -I/usr/local/lib/gcc47/include/c++ -I/usr/local/lib/gcc47/include/c++/x86_64-portbld- freebsd9.1' Alternate solution, compile using g++47. 2.. Symptom: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.14 required by /usr/home/../binaries/a.out not found Solution: I added the following line to /etc/libmap.conf libstdc++.so.6 gcc47/libstdc++.so.6 again compiling with g++47 had no such problem. Best regards, Alexander From owner-freebsd-toolchain@FreeBSD.ORG Tue May 14 07:01:31 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mandree.no-ip.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by hub.freebsd.org (Postfix) with ESMTP id D7F46D39; Tue, 14 May 2013 07:01:30 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by apollo.emma.line.org (Postfix) with ESMTP id E62C423CEB7; Tue, 14 May 2013 09:01:29 +0200 (CEST) Message-ID: <5191E149.3020801@FreeBSD.org> Date: Tue, 14 May 2013 09:01:29 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: freebsd-toolchain@freebsd.org Subject: Re: missing some c++11 support for clang in FreeBSD References: <000301ce503a$fb8e8630$f2ab9290$@154cm.com> In-Reply-To: <000301ce503a$fb8e8630$f2ab9290$@154cm.com> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 May 2013 07:01:31 -0000 Am 14.05.2013 02:35, schrieb Alexander K. Beros: > > I have just started using clang (on FreeBSD 9.1 AMD64) and encountered a > couple problems. I have worked around these points, but in case they > represent something unintentional (as opposed to some error on my part while > building from the port) I would like to mention them. I am using > > FreeBSD clang version 3.1 (branches/release_31 156863) 20120523 > Target: x86_64-unknown-freebsd9.0 > Thread model: posix Alexander, This version 3.1 of clang did not claim full C++11 support, neither does FreeBSD 9.X at this point. Full C++11 support is targeted at FreeBSD 10 according to the site below. > A key element in solving both problems was the installation of gcc47. That > was unexpected since I initially installed clang under the assumption that > FBSD is moving from gcc to clang and since gcc42 doesn't support c++11. GCC 4.7 is not GCC 4.2, and GCC 4.7 or 4.8 do not claim full C++11 compliance either; additionally, GCC 4.7 and 4.8 label their C++11 support "experimental". > 1.. > Symptom: > > %> clang++ -std=c++11 -stdlib=libstdc++ refparms.c++ > initListTest.cpp:43:10: fatal error: 'initializer_list' file not > found > #include You are mixing clang with the GNU libstdc++. libc++ ships with initializer_list, but on my upgraded-through-many-releases 9.1 amd64, this header does not get installed. See , apparently, you need to make system configuration changes and recompile parts of it. David, is the wiki page up to date WRT FreeBSD 9.1? > 2. > Symptom: > /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.14 required by > /usr/home/../binaries/a.out not found > > Solution: > I added the following line to /etc/libmap.conf > libstdc++.so.6 gcc47/libstdc++.so.6 Again, this is using GNU's libstdc++, not clang's. See above. HTH From owner-freebsd-toolchain@FreeBSD.ORG Tue May 14 07:02:21 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3CD69D5A for ; Tue, 14 May 2013 07:02:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) by mx1.freebsd.org (Postfix) with ESMTP id 066D3666 for ; Tue, 14 May 2013 07:02:21 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::db9:293c:1199:192d] (unknown [IPv6:2001:7b8:3a7:0:db9:293c:1199:192d]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id A0D535C44; Tue, 14 May 2013 09:02:16 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: missing some c++11 support for clang in FreeBSD From: Dimitry Andric In-Reply-To: <000301ce503a$fb8e8630$f2ab9290$@154cm.com> Date: Tue, 14 May 2013 09:02:15 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <2DF8523A-A2A9-4915-9EB4-CADFA952DE23@FreeBSD.org> References: <000301ce503a$fb8e8630$f2ab9290$@154cm.com> To: Alexander K. Beros X-Mailer: Apple Mail (2.1503) Cc: freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 May 2013 07:02:21 -0000 On May 14, 2013, at 02:35, Alexander K. Beros wrote: > I have just started using clang (on FreeBSD 9.1 AMD64) and encountered = a > couple problems. I have worked around these points, but in case they > represent something unintentional (as opposed to some error on my part = while > building from the port) I would like to mention them. I am using >=20 > FreeBSD clang version 3.1 (branches/release_31 156863) 20120523 > Target: x86_64-unknown-freebsd9.0 > Thread model: posix >=20 > A key element in solving both problems was the installation of gcc47. = That > was unexpected since I initially installed clang under the assumption = that > FBSD is moving from gcc to clang and since gcc42 doesn't support = c++11. On FreeBSD 9.1, you first need to build libc++, which provides C++11 support. (On 10.0-CURRENT, it is enabled and installed by default, but not on previous releases.) To build and install libc++ on 9.1, add the following lines to /etc/src.conf: CC=3Dclang CXX=3Dclang++ CPP=3Dclang-cpp WITH_LIBCPLUSPLUS=3Dfoo Then build and install world in the usual manner. If you prefer to only build libc++ (and its support library, libcxxrt) manually, you can do the following: cd /usr/src/lib/libcxxrt make obj && make depend && make sudo make install cd /usr/src/lib/libc++ make obj && make depend && make sudo make install After libc++ is installed, you still need to tell clang to use it instead of GNU libstdc++; see below. > 1..=20 > Symptom: >=20 > %> clang++ -std=3Dc++11 -stdlib=3Dlibstdc++ refparms.c++ > initListTest.cpp:43:10: fatal error: 'initializer_list' file not > found > #include >=20 > I had included initializer_list. To enable libc++, you must add the flag -stdlib=3Dlibc++ instead. If = you use -stdlib=3Dlibstdc++, or no -stdlib option, it will use the base = system version of GNU libstdc++, which is the version that comes with gcc 4.2, and does not support C++11. > Temporary Solution: > I built gcc47 from the port and then added the following to my > .cshrc file > alias clang11 'clang++ -std=3Dc++11 = -I/usr/local/lib/gcc47/include/c++ > -I/usr/local/lib/gcc47/include/c++/x86_64-portbld- freebsd9.1' >=20 > Alternate solution, compile using g++47. This will only work partially, since you still need to make sure to add the proper flags during linking, so clang can find the libstdc++ libraries installed by the gcc47 port. > 2.. > Symptom: > /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.14 required by > /usr/home/../binaries/a.out not found Yes, this is a problem with the gcc ports. They are basically unusable for C++ as-is. Please complain to the maintainer. :-) > Solution: > I added the following line to /etc/libmap.conf > libstdc++.so.6 gcc47/libstdc++.so.6 >=20 > again compiling with g++47 had no such problem. This is a rather brute-force solution, but it should work, since newer versions of libstdc++ are backwards compatible. -Dimitry From owner-freebsd-toolchain@FreeBSD.ORG Tue May 14 07:03:17 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mandree.no-ip.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by hub.freebsd.org (Postfix) with ESMTP id 45161D81 for ; Tue, 14 May 2013 07:03:17 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by apollo.emma.line.org (Postfix) with ESMTP id 7317523CEB7 for ; Tue, 14 May 2013 09:03:16 +0200 (CEST) Message-ID: <5191E1B4.7050509@FreeBSD.org> Date: Tue, 14 May 2013 09:03:16 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: freebsd-toolchain@freebsd.org Subject: Re: missing some c++11 support for clang in FreeBSD References: <000301ce503a$fb8e8630$f2ab9290$@154cm.com> In-Reply-To: <000301ce503a$fb8e8630$f2ab9290$@154cm.com> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 May 2013 07:03:17 -0000 Alexander, one more URL for you regarding c++11 on FreeBSD 9.1: From owner-freebsd-toolchain@FreeBSD.ORG Tue May 14 16:50:59 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 22985479 for ; Tue, 14 May 2013 16:50:59 +0000 (UTC) (envelope-from alex@154cm.com) Received: from nm30.access.bullet.mail.mud.yahoo.com (nm30.access.bullet.mail.mud.yahoo.com [66.94.237.95]) by mx1.freebsd.org (Postfix) with ESMTP id DB33BA21 for ; Tue, 14 May 2013 16:50:58 +0000 (UTC) Received: from [66.94.237.198] by nm30.access.bullet.mail.mud.yahoo.com with NNFMP; 14 May 2013 16:48:37 -0000 Received: from [98.139.221.57] by tm9.access.bullet.mail.mud.yahoo.com with NNFMP; 14 May 2013 16:48:37 -0000 Received: from [127.0.0.1] by smtp110.sbc.mail.bf1.yahoo.com with NNFMP; 14 May 2013 16:48:37 -0000 X-Yahoo-Newman-Id: 290780.25053.bm@smtp110.sbc.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: VgKwmzUVM1mKTVz5EDFPeDI2VtjRFNNCQ3oiIM0LsCcv14C lDQDkDEH3zYEzgUpBmvbO0rkpUZQg4InDm5o1cxXAbdgBYrQcVP_doTcVU7C bOpTGt16r9w5t7HWu7z1kl8VKsFr0rpT6ra9x2qsgDuwdAuUzqSYs4NVOTzw Co0gsjL_OH8Nt4Ol_IgLOuBGvIeChGBOACXY8dgYmWAeeCEMYzDoY035kEm7 ZBnmPjBfzKx_srmiKJ3JNp0mDPq5bngKptk3DJJfPzXYJDm9rSzmkecrG0tw 4vFLdxjMJCWwTyaEjfyya_AWvxrxPO36w77HhmT0eU2FPs73d98xtOV5IJmo hFAr4IdzyierCabQi84K0.tPZ32P1qF9oear7gGPlyB94SMZyk8NWwZwdimO sJDruyIIIZfAAoAH.FN6JJadMiCbTSP7FCjSJ4eFdtcikVlym_dllr4f6Qcf oV7kgbc6yGmvm2DtRnR8tg6i6I6sI5lrJIeB05UCe1kWWmERyvxyCg6Cb31F UIYoFbpx0AY.oiSshIKLCgV.1U1uz709x5_ZS_fOCfokLpFbaXGwTwMRZ5Sp ZLuPHwSsnH4BJPXFKmnYg7MjweuKqAVqS00o.AdaABmjRCr2yU6xvHGUflRh e7Qywb6I0 X-Yahoo-SMTP: 5Gpe5lSswBBjxDLzXR4T6WeX4oSzvbvEC6CXOr15Kd9FvJA- X-Rocket-Received: from Antikythera (alex@99.189.173.81 with login) by smtp110.sbc.mail.bf1.yahoo.com with SMTP; 14 May 2013 09:48:37 -0700 PDT From: "Alexander K. Beros" To: Subject: Re: missing some c++11 support for clang in FreeBSD Date: Tue, 14 May 2013 09:48:27 -0700 Message-ID: <000f01ce50c2$e0bf1620$a23d4260$@154cm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac5QvEzPADoHs0nrQf274nmlJZKXJQ== Content-Language: en-us X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 May 2013 16:50:59 -0000 Mathias and Dimitry, Thank you for taking the time to provide such a detailed and helpful responses. I understood that I was mixing clang with the GNU libstdc++. Some weeks ago I followed the guidelines at https://wiki.freebsd.org/BuildingFreeBSDWithClang , but had subsequent runtime problems with a couple ports after I upgraded them. I regret to say I do not recall which were the ports that failed. In any event I unwound the steps I had taken so that the ports I use built correctly and then implemented the rather heavy-handed solutions I described in my initial email. (Of course, when I said that "...I followed the guidelines...", the possibility certainly exists that I made some mistake.) Your explicit instructions and guidelines together with the links you sent should give me everything I need to get this sorted. Thanks again for taking the time to help me. Best, Alexander http://loyalty.berosfilms.com