[haiku-bugs] [Haiku] #8065: Haiku build fails when using DEBUG option on the entire source tree

  • From: "unitedroad" <trac@xxxxxxxxxxxx>
  • Date: Sun, 30 Oct 2011 10:49:24 -0000

#8065: Haiku build  fails when using DEBUG option on the entire source tree
--------------------------------+-------------------------
 Reporter:  unitedroad          |        Owner:  bonefish
     Type:  bug                 |       Status:  new
 Priority:  normal              |    Milestone:  R1
Component:  Build System        |      Version:  R1/alpha3
 Keywords:  DEBUG, Debug build  |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  All                 |
--------------------------------+-------------------------
 Hi,
 I tried to build gcc4 hybrid Haiku with the debug option set on the entire
 source with this UserBuildConfig placed in the haiku/build/jam directory:

 {{{
 SetConfigVar DEBUG : HAIKU_TOP : 1 : global ;
 }}}

 I get this error during the build process: (invoked using the command jam
 -q @nightly-cd)


 {{{
 ...failed C++
 /sources/haiku/haiku/generated.x86gcc4/objects/haiku/x86/debug_1/add-
 ons/kernel/file_systems/bfs/BlockAllocator.o ...
 ...removing
 /sources/haiku/haiku/generated.x86gcc4/objects/haiku/x86/debug_1/add-
 ons/kernel/file_systems/bfs/BlockAllocator.o
 }}}

 I saw that is caused by BlockAllocator::Free calling
 BlockAllocator::CheckBlockRun with wrong parameters:

 {{{
 ....BlockAllocator.cpp: In member function 'status_t
 BlockAllocator::Free(Transaction&, block_run)':
 ....BlockAllocator.cpp:1051:42: error: no matching function for call to
 'BlockAllocator::CheckBlockRun(block_run&, NULL, NULL, bool)'
 ....BlockAllocator.h:55:14: note: candidate is: status_t
 BlockAllocator::CheckBlockRun(block_run, const char*, bool)
 }}}

 If I change the code to fix this and build again, then I get the following
 error:


 {{{

 ...failed C++
 /sources/haiku/haiku/generated.x86gcc4/objects/haiku/x86/debug_1/add-
 ons/kernel/file_systems/udf/Icb.o

 ....Icb.cpp: In member function 'status_t Icb::Read(off_t, void*, size_t*,
 uint32*)':
 ....Icb.cpp:215:4: error: '_debugHelper' was not declared in this scope
 ....Icb.cpp:215:4: error: '_debugHelper' was not declared in this scope
 ....Icb.cpp:215:4: error: '_debugHelper' was not declared in this scope
 }}}

 -unitedroad

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

Other related posts: