Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 831
    • Issues 831
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 233
    • Merge requests 233
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #18263
Closed
Open
Issue created Jul 21, 2021 by EJ Shim@EJShim

Build fails + Emscripten 2.0.25

I am trying to build VTK using Emscripten 2.0.25 below cmake options are applied :

            -G Ninja     \
            -DCMAKE_BUILD_TYPE:STRING=Release     \
            -DBUILD_SHARED_LIBS:BOOL=OFF     \
            -DVTK_ENABLE_LOGGING:BOOL=OFF     \
            -DVTK_ENABLE_WRAPPING:BOOL=OFF       \
            -DVTK_LEGACY_REMOVE:BOOL=ON     \
            -DVTK_OPENGL_USE_GLES:BOOL=ON     \
            -DVTK_USE_SDL2:BOOL=ON     \
            -DVTK_NO_PLATFORM_SOCKETS:BOOL=ON \
            -DVTK_MODULE_ENABLE_VTK_hdf5:STRING=NO      \

It worked fine in Emscripten 1.38 version, but now it generates error in (looks like) every modules using vtkIOStream.h :

.
.
.
#6 1777.6 In file included from /VTK/Common/Core/vtkIOStream.h:29:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/fstream:184:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/ostream:137:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/ios:215:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__locale:15:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/string:511:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/string_view:179:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__string:57:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/algorithm:653:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/memory:687:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/atomic:579:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__threading_support:17:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/errno.h:10:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/bits/errno.h:1:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/wasi/api.h:29:
#6 1777.6 In file included from /emsdk/upstream/emscripten/cache/sysroot/include/stddef.h:17:
#6 1777.6 /emsdk/upstream/emscripten/cache/sysroot/include/bits/alltypes.h:291:54: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
#6 1777.6 typedef struct { long long __ll; long double __ld; } max_align_t;
#6 1777.6                                                      ^
#6 1777.6 /emsdk/upstream/lib/clang/13.0.0/include/__stddef_max_align_t.h:24:3: note: previous definition is here
#6 1777.6 } max_align_t;
.
.
.
Assignee
Assign to
Time tracking