Closed bep closed 3 years ago
So I can confirm that the intel Mac binary works on the M1 chip under Rosetta2 (working on a MacBook Pro) without any real issues. If you want me to run any tests let me know.
@tomekent that's great to hear. I suspect that we need to wait until Go 1.16 for a native build (February?). Does watching/live reload also work as it should?
@bep Yes reload works fine as far as I can tell (I use the Hugo-academic theme and my main issues are due to my site being written in the pre-wowchemy).
I think if you compile go from source as well you'd probably get a native build - as far as I'm aware the February date is for the official binary release. Rosetta2 works extremely well, so there's certainly no need for native at this stage.
@tomekent thanks, I'm thinking of getting myself one of these cheapish Mac Mini M1's for Christmas to thinker around with...
I have an Air with M1, running Hugo 0.73 and using Hugo modules. Go is installed via Brew. Right now not seeing any issues.
Don't know if this is helpful, but I'm getting this error periodically (0.73):
@budparr the fix for that is in either Go or in Rosetta 2 in Apple -- but I notice it happens in the runtime/trace package; as I cannot ever remember using that trace for anything useful, I might as well remove it if that could help people running Hugo on their M1's. As a side note, I have a Mac Mini M1 in order ...
Here's another one. Both of these appear to hit randomly:
Building sites … assertion failed [abi_info.kind == AbiKind::TranslatedCode]: emulated forward to an arm pc that isn't in translated code. arm_pc=0x1077a64d8 abi_kind=6 emulation_interval=[0x1079237c8,0x1079237dc) instruction_interval=[0x1079237b4, 0x1079237dc) x86_rip=0x44b8514
(ThreadContextRegisterState.cpp:677 move_to_instruction_boundary)
Again this issue seems fixed since v0.81.0 was released
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Due to software incompat with a lot of the software I own/depend on, I don't plan to get a Apple M1 anytime soon (maybe a Mac Mini for Christmas ...?), but I'll open up this issue for future ref/others to chime in.
I suspect/hope that we soon can get native builds from Brew, not sure, but we probably need to do some leg work on our build chain, too.
Also see https://docs.google.com/document/d/1iWUstb66v66tTVxQWNMZ1BehgNzEmykzqDCUp5l8ip8/edit#heading=h.obhbusc2ks3k