Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 May 2016 14:47:45 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Dimitry Andric <dim@FreeBSD.org>, Alan Somers <asomers@freebsd.org>
Cc:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>, FreeBSD CURRENT <freebsd-current@freebsd.org>, Bryan Drewery <bdrewery@FreeBSD.org>
Subject:   Re: r300912: compile failure in world: event.cc:438:45: error: invalid suffix on literal;
Message-ID:  <df6c5065-302f-5651-6427-27405040a63f@FreeBSD.org>
In-Reply-To: <77081524-8F53-47D2-9A0B-CB634A87634E@FreeBSD.org>
References:  <20160528230443.31ee2003.ohartman@zedat.fu-berlin.de> <CAOtMX2gGtDrhrnKSbEsKhKZ6p=SZ-m42=vLKhuY3tYocXnn_jA@mail.gmail.com> <77081524-8F53-47D2-9A0B-CB634A87634E@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/28/16 2:43 PM, Dimitry Andric wrote:
> On 28 May 2016, at 23:20, Alan Somers <asomers@freebsd.org> wrote:
>>
>> On Sat, May 28, 2016 at 3:04 PM, O. Hartmann
>> <ohartman@zedat.fu-berlin.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?df6c5065-302f-5651-6427-27405040a63f>