Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,842
    • Issues 1,842
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 88
    • Merge requests 88
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaView
  • ParaViewParaView
  • Issues
  • #20646

Closed
Open
Created Apr 15, 2021 by Nabil Ghodbane@nitawa

Building Paraview in debug mode with gcc 9 fails

Hi, ParaView 5.9 cannot be built in debug mode with gcc 9.3. Compilation fails with the following error message:

VTK/ThirdParty/ioss/vtkioss/Ioss_Assembly.C <ligne-de-commande>: erreur: expected unqualified-id before numeric constant
VTK/ThirdParty/ioss/vtkioss/Ioss_Utils.h:527:24: note: dans l'expansion de la macro "DEBUG"
  527 |   inline std::ostream &DEBUG() { return *Utils::m_debugStream; }

The issue seems to be due to the declaration of DEBUG function which name matches the preprocessor macro DEBUG Maybe there is some more subtle fix, but renaming the function:

inline std::ostream &DEBUG() { return *Utils::m_debugStream; }

to:

inline std::ostream &STREAM_DEBUG() { return *Utils::m_debugStream; }

and changing all occurences of this function solves the reported issue.

HTH, nabil.

PS: the issue can be reproduced with Fedora 30 or CentOS 7 with devtoolset-9.

paraview.0015-Paraview_VTKM_ioss.patch

Edited Apr 16, 2021 by Nabil Ghodbane
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking