SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.69k stars 3.19k forks source link

Help: Trouble building on macOS #11145

Closed yjp20 closed 2 years ago

yjp20 commented 2 years ago

I was trying to get serenity to build on mac and had some trouble.

I believe I have followed the steps as described:

  1. Install macfuse (instead of osxfuse as described in the documentation)
  2. Meta/serenity.sh rebuild-toolchain
  3. Meta/serenity.sh run

The last command fails as follows:

...
-- Install configuration: ""
ninja: Entering directory `/Users/youngjin/sync/projects/_forks/serenity/Build/i686'
[0/2] Re-checking globbed directories...
[0/1] cd /Users/youngjin/projects/_forks/serenity/Build/i686 && /usr/local/Cellar/...M_VERSION=11.2.0 /Users/youngjin/projects/_forks/serenity/Meta/build-image-qemu.sh
checking existing image
e2fsck 1.46.4 (18-Aug-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
_disk_image: 7991/56000 files (0.4% non-contiguous), 75807/211318 blocks
done
mounting filesystem... done
installing base system... unmounting filesystem... done
FAILED: CMakeFiles/qemu-image _disk_image /Users/youngjin/projects/_forks/serenity/Build/i686/CMakeFiles/qemu-image /Users/youngjin/projects/_forks/serenity/Build/i686/_disk_image
cd /Users/youngjin/projects/_forks/serenity/Build/i686 && /usr/local/Cellar/cmake/3.22.0/bin/cmake -E env SERENITY_SOURCE_DIR=/Users/youngjin/projects/_forks/serenity SERENITY_ARCH=i686 SERENITY_TOOLCHAIN=GNU LLVM_VERSION=11.2.0 /Users/youngjin/projects/_forks/serenity/Meta/build-image-qemu.sh
ninja: build stopped: subcommand failed.

Am I missing a step? It's strange because it looks like the command ran successfully but ninja thinks otherwise.

linusg commented 2 years ago

https://github.com/SerenityOS/serenity/blob/master/CONTRIBUTING.md#issue-policy:

No build issues (or other support requests). If the GitHub Actions CI build succeeds, the build problem is most likely on your side. Work it out locally, or ask in the #build-problems channel on Discord.

aesophor commented 2 years ago

I'm having this issue too on macOS Big Sur (2.2 GHz Quad-Core Intel Core i7)