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

build failed on OS X v. 10.13.3 (17D102) | Xcode Version 9.2 (9C40b) #87

Closed
nyotis opened this issue Mar 7, 2018 · 22 comments
Closed

Comments

@nyotis
Copy link

nyotis commented Mar 7, 2018

screen shot 2018-03-07 at 21 18 57

screen shot 2018-03-07 at 21 22 59

failed
@nyotis
Copy link
Author

nyotis commented Mar 7, 2018

your build details are crystal-clear, unfortunately it seems I am missing something...

screen shot 2018-03-07 at 22 09 02

@nyotis
Copy link
Author

nyotis commented Mar 7, 2018

the problem shows up for both MoltenVK Debug and Release targets.

/Users/nikyotis/Developer/MoltenVK/MoltenVKShaderConverter/MoltenVKSPIRVToMSLConverter/SPIRV-Tools/source/opt/instruction.cpp:513:10: Use of undeclared identifier 'spvInstructionBinaryToText'

Maybe I should just add the header? namespace prepending does not really help...

@nyotis
Copy link
Author

nyotis commented Mar 7, 2018

Modifying the signature of /var/instruction.h && /var/instruction.cpp so that PrettyPrint returns void does not help either...

screen shot 2018-03-07 at 22 20 32

@nyotis
Copy link
Author

nyotis commented Mar 8, 2018

screen shot 2018-03-08 at 07 57 34

@karl-lunarg
Copy link
Contributor

This builds fine for me. I have the same version of Xcode as you. Also, the Travis-CI build is OK.

I do note that my version of Instruction.cpp has only 451 lines in it. And you are getting an error at line 513.

Are you sure you are using the latest sources?

If you do a git pull on the MoltenVK repo, you may need to do git submodule update in order to freshen the submodule content. The External/makeAll script does this submodule update for you. You may want to run this script again to get all the submodules updated and rebuilt.

Some of the other error messages in your screenshots also suggest that this could be the problem.

@nyotis
Copy link
Author

nyotis commented Mar 8, 2018

Thanks @karl-lunarg. I am gonna try fresh once more.

@irobertmanley
Copy link

Still have the problem here on clean clone + makeAll or after getLatestAll.

@nyotis
Copy link
Author

nyotis commented Mar 9, 2018 via email

@nyotis
Copy link
Author

nyotis commented Mar 9, 2018

screen shot 2018-03-09 at 15 42 47

@irobertmanley
Copy link

irobertmanley commented Mar 9, 2018

There are completely separate versions of instruction.cpp - one in val and one in opt. One version doesn't have it, the other does.

@nyotis
Copy link
Author

nyotis commented Mar 9, 2018 via email

@nyotis
Copy link
Author

nyotis commented Mar 9, 2018 via email

@irobertmanley
Copy link

Perhaps they are not using High Sierra and APFS? Still finding minor filesystem differences here that may affect the scripts.

@nyotis
Copy link
Author

nyotis commented Mar 9, 2018 via email

@irobertmanley
Copy link

Worth noting that I only get this error after getLatestAll. There is a different error on clean makeAll regarding a missing generated include file.

@nyotis
Copy link
Author

nyotis commented Mar 9, 2018

thanks for the heads-up

@karl-lunarg
Copy link
Contributor

@irobertmanley You shouldn't really use getLatestAll. getLatestAll is for the case where a MoltenVK developer wants to update submodules to their latest versions. Often, a change in a submodule may require some adjustment in the rest of MoltenVK to cope with the change. For regular building, you really need to leave the submodule revisions alone and use makeAll (which should sync the submodule trees to the correct version).

As for the missing generated include file, see issue #84. I'll update that issue with a workaround.

@irobertmanley
Copy link

makeAll based build now working with that update.

@nyotis
Copy link
Author

nyotis commented Mar 9, 2018 via email

@karl-lunarg
Copy link
Contributor

@nyotis If you are building fine now, it would help @billhollings if you could close this issue. I think that #84 sufficiently tracks the other problem.

@nyotis
Copy link
Author

nyotis commented Mar 10, 2018

both Debug and Release build now fine

@billhollings
Copy link
Contributor

billhollings commented Mar 13, 2018

PR #98 changes the way that external libraries are fetched and built, and should fix this issue. Among other significant changes, the getLatestAll script has been removed.

As @karl-lunarg indicates...the getLatestAll script was unintentionally dangerous. It was only intended to be used by MoltenVK devs who are deliberately moving MoltenVK to use another version of an external library. It was not intended to be used as a mechanism for app devs to use different versions of the external libraries...as doing so causes issues like this.

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

No branches or pull requests

4 participants