Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"endian.h" file not found error while building BFS Application #406

Open
piyush26c opened this issue Feb 21, 2023 · 0 comments
Open

"endian.h" file not found error while building BFS Application #406

piyush26c opened this issue Feb 21, 2023 · 0 comments

Comments

@piyush26c
Copy link

While trying to build a BFS application present in lonestar directory (situated at build directory), I am facing following 2 types of errors.

piyushchaudhari@PIYUSHs-MacBook-Air ~ % make -C Documents/RAWork/InstallGalois/lonestar/bfs -j
[ 20%] Built target gllvm
[ 20%] Building CXX object libgalois/CMakeFiles/galois_shmem.dir/src/HWTopoLinux.cpp.o
[ 20%] Building CXX object libgalois/CMakeFiles/galois_shmem.dir/src/FileGraph.cpp.o
[ 25%] Building CXX object libgalois/CMakeFiles/galois_shmem.dir/src/FileGraphParallel_cpp11.cpp.o
In file included from /Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/src/FileGraphParallel_cpp11.cpp:20:
In file included from /Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/graphs/FileGraph.h:31:
/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/endian.h:27:10: error: 'endian.h' file not found with <angled> include; use "quotes" instead
#include <endian.h>
         ^~~~~~~~~~
         "endian.h"
/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/endian.h:27:10: warning: non-portable path to file '<Endian.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include <endian.h>
         ^~~~~~~~~~
         <Endian.h>
/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/endian.h:54:10: error: use of undeclared identifier 'htobe64'
  return htobe64(x);
         ^
/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/endian.h:62:10: error: use of undeclared identifier 'htobe32'
  return htobe32(x);
         ^
In file included from /Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/src/FileGraph.cpp:28:
In file included from /Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/graphs/FileGraph.h:31:
/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/endian.h:27:10: error: 'endian.h' file not found with <angled> include; use "quotes" instead
#include <endian.h>
         ^~~~~~~~~~
         "endian.h"
/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/endian.h:27:10: warning: non-portable path to file '<Endian.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include <endian.h>
         ^~~~~~~~~~
         <Endian.h>
/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/endian.h:54:10: error: use of undeclared identifier 'htobe64'
  return htobe64(x);
         ^
/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/endian.h:62:10: error: use of undeclared identifier 'htobe32'
  return htobe32(x);
         ^
/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/src/HWTopoLinux.cpp:67:15: warning: unused variable 'numaAvail' [-Wunused-variable]
  static bool numaAvail = false;
              ^
/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/src/HWTopoLinux.cpp:298:3: error: unknown type name 'cpu_set_t'
  cpu_set_t mask;
  ^
1 warning and 1 error generated.
make[2]: *** [libgalois/CMakeFiles/galois_shmem.dir/src/HWTopoLinux.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from In file included from /Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/src/FileGraphParallel_cpp11.cpp/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/src/FileGraph.cpp::2028:
:
In file included from In file included from /Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/graphs/FileGraph.h/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/graphs/FileGraph.h::3333:
:
In file included from In file included from /Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/LargeArray.h/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/LargeArray.h::2424:
:
In file included from In file included from /Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/Galois.h/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/Galois.h::2323:
:
In file included from In file included from /Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/Loops.h/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/Loops.h::2323:
:
/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/runtime/Executor_Deterministic.h/Users/piyushchaudhari/Documents/RAWork/Galois/libgalois/include/galois/runtime/Executor_Deterministic.h::623623::1414::  warning: warning: variable 'commit' set but not used [-Wunused-but-set-variable]variable 'commit' set but not used [-Wunused-but-set-variable]

        bool commit;
             ^        bool commit;

             ^
2 warnings and 3 errors generated.
make[2]: *** [libgalois/CMakeFiles/galois_shmem.dir/src/FileGraphParallel_cpp11.cpp.o] Error 1
2 warnings and 3 errors generated.
make[2]: *** [libgalois/CMakeFiles/galois_shmem.dir/src/FileGraph.cpp.o] Error 1
make[1]: *** [libgalois/CMakeFiles/galois_shmem.dir/all] Error 2
make: *** [all] Error 2
piyushchaudhari@PIYUSHs-MacBook-Air ~ % 

Kindly share insights on how to get rid of this.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant