Friday, February 28, 2025

Sixth Posting: LAB 4 Building GCC on Mac (Part 1)

Hello There! Today i am running GCC compiler build and configure with my SSH linux environment!
The first step is obviously cloning the GCC sources in to our environment!

git clone git://gcc.gnu.org/git/gcc.git SomeLocalDir

In my case i have used "GCCLab" as the Directory name which is inside of folder called "git" int my 86 environment.


And since we are going to build the GCC but following the recommendation of GCC we will be running from different directory by making gcc-build-001 directory.

mkdir ~/gcc-build-001
cd ~/gcc-build-001
~/git/GCClab/configure --prefix=$HOME/gcc-test-001

Then you will be able to see whole logging saying which dependencies exist or not, if there are any dependencies needed then you might goahead and install them.  (sudo might required)
For us we are going to check if makefile is placed correctly by running.


Seems like its very well placed.
Now lets move to next step, which is Building GCC
time make -j 24 |& tee build.log
with this command you will see bunch of commands that is running to build GCC and it will take about 20 mins to few hours.


Continuing in Part 2


No comments:

Post a Comment

10th Posting - Project: Stage 3

 Hello All! now we are on the final stage of the project which is project 3. If you remember correctly from my Stage 2 posting, i was able t...