[haiku-bugs] Re: [Haiku] #13382: Haiku build fails under host gcc 7.0.1 due to agg base_type

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Sat, 18 Mar 2017 22:54:42 -0000

#13382: Haiku build fails under host gcc 7.0.1 due to agg base_type
----------------------------------+----------------------------
   Reporter:  kallisti5           |      Owner:  axeld
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  Unscheduled
  Component:  Servers/app_server  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Comment (by kallisti5):

 I reverted 58916d4a365d68ddfebaa75d08d083a67350e880 and the issue got
 slightly worse... so 58916d4a365d68ddfebaa75d08d083a67350e880 is
 definitely a good fix. Just didn't go far enough to satisfy gcc 7

 {{{
 InitScript1 /home/kallisti5/Code/haiku/generated.x86_64/haiku.image-init-
 vars
 C++
 
/home/kallisti5/Code/haiku/generated.x86_64/objects/linux/x86_64/release/tools/addattr/main.o
 C++
 
/home/kallisti5/Code/haiku/generated.x86_64/objects/linux/x86_64/release/tools/addattr/addAttr.o
 C++
 
/home/kallisti5/Code/haiku/generated.x86_64/objects/linux/x86_64/release/build/libbe/icon/FlatIconImporter.o
 In file included from
 /home/kallisti5/Code/haiku/src/libs/icon/./IconRenderer.h:18:0,
                  from
 /home/kallisti5/Code/haiku/src/libs/icon/style/Style.h:18,
                  from
 /home/kallisti5/Code/haiku/src/libs/icon/flat_icon/FlatIconImporter.cpp:30:
 /home/kallisti5/Code/haiku/headers/libs/agg/agg_scanline_u.h: In
 constructor ‘agg::scanline32_u8_am<AlphaMask>::scanline32_u8_am()’:
 /home/kallisti5/Code/haiku/headers/libs/agg/agg_scanline_u.h:469:10:
 error: invalid use of ‘agg::scanline32_u8_am<AlphaMask>::base_type’
     this->base_type();
           ^~~~~~~~~
 /home/kallisti5/Code/haiku/headers/libs/agg/agg_scanline_u.h: In
 constructor ‘agg::scanline32_u8_am<AlphaMask>::scanline32_u8_am(const
 AlphaMask&)’:
 /home/kallisti5/Code/haiku/headers/libs/agg/agg_scanline_u.h:474:10:
 error: invalid use of ‘agg::scanline32_u8_am<AlphaMask>::base_type’
     this->base_type();
           ^~~~~~~~~
 /home/kallisti5/Code/haiku/headers/libs/agg/agg_scanline_u.h: In member
 function ‘void agg::scanline32_u8_am<AlphaMask>::finalize(int)’:
 /home/kallisti5/Code/haiku/headers/libs/agg/agg_scanline_u.h:480:30:
 error: ‘agg::scanline32_u8_am<AlphaMask>::base_type {aka
 agg::scanline_u8}’ is not a base of ‘agg::scanline32_u8_am<AlphaMask>’
              this->base_type::finalize(span_y);
                               ^~~~~~~~
 /home/kallisti5/Code/haiku/headers/libs/agg/agg_scanline_u.h:483:70:
 error: ‘agg::scanline32_u8_am<AlphaMask>::base_type {aka
 agg::scanline_u8}’ is not a base of ‘agg::scanline32_u8_am<AlphaMask>’
                  typename base_type::iterator span =
 this->base_type::begin();
 ^~~~~
 /home/kallisti5/Code/haiku/headers/libs/agg/agg_scanline_u.h:484:51:
 error: ‘agg::scanline32_u8_am<AlphaMask>::base_type {aka
 agg::scanline_u8}’ is not a base of ‘agg::scanline32_u8_am<AlphaMask>’
                  unsigned count = this->base_type::num_spans();
                                                    ^~~~~~~~~
 /home/kallisti5/Code/haiku/headers/libs/agg/agg_scanline_u.h:488:66:
 error: ‘agg::scanline32_u8_am<AlphaMask>::base_type {aka
 agg::scanline_u8}’ is not a base of ‘agg::scanline32_u8_am<AlphaMask>’
                                                  this->base_type::y(),
                                                                   ^

 cc -c
 "/home/kallisti5/Code/haiku/src/libs/icon/flat_icon/FlatIconImporter.cpp"
 -O2 -Wall -Wno-trigraphs -Wno-ctor-dtor-privacy -Woverloaded-virtual
 -Wpointer-arith -Wcast-align -Wsign-compare -Wno-multichar -fPIC -include
 BeOSBuildCompatibility.h -DARCH_x86_64 -D_NO_INLINE_ASM -D__x86_64__
 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_FORMAT_MACROS
 -D__STDC_LIMIT_MACROS -DHAIKU_HOST_PLATFORM_LINUX
 -DHAIKU_HOST_PLATFORM_64_BIT -DHAIKU_PACKAGING_ARCH=\"x86_64\" -iquote
 /home/kallisti5/Code/haiku/build/user_config_headers -iquote
 /home/kallisti5/Code/haiku/build/config_headers -iquote
 /home/kallisti5/Code/haiku/src/build/libbe/icon -iquote
 /home/kallisti5/Code/haiku/generated.x86_64/objects/common/build/libbe/icon
 -iquote
 
/home/kallisti5/Code/haiku/generated.x86_64/objects/linux/x86_64/common/build/libbe/icon
 -iquote
 
/home/kallisti5/Code/haiku/generated.x86_64/objects/haiku/x86_64/common/build/libbe/icon
 -iquote /home/kallisti5/Code/haiku/src/libs/icon/. -iquote
 /home/kallisti5/Code/haiku/src/libs/icon/flat_icon -iquote
 /home/kallisti5/Code/haiku/src/libs/icon/message -iquote
 /home/kallisti5/Code/haiku/src/libs/icon/shape -iquote
 /home/kallisti5/Code/haiku/src/libs/icon/style -iquote
 /home/kallisti5/Code/haiku/src/libs/icon/transformable -iquote
 /home/kallisti5/Code/haiku/src/libs/icon/transformer -iquote
 /home/kallisti5/Code/haiku/src/libs/agg/src -I
 /home/kallisti5/Code/haiku/headers/libs/agg -I
 /home/kallisti5/Code/haiku/headers/libs/icon -I
 /home/kallisti5/Code/haiku/headers/build/private/shared -I
 /home/kallisti5/Code/haiku/headers/build/host/linux -I
 /home/kallisti5/Code/haiku/headers/build -I
 /home/kallisti5/Code/haiku/headers/build/os -I
 /home/kallisti5/Code/haiku/headers/build/os/add-ons/registrar -I
 /home/kallisti5/Code/haiku/headers/build/os/app -I
 /home/kallisti5/Code/haiku/headers/build/os/bluetooth -I
 /home/kallisti5/Code/haiku/headers/build/os/drivers -I
 /home/kallisti5/Code/haiku/headers/build/os/kernel -I
 /home/kallisti5/Code/haiku/headers/build/os/interface -I
 /home/kallisti5/Code/haiku/headers/build/os/locale -I
 /home/kallisti5/Code/haiku/headers/build/os/storage -I
 /home/kallisti5/Code/haiku/headers/build/os/support -I
 /home/kallisti5/Code/haiku/headers/build/private -o
 
"/home/kallisti5/Code/haiku/generated.x86_64/objects/linux/x86_64/release/build/libbe/icon/FlatIconImporter.o"
 ;
 }}}

--
Ticket URL: <https://dev.haiku-os.org/ticket/13382#comment:4>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: