Build issue on Apple Silicon

Hi there, I am new to PX4 and wanted to experiment with it. Trying to build for the first time and running into an issue. I am on Apple M2 processor. I followed this guide and have my terminal session running under Rosetta. After I do make px4_sitl jmavsim, I am getting a bunch of linker warning like

ld: warning: ignoring file 'src/modules/uxrce_dds_client/lib/libmicrocdr.a[6](sequence.c.o)': found architecture 'x86_64', required architecture 'arm64'

and then (expectedly) ld: Undefined symbols errors.
Any suggestions?

I figured it out. I had an ARM homebrew in $PATH, added in ~/.zprofile. Most likely that was the reason.