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

travis: Attempt to fix xcode9.3 travis build. #7976

Merged
merged 1 commit into from Jan 13, 2019
Merged

travis: Attempt to fix xcode9.3 travis build. #7976

merged 1 commit into from Jan 13, 2019

Conversation

orbea
Copy link
Contributor

@orbea orbea commented Jan 11, 2019

Description

This attempts to fix the travis build with xcode9.3, its failing to build because moc is not in the path. I guess homebrew is not installing it and how hard can it be to fix that?

I am not sure this is right, do not merge unless travis passes first.

Related Issues

xcode9.3 travis build failure

   /bin/sh -c /Users/travis/libretro-super/retroarch/pkg/apple/build/RetroArch_Metal.build/Release/RetroArchQt.build/Script-053FC2782143764B00D98D46.sh
/usr/local/opt/qt/bin/moc -o ui/drivers/moc_ui_qt.cpp ui/drivers/ui_qt.h
make: /usr/local/opt/qt/bin/moc: No such file or directory
/usr/local/opt/qt/bin/moc -o ui/drivers/qt/moc_ui_qt_load_core_window.cpp ui/drivers/qt/ui_qt_load_core_window.h
make: /usr/local/opt/qt/bin/moc: No such file or directory
make: *** [ui/drivers/moc_ui_qt.cpp] Error 1
make: *** Waiting for unfinished jobs....
make: *** [ui/drivers/qt/moc_ui_qt_load_core_window.cpp] Error 1

** BUILD FAILED **

Reviewers

Do not merge unless travis passes!

@orbea orbea changed the title travis: Attempt to xcode9.3 travis build. travis: Attempt to fix xcode9.3 travis build. Jan 11, 2019
@orbea
Copy link
Contributor Author

orbea commented Jan 11, 2019

See comment Homebrew/brew#5513 (comment).

@orbea
Copy link
Contributor Author

orbea commented Jan 11, 2019

@twinaphex I guess this is good for now given this is a workaround for an upstream bug...

@orbea
Copy link
Contributor Author

orbea commented Jan 11, 2019

Actually its still failing even if the travis build passes...

** BUILD FAILED **
The following build commands failed:
	CompileC build/RetroArch_Metal.build/Release/RetroArchQt.build/Objects-normal/x86_64/griffin_objc.o /Users/travis/libretro-super/retroarch/griffin/griffin_objc.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
buildbot job: retroarch: [status: done] [recipes/apple/retroarch-osx-x64]
buildbot message: retroarch: [status: done] [recipes/apple/retroarch-osx-x64]
Packaging
The command "./build-retroarch-metal.sh" exited with 0.

Regardless this has to do with metal is out of scope for this PR.

@inactive123
Copy link
Contributor

So you still want me to merge this or not?

@orbea
Copy link
Contributor Author

orbea commented Jan 11, 2019

@twinaphex Its part of the fix for the xcode9.3 travis builds, another part is here libretro/libretro-super#932 and the last part should be done in a new PR probably by someone that actually can use metal.

@orbea
Copy link
Contributor Author

orbea commented Jan 11, 2019

@twinaphex To rephrase, there are three points of failure, this PR fixes the first one.

@orbea
Copy link
Contributor Author

orbea commented Jan 11, 2019

@twinaphex This is good and is blocking other fixes, do you have any issues?

Copy link
Member

@RobLoach RobLoach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brewed.

@RobLoach
Copy link
Member

Merging, updating the dependencies in xcode 9.3 allows Travis to build properly, fixing our automated tests. Thanks Orbea 👍

@RobLoach RobLoach merged commit 63ba60a into libretro:master Jan 13, 2019
@orbea orbea deleted the brew branch January 13, 2019 19:58
@orbea
Copy link
Contributor Author

orbea commented Jan 13, 2019

@RobLoach Its still not fully fixed, travis is getting the wrong error code and succeeding erroneously while there is still a metal build issue.

This also needs to be merged to fix the error code which will expose the final issue. libretro/libretro-super#932

As for the final issue where metal is not actually building, I think it might be missing dependencies, but I can't find any documentation or info about installing metal on osx or travis.

@RobLoach
Copy link
Member

RobLoach commented Jan 13, 2019

Hmm, I'll check through some of the Travis logs. Thanks for the update. Would be great to be able to leverage the automated testing more.

@orbea
Copy link
Contributor Author

orbea commented Jan 13, 2019

Also in the future it may be good to revert this change when the upstream homebrew issue is resolved and the CI provider updates their homebrew appropriately. It likely makes the build a little longer with brew update.

Edit: I guess its fixed, just the CI provider hasn't updated and who knows when that will happen...

Homebrew/brew#5517

@RobLoach
Copy link
Member

Let's keep watch, when Travis updates, then we won't have to worry about that update call ourselves. In the mean time, is there some caching we could add to help speed up the process?

@orbea
Copy link
Contributor Author

orbea commented Jan 13, 2019

For reference here is the current status the of xcode9.3 build without the libretro-super fix.

In file included from /Users/travis/libretro-super/retroarch/griffin/griffin_objc.m:72:
In file included from /Users/travis/libretro-super/retroarch/griffin/../gfx/common/metal/Context.m:9:
/Users/travis/libretro-super/retroarch/griffin/../gfx/common/metal/Context.h:47:36: error: no type or protocol named 'CAMetalDrawable'
@property (nonatomic, readonly) id<CAMetalDrawable> nextDrawable;
                                   ^
/Users/travis/libretro-super/retroarch/griffin/../gfx/common/metal/Context.h:53:33: error: expected a type
                         layer:(CAMetalLayer *)layer
                                ^
In file included from /Users/travis/libretro-super/retroarch/griffin/griffin_objc.m:72:
/Users/travis/libretro-super/retroarch/griffin/../gfx/common/metal/Context.m:577:59: error: property 'texture' not found on object of type 'id'
      rpd.colorAttachments[0].texture = self.nextDrawable.texture;
                                                          ^
/Users/travis/libretro-super/retroarch/griffin/../gfx/common/metal/Context.m:580:42: error: property 'texture' not found on object of type 'id'
         _backBuffer = self.nextDrawable.texture;
                                         ^
4 errors generated.
** BUILD FAILED **
The following build commands failed:
	CompileC build/RetroArch_Metal.build/Release/RetroArchQt.build/Objects-normal/x86_64/griffin_objc.o /Users/travis/libretro-super/retroarch/griffin/griffin_objc.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
buildbot job: retroarch: [status: done] [recipes/apple/retroarch-osx-x64]
buildbot message: retroarch: [status: done] [recipes/apple/retroarch-osx-x64]
Packaging
The command "./build-retroarch-metal.sh" exited with 0.

Note.

** BUILD FAILED **

And (Return code of 0 means no error.)

The command "./build-retroarch-metal.sh" exited with 0.

I'm not very well informed about travis so I am not sure about caching here, but this PR could compensate and make it faster. libretro/libretro-super#931

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.

None yet

3 participants