Skip to content

[physx] Fix x86 Linux build errors#30014

Merged
dan-shaw merged 1 commit into
microsoft:masterfrom
dpogue:x86-linux-physx
Mar 20, 2023
Merged

[physx] Fix x86 Linux build errors#30014
dan-shaw merged 1 commit into
microsoft:masterfrom
dpogue:x86-linux-physx

Conversation

@dpogue
Copy link
Copy Markdown
Contributor

@dpogue dpogue commented Mar 4, 2023

As per comments in the source, "some GCC compilers need the compiler flag -malign-double to be set."
https://github.com/NVIDIAGameWorks/PhysX/blob/a2c0428acab643e60618c681b501e86f7fd558cc/pxshared/include/foundation/PxPreprocessor.h#L473

  • Changes comply with the maintainer guide
  • SHA512s are updated for each updated download
  • The "supports" clause reflects platforms that may be fixed by this new version
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

@dpogue dpogue force-pushed the x86-linux-physx branch from ad7e9e5 to 12f4908 Compare March 4, 2023 06:43
@dpogue dpogue marked this pull request as ready for review March 4, 2023 06:43
Comment thread ports/physx/fix-compiler-flag.patch Outdated
@dpogue dpogue force-pushed the x86-linux-physx branch from 12f4908 to e1aee98 Compare March 5, 2023 03:53
@LilyWangLL LilyWangLL added the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label Mar 6, 2023
@LilyWangLL LilyWangLL added the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Mar 6, 2023
ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
SET(PHYSX_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -fno-strict-aliasing ${GCC_WARNINGS}" CACHE INTERNAL "PhysX CXX")
+
+ # Enable SSE2 and fix double alignment for 32-bit x86 builds
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you submit this fix to upstream?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can, but upstream tends to never accept pull requests and is no longer supported by Nvidia (they have a different repo for their PhysX v5.1.x release which also doesn't really seem to accept pull requests)

@dan-shaw dan-shaw added requires:author-response and removed info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. labels Mar 6, 2023
@dpogue
Copy link
Copy Markdown
Contributor Author

dpogue commented Mar 15, 2023

Upstream pull request: NVIDIAGameWorks/PhysX#627

@LilyWangLL LilyWangLL added depends:upstream-changes Waiting on a change to the upstream project and removed requires:author-response labels Mar 15, 2023
@dan-shaw dan-shaw merged commit e12d82b into microsoft:master Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. depends:upstream-changes Waiting on a change to the upstream project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants