#67108 closed defect (fixed)
fldigi: variant "native" fails on AppleSilicon
Reported by: | vk1kcm (Carl Makin) | Owned by: | ra1nb0w |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | haspatch | Cc: | |
Port: | fldigi |
Description
The AppleSilicon compiler doesn't support -march=native, instead configure uses "nativeARM". Attached patch passes "--enable-optimizations=nativeARM" to configure if os.arch eq "arm", or "--enable-optimizations=native" if it doesn't.
Attachments (1)
Change History (8)
comment:1 Changed 20 months ago by vk1kcm (Carl Makin)
comment:2 Changed 20 months ago by jmroot (Joshua Root)
Keywords: | haspatch added |
---|---|
Owner: | set to ra1nb0w |
Status: | new → assigned |
Summary: | Port variant "native" fails on AppleSilicon → fldigi: variant "native" fails on AppleSilicon |
Type: | enhancement → defect |
Needs to check ${configure.build_arch}
, not ${os.arch}
.
comment:3 Changed 20 months ago by vk1kcm (Carl Makin)
Ok, updated patch to use ${configure.build_arch} instead of ${os.arch}. Replaced old patch.
comment:4 Changed 20 months ago by kencu (Ken)
Another option, newer versions of clang do support -march=native:
% uname -a Darwin Kens-MBP 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64 % clang++ -march=native test.cc clang: error: the clang compiler does not support '-march=native' % clang++-mp-15 -march=native test.cc <OK>
comment:5 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)
Whitespace in the patch should be spaces, not tabs, to match the rest of the Portfile and its modeline.
Changed 20 months ago by vk1kcm (Carl Makin)
Attachment: | Portfile.diff added |
---|
Tabs replaced with spaces and just the native patch.
comment:6 Changed 20 months ago by Davide Gerhard <ra1nb0w@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Ahh, the patch includes the fix for flarq version as well.