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 failure against gcc-13: GenericRegistrationFilter.h:267:53: error: declaration of 'virtual void mirtk: :GenericRegistrationFilter::SimilarityMeasure #786

Open
trofi opened this issue Feb 10, 2024 · 0 comments

Comments

@trofi
Copy link

trofi commented Feb 10, 2024

The failure was seen x86_64-linux using gcc-13 in nixpkgs: https://hydra.nixos.org/build/247983475

In file included from /build/source/Modules/Common/include/mirtk/Observable.h:23,
                 from /build/source/Modules/Transformation/include/mirtk/Transformation.h:26,
                 from /build/source/Modules/Transformation/include/mirtk/ImageTransformation.h:24,
                 from /build/source/Packages/Viewer/include/mirtk/RView.h:101,
                 from /build/source/Packages/Viewer/src/RViewConfig.cc:20:
/build/source/Modules/Registration/include/mirtk/GenericRegistrationFilter.h:267:53: error: declaration of 'virtual void mirtk::GenericRegistrationFilter::SimilarityMeasure(mirtk::SimilarityMeasure)' changes meaning of 'SimilarityMeasure' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wchanges-meaning-Wchanges-meaning8;;]
  267 |   mirtkPublicAttributeMacro(enum SimilarityMeasure, SimilarityMeasure);
      |                                                     ^~~~~~~~~~~~~~~~~
/build/source/Modules/Common/include/mirtk/Object.h:355:25: note: in definition of macro 'mirtkDefineAttributeMacro'
  355 |     inline virtual void name(type arg) { _##name = arg; }                      \
      |                         ^~~~

Used cmake flags: -DWITH_VTK=ON -DBUILD_ALL_MODULES=ON -DWITH_TBB=ON -DWITH_ITK=ON -DWITH_GIFTICLIB=ON -DWITH_NIFTILIB=ON.

The similar failure happens both on 2022-07-22 and master versions.

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

1 participant