Compile from Source - Build Latest GDB and Binutils on Linux

Published: 15 October 2021
on channel: Mike Shah
3,160
61

►Using GDB to debug C++:    • GDB Beginner Masterclass  
►Find full courses on: https://courses.mshah.io/
►Join as member to get perks:    / @mikeshah  

►Lesson Description: In this lesson I show you how to build GDB (GNU Debugger) 12 and the associated bin utils from scratch on Ubuntu Linux 18.04. I will show you how I resolve dependency bugs, and how I generally navigate building Linux build errors as I encounter them.

The total install time running on one core on a relatively new system (Intel I7 10th generation) takes around 30 minutes.

Note: You can speed things up by using: make -j 8
If you run into trouble, I recommend doing a single core build however.

00:00 Introduction
00:50 Finding the Git Repository and log
2:20 Navigating our files
3:00 Running configure
3:40 Attempting to make in the source directory
4:30 Fixing a first dependency error
5:10 Warning on doing parallel builds
5:40 Installing Bison and Flex
6:30 Googling our dependencies
7:10 Build your software in a separate directory
8:00 make distclean to clean up our old build attempt
8:40 Yet again, another missing dependency
9:15 Luckily make is a smart build tool
9:36 Success now where are our files?
10:30 Running gdb
11:02 Fixing our install path
12:40 Success

►Please like and subscribe to help the channel!
►YouTube Channel:    / mikeshah  
►Join our free community: https://courses.mshah.io/communities/...


Watch video Compile from Source - Build Latest GDB and Binutils on Linux online, duration hours minute second in high quality that is uploaded to the channel Mike Shah 15 October 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 3,160 times and liked it 61 visitors.