Skip to content

Stop building memory-analyzer on Mac and Windows #7923

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

Conversation

esteffin
Copy link
Contributor

@esteffin esteffin commented Sep 27, 2023

This PR fixes an issue when trying to build memory-analyzer on Apple Silicon machines by excluding it on Windows and Apple systems.

This also was the expected behaviour for it.

Fixes Issue #7922

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@esteffin esteffin requested a review from tautschnig September 27, 2023 14:13
@esteffin esteffin requested a review from a team as a code owner September 27, 2023 14:13
Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

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

Can we please also change src/Makefile to do

ifeq ($(WITH_MEMORY_ANALYZER),1)
  all: memory-analyzer.dir
else ifneq ($(filter-out Windows Darwin,$(detected_OS)),)
  all: memory-analyzer.dir
endif

instead of the current Linux-only logic?

Changed make build to have the same behaviour of cmake on memory-analyzer.
@thomasspriggs
Copy link
Contributor

Should this be built for Apple + Intel builds?

@tautschnig
Copy link
Collaborator

Should this be built for Apple + Intel builds?

macOS has lldb instead of gdb, and I have no idea whether our interface with gdb ports to that. So I'd say no. (But of course someone could sit down and try and make this work...)

@esteffin
Copy link
Contributor Author

Should this be built for Apple + Intel builds?

Even if the module is not enabled by default, it is possible to compile it in any system by using WITH_MEMORY_ANALYZER

@NlightNFotis NlightNFotis linked an issue Sep 27, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (10c4bca) 78.91% compared to head (b62b90b) 79.00%.
Report is 5 commits behind head on develop.

❗ Current head b62b90b differs from pull request most recent head d824acc. Consider uploading reports for the commit d824acc to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7923      +/-   ##
===========================================
+ Coverage    78.91%   79.00%   +0.08%     
===========================================
  Files         1697     1697              
  Lines       195418   195418              
===========================================
+ Hits        154211   154384     +173     
+ Misses       41207    41034     -173     

see 19 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NlightNFotis
Copy link
Contributor

lldb to my knowledge uses different commands than gdb, so making it work is a fairly elaborate exercise.

We probably shouldn't consider it as part of this change.

@esteffin esteffin merged commit 7fa2a07 into diffblue:develop Sep 27, 2023
@esteffin esteffin deleted the esteffin/remove-memory-analyzer-on-mac-and-win branch September 27, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build fails on Apple Silicon
5 participants