From owner-freebsd-current@freebsd.org Sat May 28 21:47:53 2016 Return-Path: Delivered-To: freebsd-current@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 0CC40B4EA8A for ; Sat, 28 May 2016 21:47:53 +0000 (UTC) (envelope-from bdrewery@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 EF3DC17E5; Sat, 28 May 2016 21:47:52 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id E88C81A0F; Sat, 28 May 2016 21:47:52 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 9D0741DFE9; Sat, 28 May 2016 21:47:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id uNAhjpJGQf_5; Sat, 28 May 2016 21:47:49 +0000 (UTC) Subject: Re: r300912: compile failure in world: event.cc:438:45: error: invalid suffix on literal; DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com B44311DFDC To: Dimitry Andric , Alan Somers References: <20160528230443.31ee2003.ohartman@zedat.fu-berlin.de> <77081524-8F53-47D2-9A0B-CB634A87634E@FreeBSD.org> Cc: "O. Hartmann" , FreeBSD CURRENT , Bryan Drewery From: Bryan Drewery Organization: FreeBSD Message-ID: Date: Sat, 28 May 2016 14:47:45 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <77081524-8F53-47D2-9A0B-CB634A87634E@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2016 21:47:53 -0000 On 5/28/16 2:43 PM, Dimitry Andric wrote: > On 28 May 2016, at 23:20, Alan Somers wrote: >> >> On Sat, May 28, 2016 at 3:04 PM, O. Hartmann >> wrote: >>> Recent CURRENT r300912 fails to buildworld with the error shown below: >>> >>> [...] >>> cc -O2 -pipe -O3 -O3 -pipe -march=native -DNDEBUG -MD -MF.depend.alias_skinny.o >>> -MTalias_skinny.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Wno-pointer-sign I only see std=gnu99 here ^^ and no std=c++11. >>> -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare >>> -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion >>> -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter >>> -Wno-parentheses -Qunused-arguments >>> -c /usr/src/lib/libalias/modules/skinny/../../../../sys/netinet/libalias/alias_skinny.c >>> -o alias_skinny.o --- all_subdir_lib/libdevdctl --- --- event.So >>> --- /usr/src/lib/libdevdctl/event.cc:438:45: error: invalid suffix on literal; C++11 >>> requires a space between literal and identifier [-Wreserved-user-defined-literal] >>> snprintf(timebuf, bufsize, " timestamp=%"PRId64, >> >> Those aren't the usual CFLAGS. What are your environment, compiler, >> and target architecture? > > There seems to be something that is adding -std=c++11 unconditionally to > the CXXFLAGS for a C++ library. I'm adding Bryan on CC, who may know > how this comes to pass. > > That said, putting a space between the double quote and PRId64 > identifier would be handy in any case. > > -Dimitry > -- Regards, Bryan Drewery