'gcc-multilib (compiling 32-bit objects) for M1 Mac

I am trying to compile a cpp file using GCC with the -m32 flag. However, I am getting this error:

(base) joshshin@Joshs-MBP lab1 % ls \
test1.cpp   test2.cpp   test3.cpp \
(base) joshshin@Joshs-MBP lab1 % gcc -m32 * \
ld: unknown/unsupported architecture name for: -arch armv4t \
clang: error: linker command failed with exit code 1 (use -v to see invocation) \
(base) joshshin@Joshs-MBP lab1 % 

I think that the root of this problem is that I do not have gcc-multilib installed. The GCC I am using comes from the xcode commandline tools. I would be grateful for any help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source