[haiku-bugs] Re: [Haiku] #9290: Incorporation of GCC 4.7

  • From: "jprostko" <trac@xxxxxxxxxxxx>
  • Date: Fri, 14 Dec 2012 17:51:18 -0000

#9290: Incorporation of GCC 4.7
----------------------------+-------------------------
   Reporter:  korli         |      Owner:  jprostko
       Type:  enhancement   |     Status:  new
   Priority:  normal        |  Milestone:  Unscheduled
  Component:  Build System  |    Version:  R1/alpha4.1
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  1             |   Platform:  All
----------------------------+-------------------------

Comment (by jprostko):

 Known issue 3:

 After the x86_64 merge, Haiku will not compile all that far with GCC 4.7.2
 for an x86 build.  I get the following error post-hrev44541:

 {{{
 C++ /home/jprostko/haiku-exp/haiku/generated-
 gcc4/objects/haiku/x86/release/system/kernel/arch/x86/apm.o
 /home/jprostko/haiku-exp/haiku/src/system/kernel/arch/x86/32/apm.cpp:
 In function 'status_t apm_init(kernel_args*)':
 /home/jprostko/haiku-
 exp/haiku/src/system/kernel/arch/x86/32/apm.cpp:277:39:
 error: cannot bind packed field
 'args->kernel_args::platform_args.platform_kernel_args::apm' to
 'apm_info&'
 }}}

 I'm not sure why GCC 4.6.3 chugs along happily, but GCC 4.7.2 complains.
 I'm not sure if one struct is declared packed and another one isn't?  I
 admit I got distracted from investigating this, as I was trying to find
 some good way to handle the cross-compiler situation in "Known issue 1".


 There may be more issues to uncover, as I have only been doing my testing
 so far building x86 buildtools for the most part.  As such, I want to test
 at least x86_64 as well, to make sure everything builds fine, and to
 perhaps uncover any other issues.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9290#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: