Skip to content
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

MacOS build fails with unity-builder but not with unity-test-runner ? #295

Closed
achimmihca opened this issue Oct 28, 2021 · 8 comments
Closed
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@achimmihca
Copy link

Bug description

  • my StandaloneLinux64 build fails with GitHub Actions
  • It does not fail on my local machine
  • Other targetPlatforms also do not fail with GitHub Actions, although there is no platform specific code.
  • Running same project with unity-test-runner for StandaloneLinux64 also does not fail. But a true compiler error should fail the build (I think ?)
  • Log says "Error building Player because scripts had compiler errors", but it does not tell me, in which file the the compiler error occurs.
  • Log says a lot "/bin/sh: 1: mktemp: not found", maybe this is related?

How to reproduce

Expected behavior

The build should be consistent with the unity-test-runner build - and should not fail.

I don't know how I should debug this issue.
Is there a parameter I can set to get more log output from unity-builder?

@achimmihca achimmihca added the bug Something isn't working label Oct 28, 2021
@achimmihca
Copy link
Author

achimmihca commented Oct 28, 2021

Please find the log output here: https://github.com/UltraStar-Deluxe/Play/runs/4033610940?check_suite_focus=true

EDIT: Sorry, can you view the GitHub Actions log? I am unsure if only contributors can view it...

@webbertakken
Copy link
Member

You have 77 errors that all say the same thing: /bin/sh: 1: mktemp: not found.

I've not seen this error before in other peoples projects. Perhaps it's related to https://github.com/UltraStar-Deluxe/Play/runs/4033610940?check_suite_focus=true#step:5:1637 or some code before it.

At first sight this doesn't look to be a bug in unity-builder, but lets find out.

It does not fail on my local machine

As a first step, could you please verify this statement by creating a fresh clone of your project and building your project from it, without performing steps that also do not happen in your CI?

@achimmihca
Copy link
Author

I upgraded the project to Unity 2021.2.0f1.

The good news is that the Linux build is working now.
The bad news is that now the MacOS build is failing.
It is similar to before, but now with mac. However, there are different log outputs of course.

Anyway,

I am again bit lost on this, because I am not a MacOS user.
Please, find the log here: https://github.com/UltraStar-Deluxe/Play/runs/4050822575?check_suite_focus=true

Any ideas?

@achimmihca achimmihca changed the title StandaloneLinux64 build fails with unity-builder but not with unity-test-runner ? MacOS build fails with unity-builder but not with unity-test-runner ? Oct 30, 2021
@achimmihca
Copy link
Author

achimmihca commented Oct 30, 2021

I am also unable to build my minimal test project: https://github.com/achimmihca/UnityTestProject
Please find the log here: https://github.com/achimmihca/UnityTestProject/runs/4055552640?check_suite_focus=true

I removed the space in the project's name to see if this is causing the issue. But the build still fails.
However, the build on my local machine works fine (for macOS as well as iOS)

Maybe its an issue with the new Unity 2021.2 version?
I think the output location of Unity's build artifact is slightly different than in 2021.1

@davidmfinol
Copy link
Member

Could it be some issue related to Burst? I see these in your logs:
https://github.com/achimmihca/UnityTestProject/runs/4055552669?check_suite_focus=true#step:7:2472
https://github.com/achimmihca/UnityTestProject/runs/4055552640?check_suite_focus=true#step:7:3068

I'd recommend using Linux laptop (or VM) to try building your project.

@MaxwellDexter
Copy link

Also getting issues building for macOS on 2021.2. No issues for Linux and Windows builds.
We're using Burst 1.6.1.
macos_build_on_ubuntu_errors.txt
Here are some errors, not sure if they're the cause though. I couldn't find much else in the logs that was concerning though.

@davidmfinol
Copy link
Member

@MaxwellDexter
Have you tried using your personal Linux laptop or VM to build the macOS version?
I think that would be the first place to start debugging this error.

@davidmfinol davidmfinol added help wanted Extra attention is needed duplicate This issue or pull request already exists and removed help wanted Extra attention is needed labels Feb 25, 2022
@davidmfinol
Copy link
Member

Looks like this issue is actually a duplicate of #320, which should be fixed soon by game-ci/docker#158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants