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

Build error with commit 7add235 #682

Open
pdhahn opened this issue May 18, 2023 · 0 comments
Open

Build error with commit 7add235 #682

pdhahn opened this issue May 18, 2023 · 0 comments
Labels
beginner A good place to wade into OCCA development bug Use this label when reporting bugs! runtime Related to the OCCA runtime API

Comments

@pdhahn
Copy link
Contributor

pdhahn commented May 18, 2023

FYI today I get this error when building OCCA (commit 7add235) on my legacy CentOS 6 machine (64 bit Intel Xeons) using gcc 5.1:

[  4%] Building CXX object CMakeFiles/libocca.dir/src/core/memoryPool.cpp.o
/vol1/vermilion/apps/occa/occa-clone/src/core/memoryPool.cpp:174:55: error: specialization of ‘template<class T> occa::memory occa::experimental::memoryPool::reserve(occa::dim_t)’ in different namespace [-fpermissive]
   memory memoryPool::reserve<void>(const dim_t entries) {
                                                       ^
In file included from /vol1/vermilion/apps/occa/occa-clone/include/occa/core/device.hpp:9:0,
                 from /vol1/vermilion/apps/occa/occa-clone/include/occa/core/base.hpp:16,
                 from /vol1/vermilion/apps/occa/occa-clone/src/core/memoryPool.cpp:1:
/vol1/vermilion/apps/occa/occa-clone/include/occa/core/memoryPool.hpp:218:18: error:   from definition of ‘template<class T> occa::memory occa::experimental::memoryPool::reserve(occa::dim_t)’ [-fpermissive]
     occa::memory reserve(const dim_t entries);
                  ^
make[2]: *** [CMakeFiles/libocca.dir/src/core/memoryPool.cpp.o] Error 1
make[1]: *** [CMakeFiles/libocca.dir/all] Error 2
make: *** [all] Error 2

BUT note I do not get the error on my more modern Linux Mint 21 machine (64 bit Intel Zeons) using gcc 11.3 (thank goodness!)..

@kris-rowe kris-rowe added bug Use this label when reporting bugs! runtime Related to the OCCA runtime API beginner A good place to wade into OCCA development labels Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner A good place to wade into OCCA development bug Use this label when reporting bugs! runtime Related to the OCCA runtime API
Projects
None yet
Development

No branches or pull requests

2 participants