pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54454: meta-pkgs/netbsd-www fails at xplanet with clang



>Number:         54454
>Category:       pkg
>Synopsis:       meta-pkgs/netbsd-www fails at xplanet with clang
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 10 22:50:00 +0000 2019
>Originator:     ng0
>Release:        current
>Organization:
>Environment:
NetBSD uptimegirl 9.99.4 NetBSD 9.99.4 (GENERIC) amd64

>Description:
Installing meta-pkgs/netbsd-www-1.10 leads to a failed xplanet build with the errors below on a system with
clang from base, used for pkgsrc.



clang++ -DHAVE_CONFIG_H -I. -I..  -DDATADIR=\"/usr/pkg/share/xplanet\"  -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -I/usr/pkg/include/fribidi -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include -I/usr/pkg/include/harfbuzz   -I/usr/X11R7/include -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include/libdrm  -O2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include/libdrm -MT readConfig.o -MD -MP -MF .deps/readConfig.Tpo -c -o readConfig.o readConfig.cpp
readConfig.cpp:52:44: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
readConfig.cpp:52:44: note: insert an explicit cast to silence this issue
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
readConfig.cpp:52:54: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                     ^~~~~~~~
readConfig.cpp:52:54: note: insert an explicit cast to silence this issue
  ...unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                          ^~~~~~~~
                                          static_cast<unsigned char>( )
readConfig.cpp:52:64: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                               ^~~~~~~~
readConfig.cpp:52:64: note: insert an explicit cast to silence this issue
  ...char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
readConfig.cpp:182:44: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
readConfig.cpp:182:44: note: insert an explicit cast to silence this issue
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
readConfig.cpp:182:54: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                     ^~~~~~~~
readConfig.cpp:182:54: note: insert an explicit cast to silence this issue
  ...unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                          ^~~~~~~~
                                          static_cast<unsigned char>( )
readConfig.cpp:182:64: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                               ^~~~~~~~
readConfig.cpp:182:64: note: insert an explicit cast to silence this issue
  ...char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
readConfig.cpp:247:44: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
readConfig.cpp:247:44: note: insert an explicit cast to silence this issue
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
readConfig.cpp:247:54: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                     ^~~~~~~~
readConfig.cpp:247:54: note: insert an explicit cast to silence this issue
  ...unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                          ^~~~~~~~
                                          static_cast<unsigned char>( )
readConfig.cpp:247:64: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                               ^~~~~~~~
readConfig.cpp:247:64: note: insert an explicit cast to silence this issue
  ...char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
readConfig.cpp:299:44: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
readConfig.cpp:299:44: note: insert an explicit cast to silence this issue
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
readConfig.cpp:299:54: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                     ^~~~~~~~
readConfig.cpp:299:54: note: insert an explicit cast to silence this issue
  ...unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                          ^~~~~~~~
                                          static_cast<unsigned char>( )
readConfig.cpp:299:64: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                               ^~~~~~~~
readConfig.cpp:299:64: note: insert an explicit cast to silence this issue
  ...char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
readConfig.cpp:406:44: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };                                           ^~~~~~~~
readConfig.cpp:406:44: note: insert an explicit cast to silence this issue
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
readConfig.cpp:406:54: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                     ^~~~~~~~
readConfig.cpp:406:54: note: insert an explicit cast to silence this issue
  ...unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                          ^~~~~~~~
                                          static_cast<unsigned char>( )
readConfig.cpp:406:64: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                               ^~~~~~~~
readConfig.cpp:406:64: note: insert an explicit cast to silence this issue
  ...char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
readConfig.cpp:476:44: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
readConfig.cpp:476:44: note: insert an explicit cast to silence this issue
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
readConfig.cpp:476:54: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                     ^~~~~~~~
readConfig.cpp:476:54: note: insert an explicit cast to silence this issue
  ...unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                          ^~~~~~~~
                                          static_cast<unsigned char>( )
readConfig.cpp:476:64: error: non-constant-expression cannot be narrowed from
      type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                unsigned char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                                               ^~~~~~~~
readConfig.cpp:476:64: note: insert an explicit cast to silence this issue
  ...char color[3] = { r & 0xff, g & 0xff, b & 0xff };
                                           ^~~~~~~~
                                           static_cast<unsigned char>( )
18 errors generated.
gmake[3]: *** [Makefile:455: readConfig.o] Error 1
gmake[3]: Leaving directory '/usr/work/x11/xplanet/work/xplanet-1.3.0/src'
gmake[2]: *** [Makefile:475: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/work/x11/xplanet/work/xplanet-1.3.0/src'
gmake[1]: *** [Makefile:435: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/work/x11/xplanet/work/xplanet-1.3.0'
gmake: *** [Makefile:310: all] Error 2
*** Error code 2

Stop.
make[2]: stopped in /usr/pkgsrc/x11/xplanet
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/x11/xplanet
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/meta-pkgs/netbsd-www

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index