Ratatouille.lv2 icon indicating copy to clipboard operation
Ratatouille.lv2 copied to clipboard

ARM64 QEMU Bullseye VM mistaken for x86-64-v3 and errors out

Open 38github opened this issue 6 months ago • 12 comments

When trying to build (git cloned an hour ago) I get errors about unsupported options like -msse3 and x86-64-v3 that makes me believe that the ../Ratatouille/makefile doesn't detect that the VM environment is ARM64/aarch64. This is an ARM64 Bullseye VM under QEMU but the host computer is x86-64-v3.

Inside the VM:

$ lscpu
Architecture:                       aarch64
CPU op-mode(s):                     32-bit, 64-bit
Byte Order:                         Little Endian
CPU(s):                             8
On-line CPU(s) list:                0-7
Thread(s) per core:                 1
Core(s) per socket:                 1
Socket(s):                          8
NUMA node(s):                       1
Vendor ID:                          ARM
Model:                              0
Model name:                         Cortex-A57
Stepping:                           r1p0
BogoMIPS:                           125.00
NUMA node0 CPU(s):                  0-7
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit:        Not affected
Vulnerability L1tf:                 Not affected
Vulnerability Mds:                  Not affected
Vulnerability Meltdown:             Not affected
Vulnerability Mmio stale data:      Not affected
Vulnerability Retbleed:             Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass:    Vulnerable
Vulnerability Spectre v1:           Mitigation; __user pointer sanitization
Vulnerability Spectre v2:           Vulnerable
Vulnerability Srbds:                Not affected
Vulnerability Tsx async abort:      Not affected
Flags:                              fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
$ make
for         Linux
with        clang-18
using       lld-18
and         xxd -i
 Submodule up to date
 ================================================
 Building object file b64_encode.o 
 Building object file xadjustment.o 
 Building object file xadjustment_private.o 
 Building object file xasprintf.o 
 Building object file xchildlist.o 
 Building object file xchildlist_private.o 
 Building object file xcolor.o 
 Building object file xfilepicker.o 
 Building object file xpngloader.o 
 Building object file xputty.o 
 Building object file xsvgloader.o 
 Building object file xwidget.o 
 Building object file xwidget-linux.o 
 Building object file xwidget-mswin.o 
 Building object file xwidget_private.o 
 Building object file xbutton.o 
 Building object file xbutton_private.o 
 Building object file xcombobox.o 
 Building object file xcombobox_private.o 
 Building object file xdrawing_area.o 
 Building object file xdrawing_area_private.o 
 Building object file xframe.o 
 Building object file xframe_private.o 
 Building object file xkeyboard.o 
 Building object file xknob.o 
 Building object file xknob_private.o 
 Building object file xlabel.o 
 Building object file xlabel_private.o 
 Building object file xlistbox.o 
 Building object file xlistbox_private.o 
 Building object file xlistview.o 
 Building object file xlistview_private.o 
 Building object file xmenu.o 
 Building object file xmenu_private.o 
 Building object file xmeter.o 
 Building object file xmeter_private.o 
 Building object file xmultilistview.o 
 Building object file xmultilistview_private.o 
 Building object file xplayhead.o 
 Building object file xplayhead_private.o 
 Building object file xslider.o 
 Building object file xslider_private.o 
 Building object file xtabbox.o 
 Building object file xtabbox_private.o 
 Building object file xtooltip.o 
 Building object file xtooltip_private.o 
 Building object file xtuner.o 
 Building object file xtuner_private.o 
 Building object file xvaluedisplay.o 
 Building object file xvaluedisplay_private.o 
 Building object file xwaveview.o 
 Building object file xwaveview_private.o 
 Building object file xdirectory-dialog.o 
 Building object file xfile-dialog.o 
 Building object file xmessage-dialog.o 
 Building object file xmidi_keyboard.o 
 Building object file xsavefile-dialog.o 
 Building object file xdgmimealias.o 
 Building object file xdgmime.o 
 Building object file xdgmimecache.o 
 Building object file xdgmimeglob.o 
 Building object file xdgmimeicon.o 
 Building object file xdgmimeint.o 
 Building object file xdgmimemagic.o 
 Building object file xdgmimeparent.o 
 Build static library libxputty.a 
 =================== DONE =======================
 INFO: optimised for -msse3 -mfpmath=sse -mfxsr -march=x86-64-v3
 INFO: build with    clang++-18
 INFO: using         -std=c++20
 Building object file ../NeuralAmpModelerCore/NAM/activations.o 
clang++-18: error: unsupported argument 'x86-64-v3' to option '-march='
make[1]: *** [makefile:260: ../NeuralAmpModelerCore/NAM/activations.o] Error 1
make: *** [makefile:36: Ratatouille] Error 2

Please, let me know if you need more information. A build script that respect exported CFLAGS, CXXFLAGS, LDFLAGS etc would be nice.

38github avatar Aug 22 '24 22:08 38github