carbon-lang icon indicating copy to clipboard operation
carbon-lang copied to clipboard

Clean minor issues with mac build

Open jonmeow opened this issue 3 years ago • 1 comments

On build:

clang++: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]

Probably need to clean up flags, but wanted to check with @chandlerc because I thought we'd tried to address this.

On run:

explorer(26799,0x118034600) malloc: nano zone abandoned due to inability to preallocate reserved vm space.

https://stackoverflow.com/questions/64126942/malloc-nano-zone-abandoned-due-to-inability-to-preallocate-reserved-vm-space

  1. Undef NANO_PREALLOCATE_BAND_VM (only viable if you compile libmalloc from source)
  2. Set the environment variable MallocNanoZone to 0.

I think we need option 2

╚╡which clang++
/Users/jperkins/.brew/opt/llvm/bin/clang++
╚╡clang++ --version
Homebrew clang version 14.0.6
Target: x86_64-apple-darwin21.5.0
Thread model: posix
InstalledDir: /Users/jperkins/.brew/opt/llvm/bin

jonmeow avatar Jul 17 '22 18:07 jonmeow

Note, -pie is fastbuild+opt, nano I think may be fastbuild only (possibly because it's related to sanitizers)

jonmeow avatar Jul 17 '22 18:07 jonmeow

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please comment or remove the inactive label. The long term label can also be added for issues which are expected to take time. This issue is labeled inactive because the last activity was over 90 days ago.

github-actions[bot] avatar Oct 16 '22 02:10 github-actions[bot]