r300912: compile failure in world: event.cc:438:45: error: invalid suffix on literal;

O. Hartmann ohartman at zedat.fu-berlin.de
Sat May 28 22:04:35 UTC 2016

Am Sat, 28 May 2016 15:20:15 -0600
Alan Somers <asomers at freebsd.org> schrieb:

> On Sat, May 28, 2016 at 3:04 PM, O. Hartmann
> <ohartman at 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 -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?

Compiler is CLANG/LLVM, target arch is amd64, in that case, an oldish IvyBridge, but it
fails the same way on Haswell as well. 64bit.

For buildworld, I use in /etc/src.conf this since an eternity (measured in the metrik of

CPUTYPE?=               native
CFLAGS+=                -O3 -pipe
# for the kernel
COPTFLAGS+=             -O3 -pipe
CXXFLAGS+=              -std=c++11

As it has been earlier stated, there is no -std=c++11 visible in the cc options, only

The compiler gives the right suggestion itself, but someone should fix and commit ...


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20160529/5f890110/attachment.sig>

More information about the freebsd-current mailing list