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

Where is the final executable file gfe_driver for Sortledton? #8

Open
Anna521 opened this issue Apr 27, 2024 · 2 comments
Open

Where is the final executable file gfe_driver for Sortledton? #8

Anna521 opened this issue Apr 27, 2024 · 2 comments

Comments

@Anna521
Copy link

Anna521 commented Apr 27, 2024

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 {
| ^~~~~~~

@Jiboxiake
Copy link

This version is for Teseo which is published before Sortledton so you should refer to https://github.com/PerFuchs/gfe_driver to run Sortledton.

@FrozenonGitHub
Copy link

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

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

3 participants