From owner-freebsd-ports@freebsd.org Fri Sep 22 13:40:17 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0EB1FE296DD for ; Fri, 22 Sep 2017 13:40:17 +0000 (UTC) (envelope-from lbartoletti@tuxfamily.org) Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [IPv6:2a01:e0c:1:1599::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D021B6C867; Fri, 22 Sep 2017 13:40:16 +0000 (UTC) (envelope-from lbartoletti@tuxfamily.org) Received: from [192.168.0.66] (unknown [88.184.223.108]) by smtp1-g21.free.fr (Postfix) with ESMTP id D7CEAB00525; Fri, 22 Sep 2017 15:40:13 +0200 (CEST) Subject: Re: Failed to build a port (tempus) on i386 (Boost problems?) To: Dimitry Andric Cc: freebsd-ports@freebsd.org References: From: "L.Bartoletti" Message-ID: Date: Fri, 22 Sep 2017 15:40:13 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2017 13:40:17 -0000 Hi Dimitry, Unfortunately, It can't compile with USE_CXXSTD or when force CMake to use c++11. Maybe a bug with boost? Anyway, according with the developer using this tools on i386 can be problematic. Regards. On 11.09.2017 23:52, Dimitry Andric wrote: > On 11 Sep 2017, at 22:39, L.Bartoletti wrote: >> I'm trying to port the tempus framework on FreeBSD. All packages are nearly ready except the core for i386... >> >> I come to you because I don't understand the difference of the logs between i386 and amd64. I suspect some clang errors and maybe boost, but not sure of myself. >> >> Tempus_core requires c++11. So, I have tested with c++11-lang and c++11-lib without success. > As far as I can see from the logs, your program still needs to add > -std=c++11 (or -std=gnu++11) to its compilation flags. Either the > program's configure or cmake scripts should do this, or you could use > USE_CXXSTD=c++11. > > >> I find a (dirty) solution for 10amd64: force the compiler to be clang40. Unfortunately, it doesn't work on i386... > Not sure why that would be needed. You should be able to compile C++11 > code on 10.x just fine. > > >> All my tests are on my gitlab , containing ports and logs. > These logs contain errors caused by -std=c++11 missing from the > compilation flags. Add that flag to get rid of them. > > -Dimitry >