[haiku-commits] Re: haiku: hrev46378 - src/system/libroot/os src/bin src/system/runtime_loader headers/private/system src/kits/storage

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 19 Nov 2013 20:12:20 +0100

2013/11/17  <ingo_weinhold@xxxxxx>:
> hrev46378 adds 6 changesets to branch 'master'
> old head: 905f910e5364ca9b0e0ca98fe9e35fa6cffe42ed
> new head: 4f5e93857671d231372096457d024926635dcee6
> overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=4f5e938+%5E905f910
>
> ----------------------------------------------------------------------------
>
> cf7e2ad: runtime loader: Export get_executable_architecture() function
>
>   Given a path of an ELF file, it tries to determine its architecture.
>

This seems to fail the 64-bit build:

C++ 
/home/korli/githaiku/haiku/generated_gcc47_64/objects/haiku/x86_64/release/system/runtime_loader/runtime_loader.o
/home/korli/githaiku/haiku/src/system/runtime_loader/runtime_loader.cpp:
In function 'bool determine_x86_abi(int, const Elf32_Ehdr&, bool&)':
/home/korli/githaiku/haiku/src/system/runtime_loader/runtime_loader.cpp:497:70:
error: no matching function for call to 'min(long unsigned int,
uint32&)'
/home/korli/githaiku/haiku/src/system/runtime_loader/runtime_loader.cpp:497:70:
note: candidates are:
In file included from
/home/korli/githaiku/haiku/generated_gcc47_64/cross-tools-x86_64/lib/gcc/x86_64-unknown-haiku/4.7.3/../../../../x86_64-unknown-haiku/include/c++/4.7.3/algorithm:62:0,
                 from
/home/korli/githaiku/haiku/src/system/runtime_loader/runtime_loader.cpp:16:
/home/korli/githaiku/haiku/generated_gcc47_64/cross-tools-x86_64/lib/gcc/x86_64-unknown-haiku/4.7.3/../../../../x86_64-unknown-haiku/include/c++/4.7.3/bits/stl_algobase.h:187:5:
note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
/home/korli/githaiku/haiku/generated_gcc47_64/cross-tools-x86_64/lib/gcc/x86_64-unknown-haiku/4.7.3/../../../../x86_64-unknown-haiku/include/c++/4.7.3/bits/stl_algobase.h:187:5:
note:   template argument deduction/substitution failed:
/home/korli/githaiku/haiku/src/system/runtime_loader/runtime_loader.cpp:497:70:
note:   deduced conflicting types for parameter 'const _Tp' ('long
unsigned int' and 'uint32 {aka unsigned int}')
In file included from
/home/korli/githaiku/haiku/generated_gcc47_64/cross-tools-x86_64/lib/gcc/x86_64-unknown-haiku/4.7.3/../../../../x86_64-unknown-haiku/include/c++/4.7.3/algorithm:62:0,
                 from
/home/korli/githaiku/haiku/src/system/runtime_loader/runtime_loader.cpp:16:
/home/korli/githaiku/haiku/generated_gcc47_64/cross-tools-x86_64/lib/gcc/x86_64-unknown-haiku/4.7.3/../../../../x86_64-unknown-haiku/include/c++/4.7.3/bits/stl_algobase.h:233:5:
note: template<class _Tp, class _Compare> const _Tp& std::min(const
_Tp&, const _Tp&, _Compare)
/home/korli/githaiku/haiku/generated_gcc47_64/cross-tools-x86_64/lib/gcc/x86_64-unknown-haiku/4.7.3/../../../../x86_64-unknown-haiku/include/c++/4.7.3/bits/stl_algobase.h:233:5:
note:   template argument deduction/substitution failed:
/home/korli/githaiku/haiku/src/system/runtime_loader/runtime_loader.cpp:497:70:
note:   deduced conflicting types for parameter 'const _Tp' ('long
unsigned int' and 'uint32 {aka unsigned int}')
/home/korli/githaiku/haiku/src/system/runtime_loader/runtime_loader.cpp:523:44:
error: comparison between signed and unsigned integer expressions
[-Werror=sign-compare]
cc1plus: all warnings being treated as errors



Bye,
Jérôme

Other related posts: