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

errors during installation with latest commits #222

Open
MustafaFayez opened this issue Sep 29, 2023 · 9 comments
Open

errors during installation with latest commits #222

MustafaFayez opened this issue Sep 29, 2023 · 9 comments
Assignees

Comments

@MustafaFayez
Copy link

Hi,
I tried installing timeloop just now, and I see the following errors

scons: Reading SConscript files ... Using dynamic linking. scons: done reading SConscript files. scons: Building targets ... g++ -o build/isl-wrapper/ctx-manager.os -c -g -O3 -flto -Werror -Wall -Wextra -std=c++17 -pthread -fmax-errors=1 -fPIC -DBUILD_BASE_DIR=\"/home/mustafa/timeloop-accelergy/accelergy-timeloop-infrastructure/src/timeloop\" -DUSE_ACCELERGY -Iinclude src/isl-wrapper/ctx-manager.cpp g++ -o build/isl-wrapper/isl-functions.os -c -g -O3 -flto -Werror -Wall -Wextra -std=c++17 -pthread -fmax-errors=1 -fPIC -DBUILD_BASE_DIR=\"/home/mustafa/timeloop-accelergy/accelergy-timeloop-infrastructure/src/timeloop\" -DUSE_ACCELERGY -Iinclude src/isl-wrapper/isl-functions.cpp g++ -o build/loop-analysis/isl-analysis/isl-nest-analysis.os -c -g -O3 -flto -Werror -Wall -Wextra -std=c++17 -pthread -fmax-errors=1 -fPIC -DBUILD_BASE_DIR=\"/home/mustafa/timeloop-accelergy/accelergy-timeloop-infrastructure/src/timeloop\" -DUSE_ACCELERGY -Iinclude src/loop-analysis/isl-analysis/isl-nest-analysis.cpp g++ -o build/loop-analysis/isl-analysis/isl-to-legacy-adaptor.os -c -g -O3 -flto -Werror -Wall -Wextra -std=c++17 -pthread -fmax-errors=1 -fPIC -DBUILD_BASE_DIR=\"/home/mustafa/timeloop-accelergy/accelergy-timeloop-infrastructure/src/timeloop\" -DUSE_ACCELERGY -Iinclude src/loop-analysis/isl-analysis/isl-to-legacy-adaptor.cpp In file included from src/isl-wrapper/ctx-manager.cpp:1: include/isl-wrapper/ctx-manager.hpp:4:10: fatal error: isl/cpp.h: No such file or directory 4 | #include <isl/cpp.h> | ^~~~~~~~~~~ compilation terminated. scons: *** [build/isl-wrapper/ctx-manager.os] Error 1 src/isl-wrapper/isl-functions.cpp:3:10: fatal error: barvinok/isl.h: No such file or directory 3 | #include "barvinok/isl.h" | ^~~~~~~~~~~~~~~~ compilation terminated. scons: *** [build/isl-wrapper/isl-functions.os] Error 1 In file included from include/loop-analysis/isl-analysis/isl-nest-analysis.hpp:3, from src/loop-analysis/isl-analysis/isl-nest-analysis.cpp:1: include/loop-analysis/isl-ir.hpp:37:10: fatal error: isl/cpp.h: No such file or directory 37 | #include <isl/cpp.h> | ^~~~~~~~~~~ compilation terminated. scons: *** [build/loop-analysis/isl-analysis/isl-nest-analysis.os] Error 1 In file included from include/loop-analysis/isl-analysis/isl-nest-analysis.hpp:3, from include/loop-analysis/isl-analysis/isl-to-legacy-adaptor.hpp:5, from src/loop-analysis/isl-analysis/isl-to-legacy-adaptor.cpp:1: include/loop-analysis/isl-ir.hpp:37:10: fatal error: isl/cpp.h: No such file or directory 37 | #include <isl/cpp.h> | ^~~~~~~~~~~ compilation terminated. scons: *** [build/loop-analysis/isl-analysis/isl-to-legacy-adaptor.os] Error 1 scons: building terminated because of errors.
What am I missing? BTW I am on the master branch.

@angshuman-parashar
Copy link
Collaborator

The barvinok package is a new additional dependency for the master branch. I recommend switching to v3.0.x unless you specifically need the new polyhedral analysis codebase in master.

@MustafaFayez
Copy link
Author

Thanks! How do I setup the barvinok package? is v4 not reliable currently?

@angshuman-parashar
Copy link
Collaborator

https://barvinok.sourceforge.io/.
You can also check if your distro has a package.

master is under active development, but as of this date we believe it's as stable as v3.x.

