You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I connected gfe_driver to Sortleton and ran make -j 100% but in the end I did not see the executable file gfe_driver. And these errors may occur :
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:52:3: error: redefinition of ‘template<class T, class U> T gapbs::fetch_and_add(T&, U)’
52 | T fetch_and_add(T &x, U inc) {
| ^~~~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:52:3: note: ‘template<class T, class U> T gapbs::fetch_and_add(T&, U)’ previously declared here
52 | T fetch_and_add(T &x, U inc) {
| ^~~~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:57:6: error: redefinition of ‘template bool gapbs::compare_and_swap(T&, const T&, const T&)’
57 | bool compare_and_swap(T &x, const T &old_val, const T &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:57:6: note: ‘template bool gapbs::compare_and_swap(T&, const T&, const T&)’ previously declared here
57 | bool compare_and_swap(T &x, const T &old_val, const T &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:62:13: error: redefinition of ‘bool gapbs::compare_and_swap(T&, const T&, const T&) [with T = float]’
62 | inline bool compare_and_swap(float &x, const float &old_val, const float &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:62:13: note: ‘bool gapbs::compare_and_swap(T&, const T&, const T&) [with T = float]’ previously declared here
62 | inline bool compare_and_swap(float &x, const float &old_val, const float &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:69:13: error: redefinition of ‘bool gapbs::compare_and_swap(T&, const T&, const T&) [with T = double]’
69 | inline bool compare_and_swap(double &x, const double &old_val, const double &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:69:13: note: ‘bool gapbs::compare_and_swap(T&, const T&, const T&) [with T = double]’ previously declared here
69 | inline bool compare_and_swap(double &x, const double &old_val, const double &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:164:7: error: redefinition of ‘class gapbs::Bitmap’
164 | class Bitmap {
| ^~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:164:7: note: previous definition of ‘class gapbs::Bitmap’
164 | class Bitmap {
| ^~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:223:7: error: redefinition of ‘class gapbs::SlidingQueue’
223 | class SlidingQueue {
| ^~~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:223:7: note: previous definition of ‘class gapbs::SlidingQueue’
223 | class SlidingQueue {
| ^~~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:275:7: error: redefinition of ‘class gapbs::QueueBuffer’
275 | class QueueBuffer {
| ^~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:275:7: note: previous definition of ‘class gapbs::QueueBuffer’
275 | class QueueBuffer {
| ^~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:318:7: error: redefinition of ‘class gapbs::pvector<T_>’
318 | class pvector {
| ^~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:318:7: note: previous definition of ‘class gapbs::pvector<T_>’
318 | class pvector {
| ^~~~~~~
The text was updated successfully, but these errors were encountered:
In gfe_driver/library/sortledton/sortledton_driver.cpp line 11, disabling #include "third-party/gapbs/gapbs.hpp" resolves the issue for me. It appears that Sortledton already includes the same header file. @Anna521
I connected gfe_driver to Sortleton and ran make -j 100% but in the end I did not see the executable file gfe_driver. And these errors may occur :
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:52:3: error: redefinition of ‘template<class T, class U> T gapbs::fetch_and_add(T&, U)’
52 | T fetch_and_add(T &x, U inc) {
| ^~~~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:52:3: note: ‘template<class T, class U> T gapbs::fetch_and_add(T&, U)’ previously declared here
52 | T fetch_and_add(T &x, U inc) {
| ^~~~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:57:6: error: redefinition of ‘template bool gapbs::compare_and_swap(T&, const T&, const T&)’
57 | bool compare_and_swap(T &x, const T &old_val, const T &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:57:6: note: ‘template bool gapbs::compare_and_swap(T&, const T&, const T&)’ previously declared here
57 | bool compare_and_swap(T &x, const T &old_val, const T &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:62:13: error: redefinition of ‘bool gapbs::compare_and_swap(T&, const T&, const T&) [with T = float]’
62 | inline bool compare_and_swap(float &x, const float &old_val, const float &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:62:13: note: ‘bool gapbs::compare_and_swap(T&, const T&, const T&) [with T = float]’ previously declared here
62 | inline bool compare_and_swap(float &x, const float &old_val, const float &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:69:13: error: redefinition of ‘bool gapbs::compare_and_swap(T&, const T&, const T&) [with T = double]’
69 | inline bool compare_and_swap(double &x, const double &old_val, const double &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:69:13: note: ‘bool gapbs::compare_and_swap(T&, const T&, const T&) [with T = double]’ previously declared here
69 | inline bool compare_and_swap(double &x, const double &old_val, const double &new_val) {
| ^~~~~~~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:164:7: error: redefinition of ‘class gapbs::Bitmap’
164 | class Bitmap {
| ^~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:164:7: note: previous definition of ‘class gapbs::Bitmap’
164 | class Bitmap {
| ^~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:223:7: error: redefinition of ‘class gapbs::SlidingQueue’
223 | class SlidingQueue {
| ^~~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:223:7: note: previous definition of ‘class gapbs::SlidingQueue’
223 | class SlidingQueue {
| ^~~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:275:7: error: redefinition of ‘class gapbs::QueueBuffer’
275 | class QueueBuffer {
| ^~~~~~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:275:7: note: previous definition of ‘class gapbs::QueueBuffer’
275 | class QueueBuffer {
| ^~~~~~~~~~~
In file included from /home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/algorithms/GAPBSAlgorithms.h:8,
from ../library/sortledton/sortledton_driver.cpp:24:
/home/anna/gfe_driver_for_sortledton/gfe_driver/sortledton/third-party/gapbs.h:318:7: error: redefinition of ‘class gapbs::pvector<T_>’
318 | class pvector {
| ^~~~~~~
In file included from ../library/sortledton/sortledton_driver.cpp:11:
../third-party/gapbs/gapbs.hpp:318:7: note: previous definition of ‘class gapbs::pvector<T_>’
318 | class pvector {
| ^~~~~~~
The text was updated successfully, but these errors were encountered: