Error while building with option --with-isl using accelergy-timeloop-infrastructure
chenshih1 opened this issue · 1 comments
Hello, I'm building timeloop together with accelergy-timeloop-infrastructure. I follow the recommended dependencies, including barvinok 0.41.6 and ntl 11.5.1. However, there's an error during the compilation of timeloop.
In file included from include/isl-wrapper/ctx-manager.hpp:4,
1.243 from src/isl-wrapper/ctx-manager.cpp:1:
1.243 /usr/local/barvinok/include/isl/cpp.h: In member function ‘void isl::aff_list::foreach(const std::function<void(isl::aff)>&) const’:
1.243 /usr/local/barvinok/include/isl/cpp.h:5918:20: error: missing initializer for member ‘isl::aff_list::foreach(const std::function<void(isl::aff)>&) const::fn_data::eptr’ [-Werror=missing-field-initializers]
1.243 5918 | } fn_data = { fn };
1.243 | ^
1.245 compilation terminated due to -fmax-errors=1.
1.260 scons: *** [build/isl-wrapper/ctx-manager.o] Error 1
1.548 In file included from include/isl-wrapper/ctx-manager.hpp:4,
1.548 from src/isl-wrapper/isl-functions.cpp:6:
1.548 /usr/local/barvinok/include/isl/cpp.h: In member function ‘void isl::aff_list::foreach(const std::function<void(isl::aff)>&) const’:
1.548 /usr/local/barvinok/include/isl/cpp.h:5918:20: error: missing initializer for member ‘isl::aff_list::foreach(const std::function<void(isl::aff)>&) const::fn_data::eptr’ [-Werror=missing-field-initializers]
1.548 5918 | } fn_data = { fn };
1.548 | ^
1.550 compilation terminated due to -fmax-errors=1.
1.558 scons: *** [build/isl-wrapper/isl-functions.o] Error 1
2.395 In file included from include/loop-analysis/isl-ir.hpp:37,
2.395 from include/loop-analysis/mapping-to-isl/fused-mapping-to-isl.hpp:5,
2.395 from src/loop-analysis/mapping-to-isl/fused-mapping-to-isl.cpp:1:
2.395 /usr/local/barvinok/include/isl/cpp.h: In member function ‘void isl::aff_list::foreach(const std::function<void(isl::aff)>&) const’:
2.395 /usr/local/barvinok/include/isl/cpp.h:5918:20: error: missing initializer for member ‘isl::aff_list::foreach(const std::function<void(isl::aff)>&) const::fn_data::eptr’ [-Werror=missing-field-initializers]
2.395 5918 | } fn_data = { fn };
2.395 | ^
2.397 In file included from include/loop-analysis/isl-ir.hpp:37,
2.397 from include/loop-analysis/isl-analysis/isl-nest-analysis.hpp:3,
2.397 from src/loop-analysis/isl-analysis/isl-nest-analysis.cpp:1:
2.397 /usr/local/barvinok/include/isl/cpp.h: In member function ‘void isl::aff_list::foreach(const std::function<void(isl::aff)>&) const’:
2.397 /usr/local/barvinok/include/isl/cpp.h:5918:20: error: missing initializer for member ‘isl::aff_list::foreach(const std::function<void(isl::aff)>&) const::fn_data::eptr’ [-Werror=missing-field-initializers]
2.397 5918 | } fn_data = { fn };
2.397 | ^
2.397 compilation terminated due to -fmax-errors=1.
2.399 compilation terminated due to -fmax-errors=1.
2.407 In file included from include/loop-analysis/isl-ir.hpp:37,
2.407 from include/loop-analysis/isl-analysis/isl-nest-analysis.hpp:3,
2.407 from include/loop-analysis/isl-analysis/isl-to-legacy-adaptor.hpp:5,
2.407 from src/loop-analysis/isl-analysis/isl-to-legacy-adaptor.cpp:1:
2.407 /usr/local/barvinok/include/isl/cpp.h: In member function ‘void isl::aff_list::foreach(const std::function<void(isl::aff)>&) const’:
2.407 /usr/local/barvinok/include/isl/cpp.h:5918:20: error: missing initializer for member ‘isl::aff_list::foreach(const std::function<void(isl::aff)>&) const::fn_data::eptr’ [-Werror=missing-field-initializers]
2.407 5918 | } fn_data = { fn };
2.407 | ^
2.409 compilation terminated due to -fmax-errors=1.
2.422 scons: *** [build/loop-analysis/mapping-to-isl/fused-mapping-to-isl.o] Error 1
2.422 scons: *** [build/loop-analysis/isl-analysis/isl-nest-analysis.o] Error 1
2.422 scons: *** [build/loop-analysis/isl-analysis/isl-to-legacy-adaptor.o] Error 1
2.423 In file included from include/mapping/fused-mapping.hpp:6,
2.423 from include/loop-analysis/isl-analysis/latency-analysis.hpp:5,
2.423 from src/loop-analysis/isl-analysis/latency-analysis.cpp:1:
2.423 /usr/local/barvinok/include/isl/cpp.h: In member function ‘void isl::aff_list::foreach(const std::function<void(isl::aff)>&) const’:
2.423 /usr/local/barvinok/include/isl/cpp.h:5918:20: error: missing initializer for member ‘isl::aff_list::foreach(const std::function<void(isl::aff)>&) const::fn_data::eptr’ [-Werror=missing-field-initializers]
2.423 5918 | } fn_data = { fn };
2.423 | ^
2.424 compilation terminated due to -fmax-errors=1.
2.435 In file included from include/loop-analysis/isl-ir.hpp:37,
2.435 from src/loop-analysis/logical-buffer.cpp:1:
2.435 /usr/local/barvinok/include/isl/cpp.h: In member function ‘void isl::aff_list::foreach(const std::function<void(isl::aff)>&) const’:
2.435 /usr/local/barvinok/include/isl/cpp.h:5918:20: error: missing initializer for member ‘isl::aff_list::foreach(const std::function<void(isl::aff)>&) const::fn_data::eptr’ [-Werror=missing-field-initializers]
2.435 5918 | } fn_data = { fn };
2.435 | ^
2.436 compilation terminated due to -fmax-errors=1.
2.438 scons: *** [build/loop-analysis/isl-analysis/latency-analysis.o] Error 1
2.442 In file included from src/loop-analysis/mapping-to-isl/mapping-to-isl.cpp:13:
2.442 /usr/local/barvinok/include/isl/cpp.h: In member function ‘void isl::aff_list::foreach(const std::function<void(isl::aff)>&) const’:
2.442 /usr/local/barvinok/include/isl/cpp.h:5918:20: error: missing initializer for member ‘isl::aff_list::foreach(const std::function<void(isl::aff)>&) const::fn_data::eptr’ [-Werror=missing-field-initializers]
2.442 5918 | } fn_data = { fn };
2.442 | ^
2.443 compilation terminated due to -fmax-errors=1.
2.448 scons: *** [build/loop-analysis/logical-buffer.o] Error 1
2.455 scons: *** [build/loop-analysis/mapping-to-isl/mapping-to-isl.o] Error 1
2.513 In file included from include/loop-analysis/isl-ir.hpp:37,
2.513 from src/loop-analysis/isl-ir/input-output.cpp:1:
2.513 /usr/local/barvinok/include/isl/cpp.h: In member function ‘void isl::aff_list::foreach(const std::function<void(isl::aff)>&) const’:
2.513 /usr/local/barvinok/include/isl/cpp.h:5918:20: error: missing initializer for member ‘isl::aff_list::foreach(const std::function<void(isl::aff)>&) const::fn_data::eptr’ [-Werror=missing-field-initializers]
2.513 5918 | } fn_data = { fn };
2.513 | ^
2.514 compilation terminated due to -fmax-errors=1.
2.525 scons: *** [build/loop-analysis/isl-ir/input-output.o] Error 1
2.528 In file included from include/loop-analysis/isl-ir.hpp:37,
2.528 from src/loop-analysis/isl-ir/ir.cpp:1:
2.528 /usr/local/barvinok/include/isl/cpp.h: In member function ‘void isl::aff_list::foreach(const std::function<void(isl::aff)>&) const’:
2.528 /usr/local/barvinok/include/isl/cpp.h:5918:20: error: missing initializer for member ‘isl::aff_list::foreach(const std::function<void(isl::aff)>&) const::fn_data::eptr’ [-Werror=missing-field-initializers]
2.528 5918 | } fn_data = { fn };
2.528 | ^
2.529 compilation terminated due to -fmax-errors=1.
2.541 scons: *** [build/loop-analysis/isl-ir/ir.o] Error 1
9.414 scons: building terminated because of errors.
it seems that the static library can not be built properly with --static, and scons --accelergy --with-isl
works.