Lab 4 Building GCC on My Linux VM
Lab 4 Building GCC on My Linux VM (ft. My M2 MacBook Air) For this lab, I took a dive into the world of large software builds, specifically building the GCC compiler from source. The goal was to get hands-on experience using tools like make and autotools , since we’ll be working with GCC during our course project. Instead of using the SPO600 servers (x86-001 and aarch64-002), I decided to try something a little different and ran everything inside a Linux VM on my M2 MacBook Air (which is arm64 under the hood). Spoiler alert: it actually worked out great! Step 1: Cloning the Source Code First things first, I needed the latest development version of GCC. I SSH’d into my Linux VM and cloned the official GCC Git repo: git clone git://gcc.gnu.org/git/gcc.git gcc-source This gave me a folder full of source code, ready to be built. Step 2: Configuring the Build I’ve learned it's a bad idea to build inside the source directory, so I created a separate directory for building: mkdir gcc-b...