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

Compiling on M1 Mac #300

Open
omrd opened this issue Feb 4, 2021 · 5 comments
Open

Compiling on M1 Mac #300

omrd opened this issue Feb 4, 2021 · 5 comments

Comments

@omrd
Copy link
Contributor

omrd commented Feb 4, 2021

PerfectLib doesn't compile on M1 macs. I get an error in Log.swift on line 73. Has anyone been able to get this to work?

Cannot convert value of type 'CVaListPointer' to expected argument type '__darwin_va_list?' (aka 'Optional<UnsafeMutablePointer<Int8>>')

@GJNilsen
Copy link

GJNilsen commented Feb 4, 2021

You should migrate to a supported project. I went for vapor, and I’m really glad I did.

@omrd
Copy link
Contributor Author

omrd commented Feb 4, 2021

I might have to but it won't be an easy task. My project is rather large right now. This code compiles fine when compiling for Rosetta, but arm compile doesn't work and I think it all comes down to this line.

@GJNilsen
Copy link

GJNilsen commented Feb 5, 2021

Don’t expect getting any support for this framework, it has been abandoned for long time now.

@omrd
Copy link
Contributor Author

omrd commented Feb 5, 2021

Spoke with the team and they worked with me through it. Created a pull request.

@RockfordWei
Copy link
Contributor

@kjessup at last, I got a chance to test this issue on my M1 MacBook Air, and it does have some surprises. Firstly, without any patches, clone & build PerfectTemplate will cause the same error above, but if just simply clone and run swift test on PerfectLib itself, it says all tests passed! I am trying very hard to figure out why it failed this way??

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

3 participants