Skip to content

Fix macOS compilation issues - #1074

Open
luke-mckay wants to merge 1 commit into
litecoin-project:masterfrom
luke-mckay:macos_update_m5
Open

Fix macOS compilation issues#1074
luke-mckay wants to merge 1 commit into
litecoin-project:masterfrom
luke-mckay:macos_update_m5

Conversation

@luke-mckay

Copy link
Copy Markdown

This commit addresses compilation issues encountered when building on MacBook M5 (Apple Silicon) as well as some issues compiling on an older Intel based MacBook. These use clang instead of gcc, and adapts to different library versions available on macOS.

Changes include:

  • scrypt: Add macOS-specific endian.h include and guard endian functions for Apple platforms to use system implementations
  • wallet: Add Boost version checks for filesystem API compatibility across different Boost versions
  • build system: Update configure.ac and boost m4 macros for macOS compatibility
  • docs: Update build-osx.md with the latest build instructions
  • macdeploy: Update macdeployqtplus script for compatibility when some translation files are not available.

These changes ensure the codebase compiles successfully with clang on Apple Silicon while maintaining compatibility with existing platforms.

Closes #1073

I have not tried cross compiles, where the mac build is performed on linux. I have not tried or validated whatever release process is used for Litecoin Core. I have only built on two different MacBooks with the latest OS for each one. I'd suggest some others perform some testing on these if they are to be considered to be integrated.

 for clang and library compatibility

This commit addresses compilation issues encountered when building on
MacBook M5 (Apple Silicon) as well as some issues compiling on an older
Intel based MacBook. These use clang instead of gcc, and adapts to
different library versions available on macOS.

Changes include:
- scrypt: Add macOS-specific endian.h include and guard endian functions
  for Apple platforms to use system implementations
- wallet: Add Boost version checks for filesystem API compatibility
  across different Boost versions
- build system: Update configure.ac and boost m4 macros for macOS
  compatibility
- docs: Update build-osx.md with the latest build instructions
- macdeploy: Update macdeployqtplus script for compatibility when
  some translation files are not available.

These changes ensure the codebase compiles successfully with clang on
Apple Silicon while maintaining compatibility with existing platforms.
@DavidBurkett DavidBurkett self-assigned this Jan 17, 2026
@losh11

losh11 commented Mar 23, 2026

Copy link
Copy Markdown
Member

@luke-mckay can you try a gitian build with these changes please? have a look at https://github.com/DavidBurkett/ltc-release-builder which should make it easier.

@luke-mckay

Copy link
Copy Markdown
Author

I'll take a look. Sorry for the delay.

@zorkcoin-dev

Copy link
Copy Markdown

I have confirmed that this breaks the release build. Now that I've circled back to this it shouldn't take me long to investigate a new solution.

@losh11

losh11 commented May 9, 2026

Copy link
Copy Markdown
Member

@zorkcoin-dev are you saying luke's patch breaks your build?

@luke-mckay

luke-mckay commented May 16, 2026

Copy link
Copy Markdown
Author

I also confirmed it breaks the release. Before even looking at a fix I was going to see if the release even works on Apple Silicon? I hadn't ever actually just ran a release on the new system. I figured it might be that another binary would need added to the release, but I've been slow with this stuff. if @zorkcoin-dev has more info that might be helpful too.

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.

MacOS build issue(s)

4 participants