Skip to content

How to solve uint64_t and size_t not match on arm platform #379

@Sanzo00

Description

@Sanzo00

when I try to build Galois use make, I got these error:

[ 49%] Building CXX object lonestar/analytics/cpu/bipart/CMakeFiles/bipart-cpu.dir/bipart.cpp.o
/Users/sanzo/workspace/Galois/lonestar/analytics/cpu/bipart/bipart.cpp:315:7: error: no matching function for call to 'iterate'
galois::iterate((uint64_t)graph.hedges, graph.size()),
^~~~~~~~~~~~~~~
/Users/sanzo/workspace/Galois/libgalois/include/galois/runtime/Range.h:334:6: note: candidate template ignored: deduced conflicting types for parameter 'I' ('unsigned long long' vs. 'unsigned long')
auto iterate(const I& beg, const I& end) {
^
/Users/sanzo/workspace/Galois/libgalois/include/galois/runtime/Range.h:323:6: note: candidate function template not viable: requires single argument 'cont', but 2 arguments were provided
auto iterate(C& cont) {
^
/Users/sanzo/workspace/Galois/libgalois/include/galois/runtime/Range.h:329:6: note: candidate function template not viable: requires single argument 'initList', but 2 arguments were provided
auto iterate(std::initializer_list initList) {
^
/Users/sanzo/workspace/Galois/lonestar/analytics/cpu/bipart/bipart.cpp:351:9: error: no matching function for call to 'iterate'
galois::iterate((uint64_t)0, graph.hedges),
^~~~~~~~~~~~~~~
/Users/sanzo/workspace/Galois/libgalois/include/galois/runtime/Range.h:334:6: note: candidate template ignored: deduced conflicting types for parameter 'I' ('unsigned long long' vs. 'unsigned long')
auto iterate(const I& beg, const I& end) {
^
/Users/sanzo/workspace/Galois/libgalois/include/galois/runtime/Range.h:323:6: note: candidate function template not viable: requires single argument 'cont', but 2 arguments were provided
auto iterate(C& cont) {
^
/Users/sanzo/workspace/Galois/libgalois/include/galois/runtime/Range.h:329:6: note: candidate function template not viable: requires single argument 'initList', but 2 arguments were provided
auto iterate(std::initializer_list initList) {
^
2 errors generated.
make[2]: *** [lonestar/analytics/cpu/bipart/CMakeFiles/bipart-cpu.dir/bipart.cpp.o] Error 1
make[1]: *** [lonestar/analytics/cpu/bipart/CMakeFiles/bipart-cpu.dir/all] Error 2
make: *** [all] Error 2

I guess this is about arm platform ploblems, how can I solve this ploblem?
截屏2021-11-14 上午11 09 38

截屏2021-11-14 上午11 10 01

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions