-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Build toolchains on macOS #91
Conversation
Thanks for doing this!!! Don't worry about building the Darwin aarch64 toolchains. I don't think we'll be able to do that unless CircleCI has ARM-based Macs. Building the x86_64 toolchains for OSX seems like a really helpful improvement for now. |
Co-authored-by: Frank Hunleth <[email protected]>
Hmm, it might be possible:
Although I'll focus on the x86_64 toolchains for now. |
@axelson I bumped the version to trigger an OSX build. |
Although I'm not clear where `$SED` is coming from in nerves_toolchain_ctng/build.sh
Making progress! Build is now 2 hours in 🎉 Is this error something to be worried about?
It's not causing the build to stop, and it's a bit weird since it's an error within elixir. It's in the output twice so far. |
Hmmm, maybe need to increase the disk size somehow. Or free up space on already built toolchains. |
I've been ignoring this error. It means that there might be an inconsistency between the configuration is processed and then resaved. I had thought that it had a nicer error message, but apparently not. |
I see the message "Not cleaning up work directory since CI build" and I don't remember why we did that. It seems like the work directory could be cleaned up. That certainly should save a lot of space. |
Any ideas where else we could free up space? I guess I could try a build locally and then interactively check where the disk space is used. |
See #105 for a rebased version. It's slightly improved, but still doesn't work. CircleCI's new build duration limits affect this now. |
This is not close to being ready yet, but I wanted to create the PR to begin discussions since Slack history is not preserved.
The original plan (which is currently commented out) was to build all the mac toolchains with the
./build_release.sh
script. However that results in the following error (can be viewed in full at https://app.circleci.com/pipelines/github/nerves-project/toolchains/110/workflows/25aba439-358a-4505-8aef-042561fb7fb0/jobs/6376):The main error seems to be
Can't find a mac_arm_defconfig fragment. Check that one exists.
, which is correct. But since mac toolchains have been built from this repository before (e.g.nerves_toolchain_aarch64_nerves_linux_gnu-darwin_arm-1.4.2-3D80D46.tar.xz
andnerves_toolchain_aarch64_nerves_linux_gnu-darwin_x86_64-1.4.2-3D80D46.tar.xz
) something is probably incorrect in the CI setup. But I'm not sure what is wrong in the CI setup sincebuild_release.sh
andall-configs.sh
do not appear to be configurable (although perhaps specific environment variables are needed).Also I'm not sure if the 404's are expected when trying to download prebuilt toolchains, but it would make sense to skip those checks since we're trying to build the toolchains.
Any ideas on things to try?