[haiku-bugs] [Haiku] #13220: [Interface Kit] AffineTransform.h doesn't compile with -pendantic

  • From: "diver" <trac@xxxxxxxxxxxx>
  • Date: Tue, 17 Jan 2017 22:27:51 -0000

#13220: [Interface Kit] AffineTransform.h doesn't compile with -pendantic
--------------------------------+------------------------------
 Reporter:  diver               |        Owner:  axeld
     Type:  bug                 |       Status:  new
 Priority:  normal              |    Milestone:  Unscheduled
Component:  Kits/Interface Kit  |      Version:  R1/Development
 Keywords:                      |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  All                 |
--------------------------------+------------------------------
 hrev50880 x86_64

 {{{/system/develop/headers/os/interface/AffineTransform.h}}} doesn't
 compile with {{{-pendantic}}} gcc option


 {{{
 kBuild: Compiling VBoxTray -
 
/sources/VirtualBox-5.1.12/src/VBox/Additions/haiku/VBoxTray/VBoxGuestApplication.cpp
 In file included from
 /boot/system/develop/headers/os/interface/View.h:9:0,
                  from
 /boot/system/develop/headers/os/interface/Window.h:11,
                  from
 /boot/system/develop/headers/os/interface/Alert.h:11,
                  from
 
/sources/VirtualBox-5.1.12/src/VBox/Additions/haiku/VBoxTray/VBoxGuestApplication.cpp:54:
 /boot/system/develop/headers/os/interface/AffineTransform.h:37:42: error:
 floating-point literal cannot appear in a constant-expression
   static const double   kDefaultEpsilon = 1e-14;
                                           ^
 kmk: ***
 
[/sources/VirtualBox-5.1.12/out/haiku.amd64/strict/obj/VBoxTray/VBoxGuestApplication.o]
 Error 1
 The failing command:
 @g++ -c -O2 -g -pipe -pedantic -Wshadow -Wall -Wextra -Wno-missing-field-
 initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-
 unused-parameter    -Wlogical-op   -Wno-variadic-macros -Wno-long-long
 -Wno-overloaded-virtual -Wno-variadic-macros -O2 -mtune=generic -fno-omit-
 frame-pointer -fno-strict-aliasing -fvisibility=hidden
 -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT   -fno-pic -fno-
 exceptions -m64
 -I/sources/VirtualBox-5.1.12/src/VBox/Additions/haiku/include
 -I/sources/VirtualBox-5.1.12/out/haiku.amd64/strict/obj/VBoxTray/dtrace
 -I/sources/VirtualBox-5.1.12/include
 -I/sources/VirtualBox-5.1.12/out/haiku.amd64/strict -DVBOX -DVBOX_OSE
 -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DVBOX_WITH_RAW_MODE
 -DRT_STRICT -DVBOX_STRICT -DRT_OS_HAIKU -DRT_ARCH_AMD64 -D__AMD64__
 -DVBOX_WITH_DEBUGGER -DRT_LOCK_STRICT -DRT_LOCK_STRICT_ORDER
 -DRTPATH_APP_PRIVATE=\"/boot/system/apps/VirtualBox\"
 -DRTPATH_APP_PRIVATE_ARCH=\"/boot/system/apps/VirtualBox\"
 -DRTPATH_SHARED_LIBS=\"/boot/system/apps/VirtualBox\"
 -DRTPATH_APP_DOCS=\"/boot/system/apps/VirtualBox\" -DIN_RING3 -DIN_GUEST
 -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -DVBOX_WITH_HGCM
 -DLOG_TO_BACKDOOR -DLOG_ENABLED -DVBOX_SVN_REV=112440
 
-Wp,-MD,/sources/VirtualBox-5.1.12/out/haiku.amd64/strict/obj/VBoxTray/VBoxGuestApplication.o.dep
 
-Wp,-MT,/sources/VirtualBox-5.1.12/out/haiku.amd64/strict/obj/VBoxTray/VBoxGuestApplication.o
 -Wp,-MP -o
 
/sources/VirtualBox-5.1.12/out/haiku.amd64/strict/obj/VBoxTray/VBoxGuestApplication.o
 
/sources/VirtualBox-5.1.12/src/VBox/Additions/haiku/VBoxTray/VBoxGuestApplication.cpp
 kmk: INTERNAL: Exiting with 3 jobserver tokens available; should be 2!
 Command '['bash', '-c', '. /wrapper-script']' returned non-zero exit
 status 2
 keeping chroot folder /data/ports/app-emulation/virtualbox-guest-
 additions/work-5.1.12 intact for inspection
 }}}

--
Ticket URL: <https://dev.haiku-os.org/ticket/13220>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: