Opened 9 years ago

Closed 9 years ago

#11983 closed bug (fixed)

x86_64 debug build broken since 48954

Reported by: luroh Owned by: mmlr
Priority: normal Milestone: Unscheduled
Component: File Systems/UserlandFS Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: x86-64

Description

hrev49052. The x86_64 debug build has been broken for a few weeks.

C++ /home/luroh/develop/haiku/haiku/generated/objects/haiku/x86_64/debug_1/add-ons/kernel/file_systems/userlandfs/kernel_add_on/RequestAllocator.o 
In file included from /home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:10:0:
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp: In member function 'void UserlandFSUtil::RequestAllocator::FinishDeferredInit()':
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:96:65: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'area_id {aka int}' [-Werror=format=]
    "offset: %ld, size: %ld\n", info.area, info.offset, info.size));
                                                                 ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:104:19: note: in expansion of macro 'DEBUG_CONTEXT'
 #define TPRINT(x) DEBUG_CONTEXT( __out x )
                   ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:113:19: note: in expansion of macro 'TPRINT'
  #define PRINT(x) TPRINT(x)
                   ^
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:95:3: note: in expansion of macro 'PRINT'
   PRINT(("RequestAllocator::FinishDeferredInit(): area: %ld, "
   ^
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:96:65: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int32 {aka int}' [-Werror=format=]
    "offset: %ld, size: %ld\n", info.area, info.offset, info.size));
                                                                 ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:104:19: note: in expansion of macro 'DEBUG_CONTEXT'
 #define TPRINT(x) DEBUG_CONTEXT( __out x )
                   ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:113:19: note: in expansion of macro 'TPRINT'
  #define PRINT(x) TPRINT(x)
                   ^
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:95:3: note: in expansion of macro 'PRINT'
   PRINT(("RequestAllocator::FinishDeferredInit(): area: %ld, "
   ^
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:96:65: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'int32 {aka int}' [-Werror=format=]
    "offset: %ld, size: %ld\n", info.area, info.offset, info.size));
                                                                 ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:104:19: note: in expansion of macro 'DEBUG_CONTEXT'
 #define TPRINT(x) DEBUG_CONTEXT( __out x )
                   ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:113:19: note: in expansion of macro 'TPRINT'
  #define PRINT(x) TPRINT(x)
                   ^
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:95:3: note: in expansion of macro 'PRINT'
   PRINT(("RequestAllocator::FinishDeferredInit(): area: %ld, "
   ^
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp: In member function 'status_t UserlandFSUtil::RequestAllocator::AllocateAddress(UserlandFSUtil::Address&, int32, int32, void**, bool)':
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:255:64: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'area_id {aka int}' [-Werror=format=]
 "%ld, size: %ld (%ld), data: %p\n", area, size, areaSize, *data));
                                                                ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:96:2: note: in definition of macro 'DEBUG_CONTEXT'
  x; dbg_printf_end(); }
  ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:113:19: note: in expansion of macro 'TPRINT'
  #define PRINT(x) TPRINT(x)
                   ^
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:254:1: note: in expansion of macro 'PRINT'
 PRINT(("  RequestAllocator::AllocateAddress(): deferred allocated area: "
 ^
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:255:64: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int32 {aka int}' [-Werror=format=]
 "%ld, size: %ld (%ld), data: %p\n", area, size, areaSize, *data));
                                                                ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:96:2: note: in definition of macro 'DEBUG_CONTEXT'
  x; dbg_printf_end(); }
  ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:113:19: note: in expansion of macro 'TPRINT'
  #define PRINT(x) TPRINT(x)
                   ^
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:254:1: note: in expansion of macro 'PRINT'
 PRINT(("  RequestAllocator::AllocateAddress(): deferred allocated area: "
 ^
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:255:64: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'int32 {aka int}' [-Werror=format=]
 "%ld, size: %ld (%ld), data: %p\n", area, size, areaSize, *data));
                                                                ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:96:2: note: in definition of macro 'DEBUG_CONTEXT'
  x; dbg_printf_end(); }
  ^
/home/luroh/develop/haiku/haiku/headers/private/userlandfs/shared/Debug.h:113:19: note: in expansion of macro 'TPRINT'
  #define PRINT(x) TPRINT(x)
                   ^
/home/luroh/develop/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp:254:1: note: in expansion of macro 'PRINT'
 PRINT(("  RequestAllocator::AllocateAddress(): deferred allocated area: "
 ^
cc1plus: all warnings being treated as errors

Change History (2)

comment:1 by mmlr, 9 years ago

Owner: set to mmlr
Status: newin-progress

I didn't realize that this was still the case. I thought the fix Rene did for the missing quote some time ago was all that needed fixing. I see now that the debug build is broken ever since I added userland_fs to the 64 bit build. Will fix ASAP.

comment:2 by mmlr, 9 years ago

Resolution: fixed
Status: in-progressclosed

Should be fixed in hrev49054.

Note: See TracTickets for help on using tickets.