Perfect icon indicating copy to clipboard operation
Perfect copied to clipboard

Compiling on M1 Mac

Open omrd opened this issue 4 years ago • 5 comments

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>>')

omrd avatar Feb 04 '21 06:02 omrd

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

GJNilsen avatar Feb 04 '21 23:02 GJNilsen

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.

omrd avatar Feb 04 '21 23:02 omrd

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

GJNilsen avatar Feb 05 '21 01:02 GJNilsen

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

omrd avatar Feb 05 '21 19:02 omrd

@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??

RockfordWei avatar Jul 24 '21 17:07 RockfordWei