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

Fails to build with Clang 19.1.x #591

Open
berolinux opened this issue Oct 3, 2024 · 1 comment · May be fixed by #592
Open

Fails to build with Clang 19.1.x #591

berolinux opened this issue Oct 3, 2024 · 1 comment · May be fixed by #592

Comments

@berolinux
Copy link

Trying to build vigra with clang 19.1.x fails because multi_iterator_coupled.hxx tries to modify the this pointer.

cd /home/bero/abf/vigra/BUILD/vigra-1.12.1-build/vigra-Version-1-12-1/build/src/impex && /usr/bin/c++ -DHasEXR -DHasHDF5 -DHasJPEG -DHasPNG -DHasTIFF -DHasZLIB -Dvigraimpex_EXPORTS -I/home/bero/abf/vigra/BUILD/vigra-1.12.1-build/vigra-Version-1-12-1/include -isystem /usr/include/OpenEXR -isystem /usr/include/Imath -pthread -ftemplate-depth-1024 -ftemplate-depth-1024 -std=gnu++11 -fPIC    -DH5_BUILT_AS_DYNAMIC_LIB -MD -MT src/impex/CMakeFiles/vigraimpex.dir/imageinfo.cxx.o -MF CMakeFiles/vigraimpex.dir/imageinfo.cxx.o.d -o CMakeFiles/vigraimpex.dir/imageinfo.cxx.o -c /home/bero/abf/vigra/BUILD/vigra-1.12.1-build/vigra-Version-1-12-1/src/impex/imageinfo.cxx
In file included from /home/bero/abf/vigra/BUILD/vigra-1.12.1-build/vigra-Version-1-12-1/src/impex/imageinfo.cxx:62:
In file included from /home/bero/abf/vigra/BUILD/vigra-1.12.1-build/vigra-Version-1-12-1/include/vigra/imageinfo.hxx:58:
In file included from /home/bero/abf/vigra/BUILD/vigra-1.12.1-build/vigra-Version-1-12-1/include/vigra/multi_iterator.hxx:43:
/home/bero/abf/vigra/BUILD/vigra-1.12.1-build/vigra-Version-1-12-1/include/vigra/multi_iterator_coupled.hxx:493:9: error: expression is not assignable
  493 |         --this;
      |         ^ ~~~~
1 error generated.
make[2]: *** [src/impex/CMakeFiles/vigraimpex.dir/build.make:219: src/impex/CMakeFiles/vigraimpex.dir/imageinfo.cxx.o] Error 1
@lazka
Copy link

lazka commented Nov 19, 2024

In addition I get this with llvm 19:

C:/msys64/home/user/M/mingw-w64-vigra/src/vigra-Version-1-12-1/include/vigra/random_access_set.hxx:403:37: error: no member named 'operator()' in 'RandomAccessSet<Key, Compare, Alloc>'
  403 |    if((position == begin() || this->operator()(*(position-1),value))
      |                               ~~~~  ^
C:/msys64/home/user/M/mingw-w64-vigra/src/vigra-Version-1-12-1/include/vigra/random_access_set.hxx:404:35: error: no member named 'operator()' in 'RandomAccessSet<Key, Compare, Alloc>'
  404 |    && (position == end() || this->operator()(value, *position))) {

lazka added a commit to lazka/MINGW-packages that referenced this issue Nov 19, 2024
lazka added a commit to msys2/MINGW-packages that referenced this issue Nov 20, 2024
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

Successfully merging a pull request may close this issue.

2 participants