@MustafaFayez
Copy link
Author

I still see this error after installing barvinok

include/isl-wrapper/ctx-manager.hpp:4:10: fatal error: isl/cpp.h: No such file or directory
    4 | #include <isl/cpp.h>
      |          ^~~~~~~~~~~
compilation terminated.
scons: *** [build/isl-wrapper/ctx-manager.os] Error 1
In file included from src/isl-wrapper/isl-functions.cpp:6:
include/isl-wrapper/ctx-manager.hpp:4:10: fatal error: isl/cpp.h: No such file or directory
    4 | #include <isl/cpp.h>
      |          ^~~~~~~~~~~
compilation terminated.
In file included from include/loop-analysis/isl-analysis/isl-nest-analysis.hpp:3,
                 from src/loop-analysis/isl-analysis/isl-nest-analysis.cpp:1:
include/loop-analysis/isl-ir.hpp:37:10: fatal error: isl/cpp.h: No such file or directory
   37 | #include <isl/cpp.h>

I couldn't find this file cpp.h where isl was installed.

@MustafaFayez MustafaFayez reopened this Sep 29, 2023
@MustafaFayez
Copy link
Author

my bad, I wasn't installing barvinok properly, I re-installed correctly and I could install timeloop successfully now.

@JiacongSun
Copy link

Hi @MustafaFayez , I met the same problem as you and somehow I cannot install barvinok successfully. It always fails when I run sh autogen.sh, which is the first command line for installing barvinok. Can you may give me some help on how you managed to install it? Thanks.

@Yukiona1996
Copy link

Yukiona1996 commented Feb 3, 2024

Hi @MustafaFayez and @angshuman-parashar , facing the same issue here. Could you please walk-through on exactly how you installed barvinok? Every time I run the ./configure command it errors out with configure: error: ntl not compiled with gmp support

@angshuman-parashar
Copy link
Collaborator

@Yukiona1996 You may have to build and install ntl locally and enable gmp support when you are configuring the ntl build.

@priyankaankolekar
Copy link

I am facing the same issue as @MustafaFayez

scons: Reading SConscript files ... Using dynamic linking. scons: done reading SConscript files. scons: Building targets ... g++ -o build/unit-tests/compound-config/test-compound-config.o -c -g -O3 -flto -Werror -Wall -Wextra -std=c++17 -pthread -fmax-errors=1 -DBUILD_BASE_DIR=\"/home/ubuntu/timeloop-accelergy/timeloop-dev/timeloop\" -DUSE_ACCELERGY -Iinclude src/unit-tests/compound-config/test-compound-config.cpp g++ -o build/isl-wrapper/ctx-manager.os -c -g -O3 -flto -Werror -Wall -Wextra -std=c++17 -pthread -fmax-errors=1 -fPIC -DBUILD_BASE_DIR=\"/home/ubuntu/timeloop-accelergy/timeloop-dev/timeloop\" -DUSE_ACCELERGY -Iinclude src/isl-wrapper/ctx-manager.cpp g++ -o build/isl-wrapper/isl-functions.os -c -g -O3 -flto -Werror -Wall -Wextra -std=c++17 -pthread -fmax-errors=1 -fPIC -DBUILD_BASE_DIR=\"/home/ubuntu/timeloop-accelergy/timeloop-dev/timeloop\" -DUSE_ACCELERGY -Iinclude src/isl-wrapper/isl-functions.cpp g++ -o build/loop-analysis/aahr-carve.os -c -g -O3 -flto -Werror -Wall -Wextra -std=c++17 -pthread -fmax-errors=1 -fPIC -DBUILD_BASE_DIR=\"/home/ubuntu/timeloop-accelergy/timeloop-dev/timeloop\" -DUSE_ACCELERGY -Iinclude src/loop-analysis/aahr-carve.cpp In file included from src/isl-wrapper/ctx-manager.cpp:1: include/isl-wrapper/ctx-manager.hpp:4:10: fatal error: isl/cpp.h: No such file or directory 4 | #include <isl/cpp.h> | ^~~~~~~~~~~ compilation terminated. scons: *** [build/isl-wrapper/ctx-manager.os] Error 1 In file included from src/isl-wrapper/isl-functions.cpp:6: include/isl-wrapper/ctx-manager.hpp:4:10: fatal error: isl/cpp.h: No such file or directory 4 | #include <isl/cpp.h> | ^~~~~~~~~~~ compilation terminated. scons: *** [build/isl-wrapper/isl-functions.os] Error 1 scons: building terminated because of errors.

Could you point to the barvinok install instructions that you followed?

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

6 participants