Skip to content

Fix Missing ADIOS1 Stubs in Library#1407

Merged
ax3l merged 1 commit intoopenPMD:devfrom
franzpoeschel:fix-clang-asan-without-adios1
Mar 29, 2023
Merged

Fix Missing ADIOS1 Stubs in Library#1407
ax3l merged 1 commit intoopenPMD:devfrom
franzpoeschel:fix-clang-asan-without-adios1

Conversation

@franzpoeschel
Copy link
Contributor

@franzpoeschel franzpoeschel commented Mar 28, 2023

The ADIOS1 stubs are still defined in those files, and some compilers (clang 14 with asan & ubsan active) will fail due to missing symbols this at link time.

@ax3l
Copy link
Member

ax3l commented Mar 28, 2023

Thank you! Will test in BLAST-ImpactX/impactx#299

ax3l added a commit to ax3l/impactx that referenced this pull request Mar 28, 2023
target_link_libraries(openPMD PUBLIC openPMD.ADIOS1.Parallel)
else()
# add stubs to prevent missing symbols in Clang ASAN/UBSAN
target_sources(openPMD PRIVATE ${IO_ADIOS1_SEQUENTIAL_SOURCE} ${IO_ADIOS1_SOURCE})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think adding ADIOS1IOHandler.cpp and ParallelADIOS1IOHandler.cpp is probably sufficient, but I guess CMake filters duplicate sources anyways.

@ax3l ax3l mentioned this pull request Mar 28, 2023
8 tasks
@ax3l ax3l added this to the 0.15.1 milestone Mar 28, 2023
@ax3l ax3l changed the title Build ADIOS1 files into main library if compiling without support for ADIOS1 Fix Missing ADIOS1 Stubs in Library Mar 28, 2023
@ax3l ax3l force-pushed the fix-clang-asan-without-adios1 branch from 03bafa1 to 8393246 Compare March 28, 2023 19:59
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works splendid! Thank you! 🎉

ax3l added a commit to ax3l/impactx that referenced this pull request Mar 28, 2023
ax3l added a commit to ax3l/impactx that referenced this pull request Mar 29, 2023
@ax3l ax3l merged commit 47af576 into openPMD:dev Mar 29, 2023
ax3l added a commit to ax3l/impactx that referenced this pull request Mar 29, 2023
ax3l added a commit to ax3l/impactx that referenced this pull request Mar 30, 2023
`dev` has the patch in:
  openPMD/openPMD-api#1407
for clang ASAB/UBSAN
ax3l added a commit to ax3l/impactx that referenced this pull request Mar 30, 2023
`dev` has the patch in:
  openPMD/openPMD-api#1407
for clang ASAB/UBSAN
ax3l added a commit to ax3l/impactx that referenced this pull request Mar 30, 2023
`dev` has the patch in:
  openPMD/openPMD-api#1407
for clang ASAB/UBSAN
ax3l added a commit to BLAST-ImpactX/impactx that referenced this pull request Mar 30, 2023
* CMake: openPMD Options

Default: ON

* Doxygen: openPMD-api Tagfile

* Particle Container: Named Attributes

* Examples w/ openPMD

* openPMD diagnostics element

* User-Facing Docs

* Remove: Full ASCII Beam Diags

Keep reduced ASCII diags for now.

* MAD-X: MONITOR Support

* openPMD-api version 0.15.0.post2

`dev` has the patch in:
  openPMD/openPMD-api#1407
for clang ASAB/UBSAN

* CI: Update openPMD

- New Binary Names
- HDF5 dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants