Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 May 2016 00:07:06 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Alan Somers <asomers@freebsd.org>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: r300912: compile failure in world: event.cc:438:45: error: invalid suffix on literal;
Message-ID:  <20160529000706.1c1e582d.ohartman@zedat.fu-berlin.de>
In-Reply-To: <CAOtMX2gGtDrhrnKSbEsKhKZ6p=SZ-m42=vLKhuY3tYocXnn_jA@mail.gmail.com>
References:  <20160528230443.31ee2003.ohartman@zedat.fu-berlin.de> <CAOtMX2gGtDrhrnKSbEsKhKZ6p=SZ-m42=vLKhuY3tYocXnn_jA@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Am Sat, 28 May 2016 15:20:15 -0600
Alan Somers <asomers@freebsd.org> schrieb:

> 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 -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
11-CURRENT):

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
-std=gnu99.

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

Regards,

Oliver

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXShaKAAoJEOgBcD7A/5N816kIALrsjoPNYTf2jz3CXoNlZRAm
fygg2uBTUXog04A5OxZ+89kNpol1wZOsyg36QBXcMVEC6W3WtC9cDHRFdjWweH9U
jMYu66O4kpBblitmx9E4Hv1JrYPr+rutvsrvN6IvdL4Wa+ckEGpv7iR7ityS1/UX
aAcSLqFRR/3iBld0e3xAnZcKxmaFFvg6HgUQSi0JC4prQqaJB9+Y2o8evRTsnB+N
Q4ZzSRfdeXkzyttdMnNqZY/rAMlDfMEHCA9/MOUSoje8Upeuou2IFJQDItBvgTat
W1XGRGmIAPsb0VPx3MTVnaFTpJwN5O4BznxHaKC2g5IVrmDqKr6X5KDeWDUCWdk=
=sDvN
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160529000706.1c1e582d.ohartman>