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

[Question] Compile ITK with gcc 9 #1371

Closed
tarnh opened this issue Oct 29, 2019 · 4 comments
Closed

[Question] Compile ITK with gcc 9 #1371

tarnh opened this issue Oct 29, 2019 · 4 comments
Labels
type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances type:Compiler Compiler support or related warnings
Milestone

Comments

@tarnh
Copy link

tarnh commented Oct 29, 2019

Dear ITK developers,

I currently need a OTB 6.2 superbuild. My distro ArchLinux has already switched over to gcc 9. Downgrading first seemed easy to me, but all packages in the main repos are now compiled to a newer version of libstdc++.

So I've tried to build https://github.com/InsightSoftwareConsortium/ITK/tree/release-4.13 with gcc-9, which currently fails due to "deprecated copy" warnings.

I assume that you are working on that.

How I can I patch the superbuild to compile with -Wno-deprecated-copy to fix my compilation problem now?

@tarnh tarnh added the type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances label Oct 29, 2019
@thewtex
Copy link
Member

thewtex commented Oct 29, 2019

This seems to be a duplicate of #1302

@tarnh it would be worth the effort upgrading to ITK 5 in the meantime.

CC: @phcerdan

@thewtex thewtex added the type:Compiler Compiler support or related warnings label Oct 29, 2019
@thewtex thewtex added this to the ITK v5.1.0 milestone Oct 29, 2019
@tarnh
Copy link
Author

tarnh commented Oct 29, 2019

Of course I'm using ITK 5 on my main system.
https://github.com/CNES/WASP is the culprit which pushes me to use the obsolete OTB 6.2.

@phcerdan
Copy link
Contributor

@tarnh Are you compiling with -Werror? I am able to compile ITK with gcc9, despite those warnings.

@tarnh
Copy link
Author

tarnh commented Oct 29, 2019

I'm building with an opaque "SuperBuild" script, so probably yes.

BTW: Do you have any experience in compiling HDF4? If not, this issue may be closed.

@dzenanz dzenanz closed this as completed Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances type:Compiler Compiler support or related warnings
Projects
None yet
Development

No branches or pull requests

4 participants